how to configure network-manager via CLI or Settings that it has no network activated

Asked by d1bro

hello,

i'd like to know if there might be a way to get the network deactivated in nm-applet, as if you right-click on nm-applet and untick the 'activate Network', but only with setting it up on CLI or in the nm settings.

thx

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu network-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can configure network using:

gksudo gedit /etc/network/interfaces

You will need to specify address, netmask and default gateway

This will help:
http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

Revision history for this message
d1bro (d1bro) said :
#2

well, so you mean, I should edit /etc/network/interfaces that the eth0 is not set to auto?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You will need to if you want the device to be active on boot.

Revision history for this message
d1bro (d1bro) said :
#4

ehm..

to be clear, i'd like my system to NOT activate the network on start-up, but to be able to activate network, by right-click on the nm-applet (NetworkManager) in the panel and tick on activate network.

but i'll try your your proposed answer.

thx

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Its one solution. You could also add:

ifdown eth0

in /etc/rc.local which will run just before the logon screen to pull the interface down. It will still be available in nm-applet etc.

Can you help with this problem?

Provide an answer of your own, or ask d1bro for more information if necessary.

To post a message you must log in.