LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting ADSL modem using command line for Network Manager (https://www.linuxquestions.org/questions/linux-networking-3/connecting-adsl-modem-using-command-line-for-network-manager-817143/)

NiaNok 06-30-2010 05:25 AM

Connecting ADSL modem using command line for Network Manager
 
Linux Mint 9
NetworkManager 0.8
Nokia Siemens ADSL modem in bridge mode
Broadband using ethernet

How can I connect and disconnect my BB connection using command line. I have configured DSL in NetworkManager using UserID and password and I can click my DSL name in the nm-applet to connect, but how to connect using a command line?

GlennsPref 06-30-2010 08:14 PM

Hi, to find out what the connection name is, type (while connected),

Code:

ifconfig -a
your device is probably ppp0, if so use the ifup/ifdown command to bring the device up or take it down(switch off).

command line dis-connect command,
Code:

ifdown ppp0
check with,
Code:

ifconfig
command line to connect command,
Code:

ifup ppp0
Hope this is what you need, Regards Glenn

NiaNok 07-01-2010 10:24 AM

Thanks Glenn. I'm away from my system for a few days. I'll try your advice and let you know. Thanks again.

NiaNok 07-06-2010 10:20 AM

Quote:

command line dis-connect command,
Code:

ifdown ppp0

Didn't work. Says

Code:

ifdown: failed to open statefile /var/run/network/ifstate: Permission denied

NiaNok 07-06-2010 10:21 AM

When run as root, it says

Code:

Ignoring unknown interface ppp0=ppp0.

TimothyEBaldwin 07-06-2010 03:26 PM

You should be able to use cnetworkmanager to activate connections that are configured using Network Manager.

GlennsPref 07-06-2010 08:09 PM

Hi, what is the output from sudo ifconfig -a ?

This should show all the connected network devices.

Quote:

Ignoring unknown interface ppp0=ppp0.
Adsl may be using ethernet, eth0

NiaNok 07-24-2010 11:51 AM

Thanks GlennsPref for your interest. Problem solved using cnetworkmanager and crontab.


All times are GMT -5. The time now is 12:46 AM.