Default route setup


Userlevel 1
Hello,

I trying to setup a default route now. Some description for my environment.

Hosts under 192.168.10.0/27 or 192.168.20.0/27 with gateway IP 192.168.10.1 & 192.168.20.1 at Cumulus now

Then, Cumulus re-route it the next hop 172.16.3.254.

Does following of my config is correct?

----------------------------------------------
auto eth0
iface eth0
address 192.168.10.205/24
gateway 192.168.10.1

auto swp9
iface swp9

auto swp10
iface swp10

auto swp11
iface swp11

auto pairlink
iface pairlink
bond-slaves swp10 swp11
bond-mode 802.3ad
bond-miimon 100
bond-use-carrier 1
bond-lacp-rate 1
bond-min-links 1
bond-xmit-hash-policy layer3+4

auto uplink
iface uplink
bridge-ports pairlink swp9
bridge-vlan-aware yes
bridge-allow-untagged yes
bridge-vids 200 400
bridge-pvid 1
bridge-stp on
mstpctl-treeprio 36864

auto uplink.400
iface uplink.400
address 192.168.10.1/27
address 192.168.20.1/27

auto uplink.200
iface uplink.200
address 172.16.3.1/24
up ip route add 0.0.0.0/0 via 172.16.3.254

------------------------------------------------------------------------------
This is because after config and 'ifreload -a' and check routing table in below. It looks does not see the route to next hop.

-------------------------
$ sudo ip route
default via 192.168.10.1 dev eth0
192.168.10.0/27 dev uplink.400 proto kernel scope link src 192.168.10.1
192.168.20.0/27 dev uplink.400 proto kernel scope link src 192.168.20.1
172.16.3.0/24 dev uplink.200 proto kernel scope link src 172.16.3.1
192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.205
-------------------------

Thanks in advance

2 replies

Userlevel 5
The config looks correct. What are you expecting to see out of this?
Userlevel 1
Hello,

Thanks, it looks fine while when I process simple test. However, when I check the routing table, since eth0 have its default route and I could not see others default from "ip route show"

Does it will have conflict there?

-------------
$ sudo ip route show
default via 192.168.10.1 dev eth0
192.168.10.0/27 dev uplink.400 proto kernel scope link src 192.168.10.1
192.168.20.0/27 dev uplink.400 proto kernel scope link src 192.168.20.1
172.16.3.0/24 dev uplink.200 proto kernel scope link src 172.16.3.1
192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.205
--------------------

Further question:

If I using Quagga. Then it just need to replace Cumulus config 'up ip route add 0.0.0.0/0 via 172.16.3.254'

by following Quagga config ?

ip route 0.0.0.0/0 172.16.3.254

Thanks!

Reply