326
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
Issuing the
display ospf sham-link
command on the PEs, you can see the established sham link.
Take PE 1 as an example:
[PE1] display ospf sham-link
OSPF Process 100 with Router ID 100.1.1.2
Sham Link:
Area RouterId Source-IP Destination-IP State Cost
0.0.0.1 100.1.1.2 3.3.3.3 5.5.5.5 P-2-P 10
Issuing the
display ospf sham-link
area
command, you can see that the status of the peer is Full:
[PE1] display ospf sham-link area 1
OSPF Process 100 with Router ID 100.1.1.2
Sham-Link: 3.3.3.3 --> 5.5.5.5
Neighbour State: Full
Area: 0.0.0.1
Cost: 10 State: P-2-P, Type: Sham
Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1
Configuring BGP AS number substitution
Network requirements
As shown in
, CE 1 and CE 2 belong to VPN 1 and are connected to PE 1 and PE 2 respectively.
In addition, they use the same AS number 600.
Figure 77
Network diagram
Device Interface IP
address
Device
Interface
IP address
CE 1
Vlan-int1
10.1.1.1/24
P
Loop0
2.2.2.9/32
Vlan-int2
100.1.1.1/24
Vlan-int1
30.1.1.1/24
PE 1
Loop0
1.1.1.9/32
Vlan-int2
20.1.1.2/24
Vlan-int1
10.1.1.2/24
PE 2
Loop0
3.3.3.9/32
Vlan-int2
20.1.1.1/24
Vlan-int1
30.1.1.2/24
CE 2
Vlan-int1
10.2.1.1/24
Vlan-int2
10.2.1.2/24