3com S7906E 安装指导

下载
页码 2621
 
1-29 
  4.4.4.4      100        2        5     0       0  00:01:07 Established 
4)  Configure the L2VPN and the CE connection 
# Configure PE 1. The configurations of the VLAN interfaces are similar to those for Martini MPLS 
L2VPN and are omitted. 
[PE1] mpls l2vpn vpn1 encapsulation vlan 
[PE1-mpls-l2vpn-vpn1] route-distinguisher 100:1 
[PE1-mpls-l2vpn-vpn1] vpn-target 1:1 
[PE1-mpls-l2vpn-vpn1] ce ce1 id 1 range 10 
[PE1-mpls-l2vpn-ce-vpn1-ce1] connection ce-offset 2 interface vlan-interface 10 
[PE1-mpls-l2vpn-ce-vpn1-ce1] quit 
[PE1-mpls-l2vpn-vpn1] quit 
# Configure PE 2. 
[PE2] mpls l2vpn vpn1 encapsulation vlan 
[PE2-mpls-l2vpn-vpn1] route-distinguisher 100:1 
[PE2-mpls-l2vpn-vpn1] vpn-target 1:1 
[PE2-mpls-l2vpn-vpn1] ce ce2 id 2 range 10 
[PE2-mpls-l2vpn-ce-vpn1-ce2] connection ce-offset 1 interface vlan-interface 10 
[PE2-mpls-l2vpn-ce-vpn1-ce2] quit 
[PE2-mpls-l2vpn-vpn1] quit 
5)  Verify your configuration 
After completing the above configurations, you can issue the display mpls l2vpn connection 
command on the PEs. You should see that an L2VPN connection is established between the PEs and 
the connection is up. CE 1 and CE 2 should be able to ping each other. The following takes PE 1 as an 
example: 
# Display the MPLS L2VPN connection information on PE 1. 
[PE1] display mpls l2vpn connection 
1 total connections, 
connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown 
VPN name: vpn1, 
1 total connections, 
connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown 
  CE name: ce1, id: 1, 
  Rid type status peer-id         route-distinguisher   intf 
  2   rmt  up     4.4.4.4         100:1                 Vlan10 
# Ping CE 2 from CE 1. 
[CE1] ping 100.1.1.2 
  PING 100.1.1.2: 56  data bytes, press CTRL_C to break 
    Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms 
    Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms 
    Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms 
    Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms 
    Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms 
  --- 100.1.1.2 ping statistics --- 
    5 packet(s) transmitted 
    5 packet(s) received