Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 12630  / 3 Years ago, mon, august 30, 2021, 11:54:30

I have /etc/network/interfaces as follow. Every time the system boots up, the route is wrong so the gateway is not reachable. I'd have to ifdown br0 && ifup br0 to fix the route table and make everything work. How to fix this forever?



auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
bond-master bond0

auto eth1
iface eth1 inet manual
bond-master bond0

auto bond0
iface bond0 inet dhcp
bond-mode balance-tlb
bond-slaves none

auto br0
iface br0 inet dhcp
bridge_ports bond0


Edit



This is the route table from ip r s after I reboot the host. There is an extra routing path.



Before restart br0:



default via 10.69.208.129 dev bond0  metric 100 
10.69.208.128/26 dev bond0 proto kernel scope link src 10.69.208.172
10.69.208.128/26 dev br0 proto kernel scope link src 10.69.208.172
169.254.0.0/16 dev br0 scope link metric 1000
192.168.1.0/24 dev lxcbr0 proto kernel scope link src 192.168.1.1


After restart br0:



default via 10.69.208.129 dev br0  metric 100 
10.69.208.128/26 dev br0 proto kernel scope link src 10.69.208.172
169.254.0.0/16 dev br0 scope link metric 1000
192.168.1.0/24 dev lxcbr0 proto kernel scope link src 192.168.1.1

More From » networking

 Answers
7

Changing bond0 to manual instead of dhcp, now it works.


[#30507] Tuesday, August 31, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
percol

Total Points: 493
Total Questions: 116
Total Answers: 107

Location: Taiwan
Member since Mon, Sep 6, 2021
3 Years ago
percol questions
Thu, Sep 29, 22, 07:42, 2 Years ago
Sat, Jul 16, 22, 21:00, 2 Years ago
Tue, May 30, 23, 19:16, 1 Year ago
Wed, Aug 18, 21, 02:15, 3 Years ago
;