H3C S5830V2 & S5820V2 Switch Series
MCE Configuration Guide
Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 22
xx
Document version: 6W100-
20131105
Страница 1: ...H3C S5830V2 S5820V2 Switch Series MCE Configuration Guide Hangzhou H3C Technologies Co Ltd http www h3c com Software version Release 22xx Document version 6W100 20131105...
Страница 2: ...re Secware Storware NQA VVG V2 G Vn G PSPT XGbus N Bus TiGem InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co Ltd All other trademarks that may be mentioned in this manual are the...
Страница 3: ...upport Documentation feedback Audience This documentation is intended for Network planners Field technical support and servicing engineers Network administrators working with the S5830V2 S5820V2 serie...
Страница 4: ...choice multiple choices or none 1 n The argument or keyword and argument combination before the ampersand sign can be entered 1 to n times A line that starts with a pound sign is comments GUI convent...
Страница 5: ...n assemblies installation manual Describes the appearance specifications and installation and removal of hot swappable fan assemblies Power modules user manual Describes the appearance specifications...
Страница 6: ...Technical support service h3c com http www h3c com Documentation feedback You can e mail your comments about product documentation to info h3c com We appreciate your comments...
Страница 7: ...guration examples 15 Using OSPF to advertise VPN routes to the PE 15 Using BGP to advertise VPN routes to the PE 21 Configuring IPv6 MCE 26 Overview 26 Configuring VPN instances on an IPv6 MCE device...
Страница 8: ...e edge of a customer network and has one or more interfaces directly connected to a service provider network It can be a router a switch or a host It can neither sense the presence of any VPN nor does...
Страница 9: ...tes connected to the same provider network can be classified into different sets by policies Only the sites in the same set can access each other through the provider network Such a set is called a VP...
Страница 10: ...P address Route target attributes MPLS L3VPN uses the BGP extended community attributes called route target attributes or route target attributes to control the advertisement of VPN routing informatio...
Страница 11: ...gure 3 Network diagram for the MCE function On the left side network there are two VPN sites both of which are connected to the MPLS backbone through the MCE device VPN 1 and VPN 2 on the left side ne...
Страница 12: ...with an interface Step Command Remarks 1 Enter system view system view N A 2 Enter interface view interface interface type interface number N A 3 Associate the current interface with a VPN instance ip...
Страница 13: ...sure the routing policy already exists Otherwise the device does not filter received routes 7 Optional Apply a routing policy to filter outgoing routes for the VPN instance export route policy route...
Страница 14: ...On the VPN site configure a normal static route 3 Optional Configure the default preference for static routes ip route static default preference default preference value The default setting is 60 Con...
Страница 15: ...d enter OSPF view ospf process id router id router id vpn instance vpn instance name Perform this configuration on the MCE On the VPN site create a normal OSPF process 3 Optional Configure the OSPF do...
Страница 16: ...e default route This command redistributes the default route in a Type 3 LSA The MCE advertises the default route to the site 8 Create an OSPF area and enter OSPF area view area area id By default no...
Страница 17: ...istribute the IGP routes of each VPN instance on the VPN sites 1 Configure the MCE Step Command Remarks 1 Enter system view system view N A 2 Enter BGP view bgp as number N A 3 Enter BGP VPN instance...
Страница 18: ...ded to BGP VPN routes as an extended community attribute BGP runs in a BGP VPN instance in the same way as it runs in a normal network For more information about BGP see Layer 3 IP Routing Configurati...
Страница 19: ...vpn instance vpn instance name N A 3 Enable RIP on the interface attached to the specified network network network address By default RIP is disabled on an interface 4 Redistribute the VPN routes impo...
Страница 20: ...cy route policy name By default no route of any other routing protocol is redistributed into OSPF 8 Optional Configure OSPF to redistribute the default route default route advertise summary cost cost...
Страница 21: ...e IS IS process on the interface isis enable process id By default no IS IS process is enabled For more information about IS IS see Layer 3 IP Routing Configuration Guide Configuring EBGP between an M...
Страница 22: ...nstance name group name Display BGP peer information for a VPN instance display bgp peer ipv4 vpn instance vpn instance name group name log info ip address log info verbose verbose For other MCE relat...
Страница 23: ...quit MCE ip vpn instance vpn2 MCE vpn instance vpn2 route distinguisher 20 1 MCE vpn instance vpn2 vpn target 20 1 MCE vpn instance vpn2 quit Create VLAN 10 add port Ten GigabitEthernet 1 0 1 to VLAN...
Страница 24: ...tween the MCE and VPN sites The MCE is connected to VPN 1 directly and no routing protocol is enabled in VPN 1 Therefore you can configure static routes On VR 1 assign IP address 10 214 10 2 24 to the...
Страница 25: ...ted to VPN 2 Details not shown Configure OSPF process 2 and advertise subnets 192 168 10 0 24 and 10 214 20 0 24 VR2 system view VR2 ospf 2 VR2 ospf 2 area 0 VR2 ospf 2 area 0 0 0 0 network 192 168 10...
Страница 26: ...d configure an IP address for the VLAN interface MCE vlan 30 MCE vlan30 quit MCE interface vlan interface 30 MCE Vlan interface30 ip binding vpn instance vpn1 MCE Vlan interface30 ip address 30 1 1 1...
Страница 27: ...0 network 30 1 1 0 0 0 0 255 PE1 ospf 10 area 0 0 0 0 quit PE1 ospf 10 quit On PE 1 display the routing table of VPN instance vpn1 PE1 display ip routing table vpn instance vpn1 Destinations 13 Route...
Страница 28: ...0 0 1 InLoop0 127 255 255 255 32 Direct 0 0 127 0 0 1 InLoop0 192 168 10 0 24 OSPF 150 1 40 1 1 1 Vlan40 224 0 0 0 4 Direct 0 0 0 0 0 0 NULL0 224 0 0 0 24 Direct 0 0 0 0 0 0 NULL0 255 255 255 255 32...
Страница 29: ...MCE ospf 10 router id 10 10 10 1 vpn instance 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 quit Display the routing table o...
Страница 30: ...0 0 10 214 20 3 Vlan20 10 214 20 0 32 Direct 0 0 10 214 20 3 Vlan20 10 214 20 3 32 Direct 0 0 127 0 0 1 InLoop0 10 214 20 255 32 Direct 0 0 10 214 20 3 Vlan20 127 0 0 0 8 Direct 0 0 127 0 0 1 InLoop0...
Страница 31: ...0 4 Direct 0 0 0 0 0 0 NULL0 224 0 0 0 24 Direct 0 0 0 0 0 0 NULL0 255 255 255 255 32 Direct 0 0 127 0 0 1 InLoop0 Perform similar configuration on the MCE and PE 1 for VPN 2 Redistribute the OSPF rou...
Страница 32: ...25 Now the MCE has redistributed the OSPF routes of the two VPN instances into the EBGP routing tables of PE 1...
Страница 33: ...ng a VPN instance You can configure a description for a VPN instance to record its related information such as its relationship with a certain VPN To create and configure a VPN instance Step Command R...
Страница 34: ...e target The VPN instance determines how to change the route target attributes for routes to be advertised according to the export extcommunity in the route target To configure route attributes for a...
Страница 35: ...on an IPv6 MCE complete the following tasks On the IPv6 MCE configure VPN instances and bind the VPN instances with the interfaces connected to the VPN sites and those connected to the PE Configure t...
Страница 36: ...MCE and the sites through different RIPng processes ensuring the separation and security of IPv6 VPN routes For more information about RIPng see Layer 3 IP Routing Configuration Guide To configure RIP...
Страница 37: ...rea area id instance instance id By default OSPFv3 is disabled on an interface NOTE Deleting a VPN instance also deletes all related OSPFv3 processes Configuring IPv6 IS IS between an IPv6 MCE and a V...
Страница 38: ...he received routes and the routes to be advertised 1 Configure the IPv6 MCE Step Command Remarks 1 Enter system view system view N A 2 Enter BGP view bgp as number N A 3 Enter BGP VPN instance view ip...
Страница 39: ...lt no route redistribution is configured A VPN site must advertise the IPv6 VPN network addresses it can reach to the connected IPv6 MCE Configuring routing between an IPv6 MCE and a PE IPv6 MCE PE ro...
Страница 40: ...he interface ripng process id enable By default RIPng is disabled on an interface For more information about RIPng see Layer 3 IP Routing Configuration Guide Configuring OSPFv3 between an IPv6 MCE and...
Страница 41: ...ering policy to filter the redistributed routes ipv6 filter policy acl6 number prefix list ipv6 prefix name route policy route policy name export protocol process id By default IPv6 IS IS does not fil...
Страница 42: ...P see Layer 3 IP Routing Configuration Guide Displaying information about IPv6 MCE Execute display commands in any view Task Command Display information about a specific or all VPN instances display i...
Страница 43: ...pn2 and specify an RD and route targets for each VPN instance MCE system view MCE ip vpn instance vpn1 MCE vpn instance vpn1 route distinguisher 10 1 MCE vpn instance vpn1 vpn target 10 1 MCE vpn inst...
Страница 44: ...er 40 1 PE1 vpn instance vpn2 vpn target 20 1 PE1 vpn instance vpn2 quit 2 Configure routing between the MCE and VPN sites The MCE is connected to VPN 1 directly and no routing protocol is enabled in...
Страница 45: ...ce vpn1 Routing Table vpn1 Destinations 5 Routes 5 Destination 1 128 Protocol Direct NextHop 1 Preference 0 Interface InLoop0 Cost 0 Destination 2001 1 64 Protocol Direct NextHop 2001 1 1 Preference 0...
Страница 46: ...unk port and configure it to permit packets of VLAN 30 and VLAN 40 to pass with VLAN tags PE1 interface ten gigabitethernet 1 0 1 PE1 Ten GigabitEthernet1 0 1 port link type trunk PE1 Ten GigabitEther...
Страница 47: ...tance vpn1 and redistribute the IPv6 static route of VPN 1 MCE ospfv3 10 vpn instance vpn1 MCE ospfv3 10 router id 101 101 10 1 MCE ospfv3 10 import route static MCE ospfv3 10 quit Enable OSPFv3 on VL...
Страница 48: ...ble of the MCE The output shows that PE 1 has learned the private route of VPN 2 through OSPFv3 PE1 display ipv6 routing table vpn instance vpn2 Routing Table vpn2 Destinations 5 Routes 5 Destination...
Страница 49: ...MCE 26 IPv6 static routing between IPv6 MCE and PE 32 IPv6 static routing between IPv6 MCE and VPN site 28 IS IS between MCE and PE 14 IS IS between MCE and VPN site 9 MCE 1 MCE and PE static routing...
Страница 50: ...nfiguring routing between IPv6 MCE and PE 32 configuring routing between IPv6 MCE and VPN site 28 configuring VPN instance 26 configuring VPN instance route related attribute 27 creating VPN instance...
Страница 51: ...RIPng between IPv6 MCE and PE 33 configuring RIPng between IPv6 MCE and VPN site 29 configuring static routing between MCE and PE 12 configuring static routing between MCE and VPN site 7 configuring V...
Страница 52: ...site 29 routing configuring EBGP between IPv6 MCE and PE 34 configuring EBGP between IPv6 MCE and VPN site 31 configuring EBGP between MCE and PE 14 configuring EBGP between MCE and VPN site 10 config...
Страница 53: ...te 30 configuring IPv6 MCE 26 configuring IPv6 static routing between IPv6 MCE and PE 32 configuring IPv6 static routing between IPv6 MCE and VPN site 28 configuring IS IS between MCE and PE 14 config...