When the default route is configured in the table, this route will be leaked to other tables.
vyos@SFOS-1# run show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
S>* 0.0.0.0/0 [1/0] via 10.100.250.1, eth2.250, 00:12:12
via 10.100.250.1, eth2.250, 00:12:12 * via 10.100.250.2, eth2.250, 00:12:12
C>* 10.100.250.0/24 is directly connected, eth2.250, 00:12:16
C>* 103.84.136.25/32 is directly connected, lo, 00:12:18
C>* 192.168.122.0/24 is directly connected, eth0, 00:12:16
S>* 205.1.1.1/32 [1/0] via 10.100.250.1, eth2.250, 00:01:49
[edit]
vyos@SFOS-1# show protocols static
route 0.0.0.0/0 {
next-hop 10.100.250.2 { }
}
route 205.1.1.1/32 {
next-hop 10.100.250.1 { }
}
table 197 {
route 0.0.0.0/1 { next-hop 10.100.250.1 { } } route 128.0.0.0/1 { next-hop 10.100.250.1 { } }
}
table 198 {
route 0.0.0.0/0 { next-hop 10.100.250.1 { } }
}
table 199 {
route 0.0.0.0/0 { next-hop 10.100.250.1 { } }
}
[edit]
vyos@SFOS-1# sudo ip route list table 198
default proto static metric 20
nexthop via 10.100.250.1 dev eth2.250 weight 1 nexthop via 10.100.250.2 dev eth2.250 weight 1
[edit]
vyos@SFOS-1# sudo ip route list table 254
default proto static metric 20
nexthop via 10.100.250.1 dev eth2.250 weight 1 nexthop via 10.100.250.2 dev eth2.250 weight 1
10.100.250.0/24 dev eth2.250 proto kernel scope link src 10.100.250.254
192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.252
205.1.1.1 via 10.100.250.1 dev eth2.250 proto static metric 20
[edit]
vyos@SFOS-1# run show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
S>* 0.0.0.0/0 [1/0] via 10.100.250.1, eth2.250, 00:12:45
via 10.100.250.1, eth2.250, 00:12:45 * via 10.100.250.2, eth2.250, 00:12:45
C>* 10.100.250.0/24 is directly connected, eth2.250, 00:12:49
C>* 103.84.136.25/32 is directly connected, lo, 00:12:51
C>* 192.168.122.0/24 is directly connected, eth0, 00:12:49
S>* 205.1.1.1/32 [1/0] via 10.100.250.1, eth2.250, 00:02:22
[edit]
vyos@SFOS-1# run show ip route table 198
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
S>* 0.0.0.0/0 [1/0] via 10.100.250.1, eth2.250, 00:02:28
- via 10.100.250.2, eth2.250, 00:02:28
[edit]
vyos@SFOS-1# run show ip route table 199
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
S>* 0.0.0.0/0 [1/0] via 10.100.250.1, eth2.250, 00:02:30
via 10.100.250.1, eth2.250, 00:02:30 * via 10.100.250.2, eth2.250, 00:02:30
[edit]
vyos@SFOS-1# run show ip route table 197
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
S>* 0.0.0.0/1 [1/0] via 10.100.250.1, eth2.250, 00:02:32
S>* 128.0.0.0/1 [1/0] via 10.100.250.1, eth2.250, 00:02:32
[edit]
vyos@SFOS-1#