I want to do network management on the command line
Rashkae
ubuntu at tigershaunt.com
Thu Nov 24 23:48:25 UTC 2011
On 11/24/2011 03:44 PM, Kevin O'Gorman wrote:
> Because I use live disks and static IPs a lot, I want a way to script
> the network setup. As it is, the GUI interface through
> System->Preferences->Network Connections is slow and when done a lot
> it's error-prone. I'd much prefer a way to do it in a script that I
> could, for instance, invoke from a USB drive.
>
> I know some commands that do the trick. The problem is that the
> network management stuff cancels my work within a minute or so. I
> tried disabling a few things, but have not come up with a procedure
> that's reliable. I also have not found where the Network Manager's
> configuration files are kept, if they're on disk at all.
>
> Help?
>
Ubuntu comes with 2 network systems, Network Manager, and good ol
fashioned Debian networking. There is a CLI/console interface to
network manager, but I think what you really want is the classic debian
networking. Therefore either uninsall Network Manager or stop the
service from starting. (You would have to edit the network manager
script in /etc/init to stop it from starting automatically.)
Once network manager is tamed, then you can make the appropriate entries
in /etc/network/interfaces (see man interfaces.)
More information about the ubuntu-users
mailing list