I want to do network management on the command line

Colin Watson cjwatson at ubuntu.com
Fri Nov 25 09:32:03 UTC 2011


On Thu, Nov 24, 2011 at 12:44:36PM -0800, 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.

If network-manager is basically OK for you but you just need a way to
script it, then 'nmcli' may be helpful.

  nmcli (1)            - command-line tool for controlling NetworkManager

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list