Vyatta VC6.5R1 - BGP vs Default Route

Hi Guys,

Our setup is currently using eBGP for our primary internet(best path) and remote site(secondary internet other telco).
Now im trying to do default static route going to remote site(secondary).
But when im trying to do traceroute it will still in our primary internet.

Primary Internet: 203.103.220.177
Secondary: 103.15.15.2

vyatta@site1:~$ sh ip route 0.0.0.0
Routing entry for 0.0.0.0/0

Known via “bgp”, distance 20, metric 0, best
Last update 1d15h59m ago
& 203.103.220.177, via eth1

vyatta@site1:~# set protocols static route 0.0.0.0/0 next-hop 103.15.15.2 [edit] vyatta@site1:~# commit
[edit]
vyatta@site1:~# save Saving configuration to '/config/config.boot'... Done [edit] vyatta@site1:~# exit
exit
vyatta@site1:~$ sh ip route 0.0.0.0
Routing entry for 0.0.0.0/0
Known via “static”, distance 1, metric 0, best

  • 103.15.15.2, via eth3

Routing entry for 0.0.0.0/0
Known via “bgp”, distance 20, metric 0, best
Last update 1d16h05m ago
& 203.103.220.177, via eth1

vyatta@site1:~$ tracert 8.8.8.8
traceroute to 8.8.8…8 (8.8.8.8), 30 hops max, 60 byte packets
1 203.103.220.177 (203.103.220.177) 1.177 ms 1.141 ms 1.414 ms
2 118.143.224.161 (118.143.224.161) 21.255 ms 118.143.224.225 (118.143.224.22
16.208 ms 118.143.224.173 (118.143.224.173) 26.897
3 123.255.91.10 (123.255.91.10) 23.334 ms 25.447 ms 24.450 ms
4 108.170.241.97 (108.170.241.97) 25.068 ms 24.879 ms 24.807 ms
5 72.14.239.49 (72.14.239.49) 28.919 ms 28.119 ms 25.273 ms
6 8.8.8.8 (8.8.8.8) 27.456 ms 27.818 ms 27.806 ms

vyatta@site1:~$ sh ip route static
Codes: K - kernel route , C - connected, S - static, R - RIP, O - OSPF
I - ISIS, B - BGP, > - selected route, * - FIB route

S>* 0.0.0.0/0 [1/0] via 103.15.15.2, eth3
vyatta@site1:~$

I don’t really know much about the old Vyatta (and it might be time for an upgrade :stuck_out_tongue:), but look at the distance.

The BGP default route has 20 on it, the static has 1 on it. That means the static will always be preferred.

You have to change the distance on the static to be higher than the BGP.

Hi Kroy,

Yes based on the route. Default route has AD 1 on it where it should be the preferred.

What im confused is when i tried to do traceroute the hop is still on primary internet(BGP route).

This is both addresses on the same interface as alias?