Re: I want to do network management on the command line



On Thu, Nov 24, 2011 at 3:48 PM, Rashkae <ubuntu@xxxxxxxxxxxxxxx> wrote:
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.)

My usual CLI tools are ifconfig and route. This can establish the
simple setup I need.

My problem is usually with having my changes reversed. Since I intend
to use this
in a live disk, changing files is not usually all that helpful and
it's too late to stop
any automated services from starting.

I'll have to check, but I seem to recall that I either was unable to
identify the service
to stop, or what I stopped was the wrong thing (because my setup got cancelled
anyway).


--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Setup a wireless network experiment environment
    ... through binded ath0 interfaces via adhoc network NET2: ... ok to setup such an network, and which keys, ARP tables, proxy ARP, ... subnet on local interface is no longer possible, ...
    (comp.os.linux.networking)
  • pf, bridge and dhcrelay
    ... I have a setup to limit network access for students during exams (students ... I had this setup working OK last year, but after reinstall I can't get it to ... filter can access all resources. ... The "external" interface has an IP and netmask ...
    (comp.unix.bsd.openbsd.misc)
  • Re: ISA net configuration In Vlan and multiple Internals network
    ... Correct me if I am wrong, but this is more of a network aggregation problem? ... Is your networks subnet contiguously? ... interface are defined on the 6500, meaning it is only layer 2. ... 5---For each vlan interface i have setup the ip address appropriate ip ...
    (microsoft.public.isa.configuration)
  • problems adding interfaces with zebra
    ... I want to setup it up so that all 4 now have a common physical interface on ... I will then setup the 4 interfaces to be on the 12.0.0.0/8 network ... Because the route is already installed locally as pointing to machine A via ...
    (freebsd-net)
  • Re: lose network after re-boot
    ... Rebooted and the interface is still down. ... try to bring up the Network Settings tool, I get a message dialog, ... intended for use with Network Manager? ... There's a little checkbox in there that asks whether the nic should be managed by the network manager. ...
    (Fedora)