scope link while interface down
Hello,
I'm trying to configure my eth1 interface, so that the routing entry disappears if the interface isn't plugged in. I can see the state goes from up to down, but the routing entry remains. Code:
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.11 Code:
auto eth1 So far I have to use ifdown eth1. |
Under your network configuration you should add post-down commands
Quote:
Quote:
|
Thanks for the answer, but neither works.
All the data below shows the state while the cable isn't plugged in. Code:
root@TDTErsatz:/home/katrin# cat /etc/network/interfaces Code:
root@TDTErsatz:/home/katrin# ip ad show dev eth1 Code:
root@TDTErsatz:/home/katrin# ip -s link show dev eth1 Code:
root@TDTErsatz:/home/katrin# ip route |
All times are GMT -5. The time now is 02:46 PM. |