3Com DUA1750-2BAA01 Switch User Manual


 
3Com Switch 8800 Configuration Guide Chapter 37 BGP/MPLS VPN Configuration
37-36
Globally enable MPLS.
[PE1] mpls lsr-id 1.1.1.9
[PE1] mpls
[PE1] mpls ldp
Configure the public network interface and enable MPLS on it.
[PE1] interface loopback0
[PE1-LoopBack0] ip address 1.1.1.9 255.255.255.255
[PE1-LoopBack0] quit
[PE1] vlan 100
[PE1-vlan100] port GigabitEthernet 3/1/1
[PE1-vlan100] interface vlan-interface 100
[PE1-vlan-interface100] ip address 192.168.1.1 255.255.255.0
[PE1-vlan-interface100] mpls
[PE1-vlan-interface100] mpls ldp enable
[PE1-vlan-interface100] quit
Enable OSPF on the interface connecting PE 1 and PE 2 and on the loopback interface,
import direct routes to achieve the intercommunication between PE 1 and PE 2.
[PE1] ospf 1 route-id 1.1.1.9
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 192.168.1.0 0.255.255.255
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] import-route direct
3) Configure PE 2
Note:
Successful redirection configuration clears the VLAN configuration on the destination
port:
z If the destination port is not a trunk port, the redirection configuration changes the
port as a trunk port and clears all existing settings on the port, including protocol
VLAN and static ARP.
z If the destination port is a trunk port and redirection has never been configured on it,
the redirection configuration clears all existing settings.
z When the redirection configuration is removed, the source port is deleted from the
VLAN to which the packets are redirected, no matter whether the port belongs to the
VLAN before the redirection configuration.
Configure the VPN-instance.