Examples | The following example shows how to configure a sham-link between two PE routers in an MPLS VPN |
| backbone by using the area sham-link cost command on each router: |
| Router1(config)# interface loopback 55 | |
| Router1(config-if)# ip vrf forwarding v1 | |
| Router1(config-if)#ip address 10.0.0.1 255.255.255.255 | |
| ! | |
| Router1(config)# router ospf 2 vrf v1 | |
| Router1(config-if)#log-adjacency-changes | |
| Router1(config-if)#area 120 sham-link 10.0.0.1 10.44.0.1 cost 1 |
| Router1(config-if)#redistribute bgp 1 subnets | |
| Router1(config-if)#network 10.2.0.1 255.255.255.255 area | 1 |
| Router1(config-if)#network 10.120.0.0 0.255.255.255 area | 120 |
| Router1(config-if)#network 10.140.0.0 0.255.255.255 area | 120 |
| ! | |
| Router2(config)# interface loopback 44 | |
| Router2(config-if)# ip vrf forwarding v1 | |
| Router2(config-if)#ip address 44.0.0.1 255.255.255.255 | |
| ! | |
| Router2(config)# router ospf 2 vrf v1 | |
| Router2(config-if)#log-adjacency-changes | |
| Router2(config-if)#area 120 sham-link 10.44.0.1 10.0.0.1 cost 1 |
| Router2(config-if)#redistribute bgp 1 subnets | |
| Router2(config-if)#network 10.2.0.1 255.255.255.255 area | 1 |
| Router2(config-if)#network 10.120.0.0 0.255.255.255 area | 120 |
| Router2(config-if)#network 10.140.0.0 0.255.255.255 area | 120 |
| ! | |