PDA

View Full Version : [ubuntu] How to edit network connections using command line



caspersky345
June 4th, 2010, 02:39 PM
1. I'd like to know how to use command line to select or configure the wired network. Currently this can be done manually by right clicking the computer icon on the panel, then select Edit Connections...

2. Can you please also let me know if we can Enable/Disable wireless by command line. With right clicking on the computer icon on the panel, Enable/Disable Wireless can be selected manually

I am using Ubuntu 9.04. Thanks:P!

viralmeme
June 4th, 2010, 02:56 PM
http://nixcraft.com/shell-scripting/12767-shell-script-create-network-configuration.html

Iowan
June 4th, 2010, 04:01 PM
As I recall, 9.04 still let /etc/network/interfaces override Network Manager. Once again, I'm in the wrong place to check my 9.04 machine to see which file NM uses for configuration, but you might be able to run nm-applet from CLI.
Something about mix/match GUI/CLI seems like potential problem. If you intend to use CLI only, the aforementioned file makes more sense. Check man ifconfig for some more information...