Original Message:
Sent: 06-19-2021 12:26
From: Unknown User
Subject: routes via sham-link are hidden
I found a previous post shamlink hidden in vpn.inet.0, I am trying to understand it.
I used to do a lab in Cisco topology as follows:
Original Message:
Sent: 06-19-2021 11:57
From: Unknown User
Subject: routes via sham-link are hidden
I have the following topology
I created a sham-link between R2 and R4. I verified it as follows:
root@R4# run show ospf interface instance CE1 detailInterface State Area DR ID BDR ID Nbrsge-0/0/2.0 DR 0.0.0.0 192.168.168.4 172.16.6.6 1 Type: LAN, Address: 10.50.0.6, Mask: 255.255.255.252, MTU: 1500, Cost: 1 DR addr: 10.50.0.6, BDR addr: 10.50.0.5, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None Topology default (ID 0) -> Cost: 1shamlink.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 0, Cost: 1 Local: 192.168.168.4, Remote: 192.168.168.2 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None, No eligible backup Topology default (ID 0) -> Cost: 1root@R4# run show ospf neighbor instance CE1 detailAddress Interface State ID Pri Dead10.50.0.5 ge-0/0/2.0 Full 172.16.6.6 128 38 Area 0.0.0.0, opt 0x52, DR 10.50.0.6, BDR 10.50.0.5 Up 00:05:12, adjacent 00:05:12192.168.168.2 shamlink.0 Full 192.168.168.2 0 32 Area 0.0.0.0, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0 Up 00:05:12, adjacent 00:05:07root@R4# run show ospf database instance CE1 OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum LenRouter 10.50.0.1 10.50.0.1 0x80000004 1150 0x22 0xc871 36Router 10.50.0.6 10.50.0.6 0x80000004 715 0x22 0xf035 36Router 172.16.5.1 172.16.5.1 0x80000008 400 0x22 0x4b4c 72Router 172.16.6.6 172.16.6.6 0x80000006 331 0x22 0xb0cc 72Router 192.168.168.2 192.168.168.2 0x80000005 326 0x22 0x8a5a 48Router *192.168.168.4 192.168.168.4 0x80000004 325 0x22 0xb821 48Network 10.50.0.1 192.168.168.2 0x80000001 401 0x22 0xf91b 32Network *10.50.0.6 192.168.168.4 0x80000001 330 0x22 0x23e2 32Network 192.168.1.5 172.16.5.1 0x80000001 706 0x22 0x3448 32
But the routes via sham-link are hidden
root@R4# run show route table CE1.inet.0 hiddenCE1.inet.0: 11 destinations, 15 routes (11 active, 0 holddown, 3 hidden)+ = Active Route, - = Last Active, * = Both10.50.0.0/30 [OSPF] 00:06:01, metric 2 > via shamlink.0172.16.5.0/24 [OSPF] 00:06:01, metric 2 to 10.50.0.5 via ge-0/0/2.0 > via shamlink.0172.16.5.1/32 [OSPF] 00:06:01, metric 2 to 10.50.0.5 via ge-0/0/2.0 > via shamlink.0root@R4# run show route table CE1.inet.0 hidden detailCE1.inet.0: 11 destinations, 15 routes (11 active, 0 holddown, 3 hidden)10.50.0.0/30 (2 entries, 1 announced) OSPF Next hop type: Router Address: 0x965c9e8 Next-hop reference count: 1 Next hop: via shamlink.0, selected Session Id: 0x0 State: <Hidden Int AlwaysFlash> Inactive reason: Unusable path Age: 6:11 Metric: 2 Validation State: unverified Area: 0.0.0.0 Task: CE1-OSPF AS path: I Communities: rte-type:0.0.0.0:1:0172.16.5.0/24 (2 entries, 1 announced) OSPF Next hop type: Router Address: 0x95a42f8 Next-hop reference count: 2 Next hop: 10.50.0.5 via ge-0/0/2.0 Session Id: 0x0 Next hop: via shamlink.0, selected Session Id: 0x0 State: <Hidden Int AlwaysFlash> Inactive reason: Unusable path Age: 6:11 Metric: 2 Validation State: unverified Area: 0.0.0.0 Task: CE1-OSPF AS path: I Communities: rte-type:0.0.0.0:1:0172.16.5.1/32 (2 entries, 1 announced) OSPF Next hop type: Router Address: 0x95a42f8 Next-hop reference count: 2 Next hop: 10.50.0.5 via ge-0/0/2.0 Session Id: 0x0 Next hop: via shamlink.0, selected Session Id: 0x0 State: <Hidden Int AlwaysFlash> Inactive reason: Unusable path Age: 6:11 Metric: 2 Validation State: unverified Area: 0.0.0.0 Task: CE1-OSPF AS path: I Communities: rte-type:0.0.0.0:1:0[edit]root@R4#
Appreciate any insights !!