LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do i start my ppp0 device without NetworkManager ? (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-start-my-ppp0-device-without-networkmanager-754274/)

zonemikel 09-10-2009 06:32 PM

How do i start my ppp0 device without NetworkManager ?
 
Hello,

I have a cricket usb mobile broadband. I use the ./flipflop to change the mode. From that point i can easily right click "networkmanager" and then click the radio button by the mobile broadband device and then it will start it with no problem. It then shows up as ppp0.

My problem is network manager totally screws up my configuration, I do everything by hand using ifconfig and iptables through scripts and such. Just having network manager running is kind of messing everything up. I could fix up everything through network manager but i would rather not, since its a server its not even running gui most of the time.

anyway is there any way i can start this device just by typing something in the command line ?

thanks

GrapefruiTgirl 09-10-2009 06:46 PM

There is, but I'm most familiar with using KPPP for my ppp0 connection (which I don't have anymore anyhow since going onto broadband).

You can start pppd (the PPP daemon) manually, producing the same results basically, as you would get using wvdial or KPPP or a similar ppp tool.

Once the daemon is running & connected appropriately, you would bring up the PPP0 device, and if necessary, add gateway, nameserver, or routing information as required, if they aren't taken care of automatically by pppd.

The place to start, in my opinion, would be the pppd man page:

shell$ man pppd

and go from there. I hope this gets you in the right direction :)
Sasha

zonemikel 09-10-2009 06:54 PM

Ya i had been messing around with wvdial ... it seems to work
Code:

zonemikel@GalacticAC:/etc/init.d$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Configuration does not specify a valid phone number.

but then
Code:

zonemikel@GalacticAC:/etc/init.d$ sudo ifconfig ppp0 up
ppp0: ERROR while getting interface flags: No such device


GrapefruiTgirl 09-10-2009 07:58 PM

Hm..

Yeah, I'm not really knowledgeable on using pppd with a connection that doesn't actually "dial" something. What is the nature of the internet connection? Like, you say "mobile broadband device", so this to me, means you're probably using a laptop, connecting to some sort of WiFi hotspots or something like that. Is this correct? And do you generally use an account name and/or password, or what? I may have initially been mislead by the fact that the device was named "ppp0" -- where usually I would expect a broadband device to be called "eth0" or "wlan0" or something like that, unless you're using some sort of PPPOE.

Further details like that may enable someone (else?) to better help get your connection up & running :)

Sasha

zonemikel 09-10-2009 08:26 PM

cricket usb mobile broadband ... so its like a cell phone. Its a little usb thing you plug in and it connects you to a satellite that gives you internet. Looks like im sol i might be better off just making it work with network manager ?

GrapefruiTgirl 09-10-2009 08:34 PM

Well, there are two ways to look at that question:

1) If it works with network manager, it can work *without* network manager.

2) It might be worth it for the time being, to set up network manager properly, to make the device *work* -- this will get you connected once and for all, and spare you this frigging around and experimenting for the time being :)

However, if you would, consider the following: IF you do at least get the thing *connected* (even if you don't have the network manager thing totally nailed down) it would be interesting and useful to learn more about how the device is being configured BY network manager, so that you, and/or other users of similar devices, can know how to get the thing to work, WITHOUT network manager. There are surely other folks(and maybe you too) who would like to be able to connect via the commandline, so it'd be good to know how to do it.

Also, could you post the output of a command for me please?

shell# lsusb -vv

and also, what's the make & model # and any other info written on the device or on the sticker it may have on it?

Thanks!
Sasha

(I'm willing to investigate further on the command-line angle, while you may wish to make it work with Net Manager meanwhile, just because it appears easier for the moment)

BTW - that sounds really cool, and very handy. If I may ask, is it an expensive service to subscribe to, or reasonably priced?

zonemikel 09-11-2009 07:55 AM

Hey, sorry went to bed last night. The service is $40 and somewhere around .7Mbps, i havent used it a lot though but im replacing my comparable comcast 1Mbps. But my whole network goes through my homemade router and stuff, i got it all to work pretty quickly on a single windows or ubnutu machine.

Here is the info http://www.mycricket.com/broadband/

this is lspci all you see here are the 3 nic's in the machine
Code:

00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 01)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 01)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] (rev 15)
02:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01)
02:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 6c)

I wish there was some way i could see what the hell networkmanager is doing when it connects it ? In network manager i just click the radio button by the "usb mobile broadband device" and in a few seconds i'm connected and ifconfig gives a new ppp0 device.

here is the device as listed by lsusb -vv
Code:

Bus 001 Device 002: ID 1f28:0020 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.10
  bDeviceClass            2 Communications
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  idVendor          0x1f28
  idProduct          0x0020
  bcdDevice            0.00
  iManufacturer          1 Cal-comp E&CC Limited
  iProduct                2 Cal-comp CDMA USB Modem A600 
  iSerial                0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          189
    bNumInterfaces          7
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              3 Data Interface
      CDC Header:
        bcdCDC              1.09
      CDC Call Management:
        bmCapabilities      0x03
          call management
          use DataInterface
        bDataInterface          1
      CDC ACM:
        bmCapabilities      0x0f
          connection notifications
          sends break
          line coding and serial state
          get/set/clear comm features
      CDC Union:
        bMasterInterface        0
        bSlaveInterface        1
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0010  1x 16 bytes
        bInterval            128
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        1
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        2
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass      255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x89  EP 9 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        3
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass      255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        4
      bAlternateSetting      0
      bNumEndpoints          3
      bInterfaceClass      255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0010  1x 16 bytes
        bInterval              8
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        5
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass      255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        6
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass        8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol    80 Bulk (Zip)
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x87  EP 7 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0040  1x 64 bytes
        bInterval              0
Device Status:    0x0000
  (Bus Powered)


zonemikel 09-11-2009 11:00 AM

conclusion
 
Well i got everything working with network manager, it was just a matter of giving it my manual ip's and such. Then i changed my firewall script to route from the new mobile broadband usb (cricket). It all worked great ! I now had a usb mobile broadband dongle working and sharing the internet between about 5 computers on the network + wifi.

so here is a summary of the results
cricket .67Mb/s @ $44/mo
comcast .95Mb/s @ $44/mo

So i lose about .20Mb/s but i gain portability and maybe more reliability. I had issues with comcast thats why i was changing.

I called comcast to cancel and guess what they offered me, my same service for a year @ $24/mo. Thats a savings of $240/yr over either my old comcast or this new mobile thing. So i took the bait and signed up for that. Now i get the almost 1Mb/s internet at half the price.

I think ill discontinue the cricket service after this month. No matter what I only ended up paying max $70 for the cricket first month and dongle thing, and i saved $240. I might just sell the cricket dongle thing on ebay and make most of my money back.

thanks for all the help, its good to know i could easily do all this with a mobile usb dongle. I could setup a lan on a bus and have internet access or something :)

GrapefruiTgirl 09-11-2009 11:04 AM

Quote:

Originally Posted by zonemikel (Post 3678946)
Well i got everything working with network manager, it was just a matter of giving it my manual ip's and such. Then i changed my firewall script to route from the new mobile broadband usb (cricket). It all worked great ! I now had a usb mobile broadband dongle working and sharing the internet between about 5 computers on the network + wifi.

so here is a summary of the results
cricket .67Mb/s @ $44/mo
comcast .95Mb/s @ $44/mo

So i lose about .20Mb/s but i gain portability and maybe more reliability. I had issues with comcast thats why i was changing.

I called comcast to cancel and guess what they offered me, my same service for a year @ $24/mo. Thats a savings of $240/yr over either my old comcast or this new mobile thing. So i took the bait and signed up for that. Now i get the almost 1Mb/s internet at half the price.

I think ill discontinue the cricket service after this month. No matter what I only ended up paying max $70 for the cricket first month and dongle thing, and i saved $240. I might just sell the cricket dongle thing on ebay and make most of my money back.

Well that's cool :) looks like it all works out for the best, AND you're saving some money.
Quote:

thanks for all the help, its good to know i could easily do all this with a mobile usb dongle. I could setup a lan on a bus and have internet access or something :)
No problem, happy to have helped, or tried to! Maybe you CAN now setup a Wifi hotspot anytime you're on a bus -- and of course, charge a small fee for the service to the other passengers ;)

Cheers!
Sasha


All times are GMT -5. The time now is 05:50 PM.