LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2009, 06:32 PM   #1
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Rep: Reputation: 15
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
 
Old 09-10-2009, 06:46 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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

Last edited by GrapefruiTgirl; 09-10-2009 at 06:48 PM.
 
Old 09-10-2009, 06:54 PM   #3
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
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
 
Old 09-10-2009, 07:58 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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
 
Old 09-10-2009, 08:26 PM   #5
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
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 ?
 
Old 09-10-2009, 08:34 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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?

Last edited by GrapefruiTgirl; 09-10-2009 at 08:35 PM.
 
Old 09-11-2009, 07:55 AM   #7
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
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)

Last edited by zonemikel; 09-11-2009 at 08:04 AM.
 
Old 09-11-2009, 11:00 AM   #8
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
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
 
Old 09-11-2009, 11:04 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by zonemikel View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NetworkManager Applet no device found praveencusat Linux - Networking 1 05-06-2008 01:19 AM
How Do I start NetworkManager? lonecrow Linux - Software 12 09-28-2006 05:53 AM
How to remove ppp0 device smkamene Linux - Hardware 0 12-19-2005 05:00 PM
I can't start NetworkManager ? naihe2010 Linux - Software 0 11-13-2005 05:51 PM
Samba via PPP0 device tnine9 Linux - Networking 0 10-12-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration