ifdown / ifup not working

Questions about cabled networking
Forum rules
Before you post please read how to get help
Post Reply
MattTwinkleToes
Level 1
Level 1
Posts: 37
Joined: Thu Feb 11, 2016 3:31 pm

ifdown / ifup not working

Post by MattTwinkleToes » Sat May 13, 2017 11:19 am

can anyone explain this?
matt@cube03 ~/Documents $ ifconfig
enp0s25 Link encap:Ethernet HWaddr f4:4d:30:6c:d3:07
inet addr:192.168.1.92 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::53ff:2f5e:ce92:3f13/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:2213 errors:0 dropped:2 overruns:0 frame:0
TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:201120 (201.1 KB) TX bytes:30250 (30.2 KB)
Interrupt:20 Memory:aa100000-aa120000

enx000acd28f467 Link encap:Ethernet HWaddr 00:0a:cd:28:f4:67
inet addr:192.168.1.112 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::405e:4d8e:5810:c2b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2045 errors:0 dropped:0 overruns:0 frame:0
TX packets:222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164134 (164.1 KB) TX bytes:20517 (20.5 KB)

enx000acd28f468 Link encap:Ethernet HWaddr 00:0a:cd:28:f4:68
inet addr:192.168.1.111 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d156:ef32:7e6f:33a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8854 errors:0 dropped:0 overruns:0 frame:0
TX packets:8569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2647071 (2.6 MB) TX bytes:1720058 (1.7 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPB

Code: Select all

ACK RUNNING  MTU:65536  Metric:1
          RX packets:380 errors:0 dropped:0 overruns:0 frame:0
          TX packets:380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:34990 (34.9 KB) TX bytes:34990 (34.9 KB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

matt@cube03 ~/Documents $ sudo ifdown enx000acd28f468
[sudo] password for matt:
Unknown interface enx000acd28f468
I get the same even when i revert back to the old (much better) eth0, eth1 etc..

It is making a GUI connection essential in order to do anything with the network.

Code: Select all

cat /run/network/ifstate
lo=lo
hmm, so i added an interface

Code: Select all

cat /run/network/ifstate
lo=lo
enx000acd28f468=enx000acd28f468
no change

Code: Select all

sudo service networking restart
now two if the interfaces have gone (both on a usb3 dual nic thing)
ifconfig
enp0s25 Link encap:Ethernet HWaddr f4:4d:30:6c:d3:07
inet addr:192.168.1.92 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::53ff:2f5e:ce92:3f13/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:4846 errors:0 dropped:2 overruns:0 frame:0
TX packets:738 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:722522 (722.5 KB) TX bytes:65219 (65.2 KB)
Interrupt:20 Memory:aa100000-aa120000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:474 errors:0 dropped:0 overruns:0 frame:0
TX packets:474 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:48685 (48.6 KB) TX bytes:48685 (48.6 KB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

User avatar
wallaroo
Level 3
Level 3
Posts: 122
Joined: Thu Feb 09, 2012 3:42 am

Re: ifdown / ifup not working

Post by wallaroo » Sat May 13, 2017 8:06 pm

Another consideration - from the 'man' doco :
The ifup and ifdown commands may be used to configure (or, respectively, deconfigure) network interfaces based on inter‐
face definitions in the file /etc/network/interfaces.
So you may also need to update '/etc/network/interfaces'.

Post Reply

Return to “Ethernet”