Huawei S6700 Series Configuration Manual page 662

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
3.
4.
Issue 01 (2012-03-15)
# Create VPN instances on PE2.
[PE2] ip vpn-instance vpna
[PE2-vpn-instance-vpna] route-distinguisher 100:1
[PE2-vpn-instance-vpna] quit
[PE2] ip vpn-instance vpnb
[PE2-vpn-instance-vpnb] route-distinguisher 100:2
[PE2-vpn-instance-vpnb] quit
# Bind VPN instances to sub-interfaces on PE2 and assign IP addresses to the sub-
interfaces.
[PE2] interface gigabitethernet 1/0/1.1
[PE2-GigabitEthernet1/0/1.1] ip binding vpn-instance vpnb
[PE2-GigabitEthernet1/0/1.1] ip address 172.18.1.1 255.255.0.0
[PE2-GigabitEthernet1/0/1.1] quit
[PE2] interface gigabitethernet 1/0/1.2
[PE2-GigabitEthernet1/0/1.2] ip binding vpn-instance vpna
[PE2-GigabitEthernet1/0/1.2] ip address 172.19.1.1 255.255.0.0
[PE2-GigabitEthernet1/0/1.2] quit
Configure the OSPF route multi-instance between the MCE and PE2.
# Configure the OSPF route multi-instance on PE2.
[PE2] ospf 100 vpn-instance vpna
[PE2-ospf-100] area 0
[PE2-ospf-100-area-0.0.0.0] network 172.19.0.0 0.0.255.255
[PE2-ospf-100-area-0.0.0.0] quit
[PE2-ospf-100] quit
[PE2] ospf 200 vpn-instance vpnb
[PE2-ospf-200] area 0
[PE2-ospf-200-area-0.0.0.0] network 172.18.0.0 0.0.255.255
[PE2-ospf-200-area-0.0.0.0] quit
[PE2-ospf-200] quit
# Configure the OSPF route multi-instance on the MCE.
[MCE] ospf 100 vpn-instance vpna
[MCE-ospf-100] area 0
[MCE-ospf-100-area-0.0.0.0] network 172.19.0.0 0.0.255.255
[MCE-ospf-100-area-0.0.0.0] network 192.168.2.0 0.0.0.255
[MCE-ospf-100-area-0.0.0.0] quit
[MCE-ospf-100] quit
[MCE] ospf 200 vpn-instance vpnb
[MCE-ospf-200] area 0
[MCE-ospf-200-area-0.0.0.0] network 172.18.0.0 0.0.255.255
[MCE-ospf-100-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[MCE-ospf-200-area-0.0.0.0] quit
[MCE-ospf-200] quit
Verify the configuration.
# After the configuration, run the display ip routing-table vpn-instance command on the
MCE, and you can view the routes to the local VPN.
Take vpnb as an example:
[MCE] display ip routing-table vpn-instance vpnb
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpnb
Destinations : 5
Destination/Mask
Proto
192.168.1.0/24 Direct 0
192.168.1.1/32 Direct 0
172.18.0.0/16
Direct 0
172.18.1.1/32
Direct 0
172.18.1.2/32
Direct 0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 5
Pre
Cost
Flags NextHop
0
D
192.168.1.1
0
D
127.0.0.1
0
D
172.18.1.2
0
D
172.18.1.1
0
D
127.0.0.1
11 MCE Configuration
Interface
Vlanif10
Vlanif10
Vlanif30
Vlanif30
Vlanif30
643

Advertisement

Table of Contents
loading

Table of Contents