3com 8807 User Guide

Page of 883
Intermixing Configuration Task
609
# Configure an interface and enable MPLS on the interface.
[P] interface loopback0
 
[P-LoopBack0] ip address 3.3.3.3 32
 
[P-LoopBack0] quit
 
[P] vlan 100
 
[P-vlan100] port GigabitEthernet 2/1/1
 
[P-vlan100] interface vlan-interface 100
 
[P-vlan-interface100] ip address 196.168.1.2 255.255.255.0
 
[P-vlan-interface100] mpls
 
[P-vlan-interface100] mpls ldp enable
 
[P-vlan-interface100] quit
 
[P] vlan 200
 
[P-vlan200] port GigabitEthernet 2/1/2
 
[P-vlan200] interface vlan-interface 200
 
[P-vlan-interface200] ip address 196.168.2.2 255.255.255.0
 
[P-vlan-interface200] mpls
 
[P-vlan-interface200] mpls ldp enable
 
[P-vlan-interface200] quit 
# Configure OSPF.
[P] ospf 1 route-id 3.3.3.3
 
[P-ospf-1] area 0
 
[P-ospf-1-area-0.0.0.0] network 196.168.1.0 0.0.0.255
 
[P-ospf-1-area-0.0.0.0] network 196.168.2.0 0.0.0.255
 
[P-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0 
Configure PE2
# Configure global MPLS.
[PE2] mpls lsr-id 2.2.2.2
 
[PE2] mpls
 
[PE2] mpls ldp 
# Configure a public network interface and enable MPLS on the interface.
[PE2] interface loopback0
 
[PE2-LoopBack0] ip address 2.2.2.2 32
 
[PE2-LoopBack0] quit
 
[PE2] vlan 200
 
[PE2-vlan200] port GigabitEthernet 2/2/1
 
[PE2-vlan200] interface vlan-interface 200
 
[PE2-vlan-interface200] ip address 196.168.2.1 255.255.255.0
 
[PE2-vlan-interface200] mpls
 
[PE2-vlan-interface200] mpls ldp enable
 
[PE2-vlan-interface200] quit 
# Enable OSPF on the interface connecting PE2 with P router and the Loopback 
interface.
[PE2] ospf 1 route-id 2.2.2.2
 
[PE2-ospf-1] area 0
 
[PE2-ospf-1-area-0.0.0.0] network 196.168.1.0 0.0.0.255
 
[PE2-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
 
[PE1-ospf-1-area-0.0.0.0] quit