[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to "ifdown ..." on squeeze?



Tom H <tomh0665@gmail.com> writes:

> You can also use "nmcli" to take down and bring up your NIC.

Can you show a usage of bringing up/down the network?

With this in  /etc/NetworkManager/NetworkManager.conf

  [main]
  plugins=ifupdown,keyfile

  [ifupdown]
  managed=false

That does mean that ifupdown is not in charge .. right?

-------        ---------       ---=---       ---------      -------- 

It seems not to work here.  For example:

Man page shows 
nmcli con list (to get a list of CONFIGURED connections; 
wrapped for mail):

  NAME                      UUID                                  
  Wired connection 1        897c8cd7-b708-4ee4-9123-fcb6d7917edd 
  
   TYPE              TIMESTAMP-REAL                    
  802-3-ethernet    Fri 28 Oct 2011 04:28:21 AM CDT

Ok fine... so far, but then:

  nmcli con down uuid 897c8cd7-b708-4ee4-9123-fcb6d7917edd
  Warning: Connection not active

-------        ---------       ---=---       ---------      -------- 

Huh?  Supposedly all connections were listed in the `list' cmd.

We've taken the exact UUID shown and yet are told that connection is
not in use... but no others are listed.

And then (wrapped for mail):

   nmcli nm status
  RUNNING         STATE           WIFI-HARDWARE   WIFI       
  running         disconnected    enabled         enabled

WWAN-HARDWARE   WWAN      
enabled         disabled

But of course, I am live:

   ping -c1 google.com
  PING google.com (74.125.225.82) 56(84) bytes of data.
  64 bytes from ord08s07-in-f18.1e100.net (74.125.225.82): 
  icmp_req=1 ttl=54 time=15.8 ms
  
  --- google.com ping statistics ---
  1 packets transmitted, 1 received, 0% packet loss, time 0ms
  rtt min/avg/max/mdev = 15.833/15.833/15.833/0.000 ms

-------        ---------       ---=---       ---------      --------

Is there no sure file and simple way to bring a network up/down?


Reply to: