06-21-2021 01:04 AM
Why does ip route advertisement from GRE tunnel take precedence over physical interface? I am trying to understand the concept. Once GRE tunnel is enabled, routing will be via the tunnel instead of the physical interface.
Router B is advertising the 166.141.185.0/24 subnet to Router A.
When tunnel is shutdown at router B: (routing via physical interface)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1792000] via 106.101.103.46, 00:11:41, Vlan103
When tunnel is enabled at router B: (routing via tunnel)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1538560] via 106.101.103.50, 00:06:34, Tunnel50
Router A
interface Vlan103 description Link to Router B bandwidth 2000 ip address 106.101.103.45 255.255.255.252 no ip redirects no ip unreachables no ip proxy-arp delay 1000 interface GigabitEthernet0/1 description Link to Router B switchport access vlan 103 switchport mode access
Router B
interface GigabitEthernet0/1 description Link to Router A bandwidth 2000 ip address 106.101.103.46 255.255.255.252 no ip redirects no ip unreachables no ip proxy-arp delay 1000 interface GigabitEthernet0/0 description LAN Segment ip address 166.141.185.2 255.255.255.0 no ip redirects no ip unreachables no ip proxy-arp delay 1000 router eigrp 100 distribute-list prefix lan_filter_out out Tunnel50 distribute-list prefix wan_filter_in in Tunnel50 ... ip prefix-list lan_filter_out seq 10 permit 166.141.185.0/24 le 32
Solved! Go to Solution.
06-21-2021 01:14 AM - edited 06-21-2021 01:14 AM
Hello
@rakuten02 wrote:
Why does ip route advertisement from GRE tunnel take precedence over physical interface? I am trying to understand the concept. Once GRE tunnel is enabled, routing will be via the tunnel instead of the physical interface.
Router B is advertising the 166.141.185.0/24 subnet to Router A.
When tunnel is shutdown at router B: (routing via physical interface)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1792000] via 106.101.103.46, 00:11:41, Vlan103
When tunnel is enabled at router B: (routing via tunnel)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1538560] via 106.101.103.50, 00:06:34, Tunnel50
Becasue the eigrp metric cost of the tunnel is being calculated as a better path
06-21-2021 01:14 AM - edited 06-21-2021 01:14 AM
Hello
@rakuten02 wrote:
Why does ip route advertisement from GRE tunnel take precedence over physical interface? I am trying to understand the concept. Once GRE tunnel is enabled, routing will be via the tunnel instead of the physical interface.
Router B is advertising the 166.141.185.0/24 subnet to Router A.
When tunnel is shutdown at router B: (routing via physical interface)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1792000] via 106.101.103.46, 00:11:41, Vlan103
When tunnel is enabled at router B: (routing via tunnel)
RouterA#sh ip route | i 166.141.185 D 166.141.185.0/24 [90/1538560] via 106.101.103.50, 00:06:34, Tunnel50
Becasue the eigrp metric cost of the tunnel is being calculated as a better path
06-21-2021 03:06 AM
Oh thanks, didn't notice the metric value. The tunnel config has a delay of 10, so that could be the reason. Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide