Operation Manual – MCE
H3C S3610&S5510 Series Ethernet Switches
Chapter 2 MCE Configuration
2-19
[MCE-Ethernet1/0/3] port link-type trunk
[MCE-Ethernet1/0/3] port trunk permit vlan 10 20
# Configure Ethernet 1/0/18 of PE.
<PE> system-view
[PE] interface Ethernet 1/0/18
[PE-Ethernet1/0/18] port link-type trunk
[PE-Ethernet1/0/18] port trunk permit vlan 10 20
# Configure IP addresses 10.214.10.4 and 10.214.20.4 for VLAN-interface 10 and
VLAN-interface 20 of PE respectively. The configuration procedures are omitted here.
# Configure Loopback0 of MCE and CE to specify the router ID for MCE and PE
respectively. The IP addresses for Loopback0 of MCE and CE are 101.101.10.1 and
100.100.10.1 respectively. Configuration procedures are omitted here.
# Create OSPF process 10 on MCE, bind the process to VPN1, and set the OSPF
domain ID to 10.
[MCE-Ethernet1/0/3] quit
[MCE] ospf 10 router-id 101.101.10.1 vpn-instance vpn1
[MCE-ospf-10] domain 10
# Advertise the network segment 10.214.10.0 within Area0, and import static routes of
VPN1.
[MCE-ospf-10] area 0
[MCE-ospf-10-area-0.0.0.0] network 10.214.10.0 0.0.0.255
[MCE-ospf-10-area-0.0.0.0] quit
[MCE-ospf-10] import-route static
# Create OSPF process 10 on PE, bind the process to VPN1, set the OSPF domain ID
to 10, and advertise the network segment 10.214.10.0 within Area0.
[PE-Ethernet1/0/18] quit
[PE] ospf 10 router-id 100.100.10.1 vpn-instance vpn1
[PE-ospf-10] domain-id 10
[PE-ospf-10] area 0
[PE-ospf-10-area-0.0.0.0] network 10.214.10.0
# Display the information about the routes of VPN1 on PE.
[PE-ospf-10-area-0.0.0.0] display ip routing-table vpn-instance vpn1
Routing Tables: vpn1
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost NextHop Interface
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