Jump to content

Problem with route on eth0 cable disconnected


Neves Junior

Recommended Posts

root@orangepipcplus:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     1002   0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    1024   0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
192.168.30.0    0.0.0.0         255.255.255.0   U     0      0        0 wlan0

 

Edited by chwe
readability
Link to comment
Share on other sites

Hello thanks for the attention

I'm only using wifi! However dhcclient is networkManager, it creates the ip class 169.254.0.0 on port eth0 and it creates Destination = 0.0.0.0 and gateway: 0.0.0.0 for eth0 that with the disconnected network cable, with the ifconf eth0 down command takes all Routes the eth0 interface, plus in 3 to 5 minutes the turn activates the interface and creates everything again.

Link to comment
Share on other sites

Hi,

 

i have the same issue, after boot there is only device:wlan0, but after some time I have eth0 and eth0:avahi

 

$ sudo ifconfig
bond0     Link encap:Ethernet  HWaddr 96:06:73:94:b5:98  
          UP BROADCAST MASTER 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)

eth0      Link encap:Ethernet  HWaddr 02:c8:06:83:22:ef  
          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)
          Interrupt:50 

eth0:avahi Link encap:Ethernet  HWaddr 02:c8:06:83:22:ef  
          inet addr:169.254.8.145  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Interrupt:50 

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:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14624 (14.2 KiB)  TX bytes:14624 (14.2 KiB)

wlan0     Link encap:Ethernet  HWaddr 98:3b:16:e8:e7:b3  
          inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9a3b:16ff:fee8:e7b3/64 Scope:Link
          inet6 addr: fd00:8494:8cb6:68e2:9a3b:16ff:fee8:e7b3/64 Scope:Global
          inet6 addr: 2a02:8109:a53f:ff3c::3/128 Scope:Global
          inet6 addr: 2a02:8109:a53f:ff3c:9a3b:16ff:fee8:e7b3/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:949 errors:0 dropped:0 overruns:0 frame:0
          TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:118594 (115.8 KiB)  TX bytes:154410 (150.7 KiB)

which results in 2 default routes for IPv4 (IPv6 is fine)

$ sudo route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     1002   0        0 eth0
default         hitronhub.home  0.0.0.0         UG    1024   0        0 wlan0
link-local      *               255.255.0.0     U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0

The easy workaround is to delete default route on interface eth0, which is not connected.

$ sudo ip route del default dev eth0

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines