H3C Technologies H3C S10500 Series Switches User Manual

Page 43

Advertising
background image

32

[MCE2-vpn-instance-vpn2] quit

# Bind VLAN-interface 20 and Tunnel 0 with VPN instance vpn1, and configure IP addresses for the

VLAN interface and tunnel interface.

[MCE2] vlan 20

[MCE2-vlan20] port gigabitethernet 1/0/20

[MCE2-vlan20] quit

[MCE2] interface vlan-interface 20

[MCE2-Vlan-interface20] ip binding vpn-instance vpn1

[MCE2-Vlan-interface20] ip address 10.214.30.1 24

[MCE2-Vlan-interface20] quit

[MCE2] interface tunnel 0

[MCE2-Tunnel0] ip binding vpn-instance vpn1

[MCE2-Tunnel0] ip address 10.1.1.2 24

# Bind VLAN-interface 21 and Tunnel 1 with VPN instance vpn2, and configure IP addresses for the
VLAN interface and tunnel interface.

[MCE2] vlan 21

[MCE2-vlan21] port gigabitethernet 1/0/21

[MCE2-vlan21] quit

[MCE2] interface vlan-interface 21

[MCE2-Vlan-interface21] ip binding vpn-instance vpn2

[MCE2-Vlan-interface21] ip address 10.214.40.1 24

[MCE2-Vlan-interface21] quit

[MCE2] interface tunnel 1

[MCE2-Tunnel1] ip binding vpn-instance vpn2

[MCE2-Tunnel1] ip address 10.1.2.2 24

[MCE2-Tunnel1] quit

3.

Configure routing protocols.

Advertise routes of VPN 1.

# On MCE 1, configure OSPF process 1 for VPN instance vpn1, and configure OSPF to support MCE.
Be sure to configure the same OSPF area as that configured at site 1 of VPN 1, area 0 in this example.

[MCE1] ospf 1 vpn-instance vpn1 router-id 192.168.1.1

[MCE1-ospf-1] vpn-instance-capability simple

[MCE1-ospf-1] area 0

[MCE1-ospf-1-area-0.0.0.0]

# Advertise the addresses of interfaces VLAN-interface 10 and Tunnel 0 on MCE 1.

[MCE1-ospf-1-area-0.0.0.0] network 10.214.10.1 0.0.0.255

[MCE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255

# On MCE 2, configure OSPF process 1 for VPN instance vpn1, and configure OSPF to support MCE.

[MCE2] ospf 1 vpn-instance vpn1 router-id 172.16.1.1

[MCE2-ospf-1] vpn-instance-capability simple

[MCE2-ospf-1] area 0

[MCE2-ospf-1-area-0.0.0.0]

# Advertise addresses of interfaces VLAN-interface 20 and Tunnel 0 on MCE 2.

[MCE2-ospf-1-area-0.0.0.0] network 10.214.30.1 0.0.0.255

[MCE2-ospf-1-area-0.0.0.0] network 10.1.1.2 0.0.0.255

Advertise routes of VPN 2.

Advertising