Re: restarting network
On 29/03/16 16:25, Reco wrote:
Hi.
On Tue, 29 Mar 2016 15:44:16 +0100
Tony van der Hoff <tony@vanderhoff.org> wrote:
And - you have yet another default gateway for eth1.
No wonder that the kernel refuses to add the same route second time.
Reco
Thanks, Reco.
I've now commented out that line for eth1, but I still get
Mar 29 15:37:47 tony-lx networking[24921]: Failed to bring up eth1.
Mar 29 15:37:47 tony-lx networking[24921]: done.
Now *that* requires actual investigation.
What does the following sequence yield:
ifdown -v eth1
root@tony-lx:~# ifdown -v eth1
ifdown: interface eth1 not configured
root@tony-lx:~#
ifquery eth1
root@tony-lx:~# ifquery eth1
address: 192.168.2.8
netmask: 255.255.255.0
network: 192.168.2.0
broadcast: 192.168.2.255
up: ip addr add dev eth1 2001:8b0:ff60:6a91::8
up: ip route add default via fe80::1 dev eth0
dns-nameservers: 192.168.1.1
dns-search: magpieway.net
root@tony-lx:~#
ip a l dev eth1
root@tony-lx:~# ip a l dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether bc:ae:c5:29:77:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.8/24 brd 192.168.2.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 2001:8b0:ff60:6a91::8/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::beae:c5ff:fe29:77d8/64 scope link
valid_lft forever preferred_lft forever
root@tony-lx:~#
ifup -v eth1
root@tony-lx:~# ifup -v eth1
Configuring interface eth1=eth1 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
ip addr add 192.168.2.8/255.255.255.0 broadcast 192.168.2.255 dev
eth1 label eth1
RTNETLINK answers: File exists
Failed to bring up eth1.
root@tony-lx:~#
ip a l dev eth1
root@tony-lx:~# ip a l dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether bc:ae:c5:29:77:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.8/24 brd 192.168.2.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 2001:8b0:ff60:6a91::8/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::beae:c5ff:fe29:77d8/64 scope link
valid_lft forever preferred_lft forever
root@tony-lx:~#
I guess, if it never goes down, it can never come up
Cheers,
--
Tony van der Hoff | mailto:tony@vanderhoff.org
Buckinghamshire, England |
Reply to: