LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-30-2010, 05:25 AM   #1
NiaNok
LQ Newbie
 
Registered: May 2010
Distribution: Linux Mint 9 Isadora
Posts: 13

Rep: Reputation: 0
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?
 
Old 06-30-2010, 08:14 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 07-01-2010, 10:24 AM   #3
NiaNok
LQ Newbie
 
Registered: May 2010
Distribution: Linux Mint 9 Isadora
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks Glenn. I'm away from my system for a few days. I'll try your advice and let you know. Thanks again.
 
Old 07-06-2010, 10:20 AM   #4
NiaNok
LQ Newbie
 
Registered: May 2010
Distribution: Linux Mint 9 Isadora
Posts: 13

Original Poster
Rep: Reputation: 0
Question

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
 
Old 07-06-2010, 10:21 AM   #5
NiaNok
LQ Newbie
 
Registered: May 2010
Distribution: Linux Mint 9 Isadora
Posts: 13

Original Poster
Rep: Reputation: 0
When run as root, it says

Code:
Ignoring unknown interface ppp0=ppp0.
 
Old 07-06-2010, 03:26 PM   #6
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
You should be able to use cnetworkmanager to activate connections that are configured using Network Manager.
 
Old 07-06-2010, 08:09 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 07-24-2010, 11:51 AM   #8
NiaNok
LQ Newbie
 
Registered: May 2010
Distribution: Linux Mint 9 Isadora
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks GlennsPref for your interest. Problem solved using cnetworkmanager and crontab.
 
  


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
Connecting to a wireless network from command-line Daravon Linux - Newbie 21 12-06-2009 01:35 AM
Connecting to wireless network using command line. imagine_me2 Linux - Newbie 2 12-03-2009 04:28 AM
Connecting ADSL modem to USB interface platopathrose Linux - Desktop 1 05-02-2008 07:52 AM
Connecting SuSe 8.1 to the internet using a Speedtouch ADSL Modem Johnboy28 Linux - Networking 2 04-07-2004 05:34 AM
connecting to net over ethernet ADSL modem ixus_123 Linux - Networking 1 07-26-2003 04:00 PM

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

All times are GMT -5. The time now is 06:38 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