3Com Switch 8800 Family Configuration Guide
Typical BGP/MPLS VPN Configuration Example 595
[CE] ospf 100 vpn-instance vpn1
[CE-ospf-100] vpn-instance-capability simple
[CE-ospf-100] area 0.0.0.0
[CE-ospf-100-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[CE-ospf-100-area-0.0.0.0] network 10.2.1.0 0.0.0.255
# Configure OSPF 300.
[CE] ospf 300 vpn-instance vpn2
[CE-ospf-300] vpn-instance-capability simple
[CE-ospf-300] area 0.0.0.1
[CE-ospf-300-area-0.0.0.1] network 20.1.1.0 0.0.0.255
[CE-ospf-300-area-0.0.0.1] network 20.2.1.0 0.0.0.255
Multi-Role Host
Configuration Example
Network requirements
CE1 and CE3 belong to VPN1, and CE2 belong to VPN2.
The host PC2 with the IP address of 172.16.0.1 accesses the network through
CE2. As a multi-role host, it can access both VPN1 and VPN2.
Network diagram
Figure 144 Network diagram for multi-role host application
Configuration procedure
1 Configure OSPF as the IGP protocol on the MPLS backbone network.
# Configure OSPF on PE1:
PC2
172.16.0.1/16
192.168.1.1/24
192.168.1.2/24
Ethernet2/1/0
20.1.1.2/24
Ethernet2/1/0
172.16.0.2/16
Ethernet1/1/0
20.1.1.1/24
CE2
PE1
PE2
PC3
172.19.0.1/16
Ethernet2/1/0
172.19.0.2/
Ethernet1/1/0
20.3.1.1/24
CE3
Ethernet2/1/0
20.3.1.2/24
Loopback0:
1.1.1.9/32
Loopback0:
2.2.2.9/32
PC1
172.18.0.1/16
Ethernet2/1/0
172.18.0.2/16
CE1
Ethernet3/1/0
20.2.1.2/24
Ethernet1/1/0
20.2.1.1/24
AS100
AS65420
AS65410
AS65430
Ethernet1/1/0
Ethernet1/1/0
PC2
172.16.0.1/16
192.168.1.1/24
192.168.1.2/24
Ethernet2/1/0
20.1.1.2/24
Ethernet2/1/0
172.16.0.2/16
Ethernet1/1/0
20.1.1.1/24
CE2
PE1
PE2
PC3
172.19.0.1/16
Ethernet2/1/0
172.19.0.2/16
Ethernet1/1/0
20.3.1.1/24
CE3
Ethernet2/1/0
20.3.1.2/24
Loopback0:
1.1.1.9/32
Loopback0:
2.2.2.9/32
PC1
172.18.0.1/16
Ethernet2/1/0
172.18.0.2/16
CE1
Ethernet3/1/0
20.2.1.2/24
Ethernet1/1/0
20.2.1.1/24
AS100
AS65420
AS65410
AS65430
Ethernet1/1/0
Ethernet1/1/0
PC2
172.16.0.1/16
192.168.1.1/24
192.168.1.2/24
Ethernet2/1/0
20.1.1.2/24
Ethernet2/1/0
172.16.0.2/16
Ethernet1/1/0
20.1.1.1/24
CE2
PE1
PE2
PC3
172.19.0.1/16
Ethernet2/1/0
172.19.0.2/
Ethernet1/1/0
20.3.1.1/24
CE3
Ethernet2/1/0
20.3.1.2/24
Loopback0:
1.1.1.9/32
Loopback0:
2.2.2.9/32
PC1
172.18.0.1/16
Ethernet2/1/0
172.18.0.2/16
CE1
Ethernet3/1/0
20.2.1.2/24
Ethernet1/1/0
20.2.1.1/24
AS100
AS65420
AS65410
AS65430
Ethernet1/1/0
Ethernet1/1/0
PC2
172.16.0.1/16
192.168.1.1/24
192.168.1.2/24
Ethernet2/1/0
20.1.1.2/24
Ethernet2/1/0
172.16.0.2/16
Ethernet1/1/0
20.1.1.1/24
CE2
PE1
PE2
PC3
172.19.0.1/16
Ethernet2/1/0
172.19.0.2/16
Ethernet1/1/0
20.3.1.1/24
CE3
Ethernet2/1/0
20.3.1.2/24
Loopback0:
1.1.1.9/32
Loopback0:
2.2.2.9/32
PC1
172.18.0.1/16
Ethernet2/1/0
172.18.0.2/16
CE1
Ethernet3/1/0
20.2.1.2/24
Ethernet1/1/0
20.2.1.1/24
AS100
AS65420
AS65410
AS65430
Ethernet1/1/0
Ethernet1/1/0