H3C S5800 Series Configuration Manual page 427

Layer 3 - ip routing
Hide thumbs Also See for S5800 Series:
Table of Contents

Advertisement

[MCE-vlan3] port GigabitEthernet 1/0/20
[MCE-vlan3] quit
[MCE] interface Vlan-interface 3
[MCE-Vlan-interface3] ip binding vpn-instance vpn2
[MCE-Vlan-interface3] ip address 10.214.20.3 24
[MCE-Vlan-interface3] quit
# Create VLAN 30, VLAN 40 and the corresponding VLAN interfaces. Then bind VLAN 30 to VPN 1,
and VLAN 40 to VPN 2, and configure IP addresses of the VLAN interfaces.
[MCE] vlan 30
[MCE-vlan30] quit
[MCE] interface Vlan-interface 30
[MCE-Vlan-interface30] ip binding vpn-instance vpn1
[MCE-Vlan-interface30] ip address 10.214.30.1 30
[MCE-Vlan-interface30] quit
[MCE] vlan 40
[MCE-vlan40] quit
[MCE] interface Vlan-interface 40
[MCE-Vlan-interface40] ip binding vpn-instance vpn2
[MCE-Vlan-interface40] ip address 10.214.40.1 30
[MCE-Vlan-interface40] quit
Configure the routing protocol running between MCE and a site
# The procedure of enabling OSPF in the two VPN instances and advertising the network segments is
the same as that in normal OSPF and is omitted.
# Create OSPF process 10 for MCE whose router ID is 10.10.10.1, bind the process to VPN1.
Redistribute BGP routes from VPN1, enable OSPF multi-instance, and advertise the network segment
10.100.10.0.
<MCE> system-view
[MCE] ospf 10 router-id 10.10.10.1 vpn-instance vpn1
[MCE-ospf-10] vpn-instance capability simple
[MCE-ospf-10] import-route bgp
[MCE-ospf-10] area 0
[MCE-ospf-10-area-0.0.0.0] network 10.100.10.0 0.0.0.255
# Display the information about the routes of VPN1.
[MCE-ospf-10-area-0.0.0.0] display ip routing-table vpn-instance vpn1
Routing Tables: vpn1
Destinations : 5
Destination/Mask
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
10.100.10.0/24
10.100.10.1/32
172.16.10.0/24
As shown in the displayed information above, MCE has obtained the routing information of VPN1
through OSPF process 10.
# Create OSPF process 20 for MCE whose router ID is 10.10.20.1, bind the process to VPN2.
Redistribute BGP routes from VPN2, enable OSPF multi-instance, and advertise the network segment
Routes : 5
Proto Pre Cost
0
0
Direct 0
0
Direct 0
0
OSPF
10
1
NextHop
Interface
127.0.0.1
InLoop0
127.0.0.1
InLoop0
10.100.10.1
Vlan2
127.0.0.1
InLoop0
10.100.10.2
Vlan2
14-30

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820x series

Table of Contents