Routing Preference in Huawei Routers
In this lab, we will see route preference at play in Huawei routers.
Consider this Topology:
According to the routing preference guide:
The higher the preference number the lower precedence given to the protocol.
If Route is learned from iBGP, it will have the lowest
preference out of the given options.
Let’s configure BGP
on both sides and see.
On R1 along with configuring BGP, advertise the Loopback Interface as well
When the peer is established, we see that the route is
being learned by iBGP and has the highest preference number.
If we configure OSPF and redistribute the Loopback address
on CX1 the route being learned from iBGP will be replaced by OSPF external route
entry.
Let’s configure OSPF on both sides and import the loopback interface.
A prefix list is implemented so that only the desired route is
redistributed.
Even though the BGP route is still valid, in the routing
table 1.1.1.1/32 is being learned through OSPF.
Similarly with RIP, if it is configured on both routers, it
will replace the OSPF ASE route. Go ahead and try to lab it and check the results.
And lastly, let’s configure a static route and see how it
will affect the routing table.
As you can see the static route has replaced the OSPF entry in the table.
If you liked this network nugget share it with your network, or want to discuss the concept do share your thoughts in the comments section.
Comments
Post a Comment