H3C E500C-F Series Скачать руководство пользователя страница 16

10 

For commands that display routing tables for VPN instances, see 

Layer 3—IP Routing Command 

Reference

MCE configuration examples 

Example: Configuring the MCE that uses OSPF to advertise 
VPN routes to the PE 

Network configuration 

As shown i

Figure 4

, VPN 2 runs OSPF. The edge devices of VPN 1 and VPN 2 are VR 1 and VR 2, 

respectively. Configure the MCE device to separate routes from different VPNs and to advertise the 
VPN routes to PE 1 through OSPF. 

Figure 4 Network diagram 

 

 

Procedure 

1. 

Configure the VPN instances on the MCE and PE 1: 

# On the MCE, configure VPN instances 

vpn1

 and 

vpn2

, 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-instance-vpn1] quit 

[MCE] ip vpn-instance vpn2 

[MCE-vpn-instance-vpn2] route-distinguisher 20:1 

CE 2

VPN 1

Site 2

CE 1

VPN 2

Site 1 

PE 1

PE 3

PE 2

VPN 2

192.168.10.0/24

VR 2

VPN 1 

192.168.0.0/24

VR 1

MCE

Vlan-int10

10.214.10.3/24

Vlan-int30: 30.1.1.2/24
Vlan-int40: 40.1.1.2/24

Vlan-int30: 30.1.1.1/24
Vlan-int40: 40.1.1.1/24

Vlan-int20
10.214.20.3/24

Содержание E500C-F Series

Страница 1: ...H3C E500C F FS5100 EI Switch Series MCE Configuration Guide New H3C Technologies Co Ltd http www h3c com Document version 6W100 20230130...

Страница 2: ...espective owners Notice The information in this document is subject to change without notice All contents in this document including statements information and recommendations are believed to be accur...

Страница 3: ...text represents commands and keywords that you enter literally as shown Italic Italic text represents arguments that you replace with actual values Square brackets enclose syntax choices keywords or...

Страница 4: ...at contains additional or supplementary information TIP An alert that provides helpful information Network topology icons Convention Description Represents a generic network device such as a router sw...

Страница 5: ...document might use devices that differ from your device in hardware model configuration or software version It is normal that the port numbers sample output screenshots and other information in the e...

Страница 6: ...a PE 9 Display and maintenance commands for MCE 9 MCE configuration examples 10 Example Configuring the MCE that uses OSPF to advertise VPN routes to the PE 10 Configuring IPv6 MCE 15 About IPv6 MCE 1...

Страница 7: ...evices Using a common CE for multiple VPNs cannot ensure data security because the VPNs use the same routing table The MCE feature offers balance between cost and security It creates multiple VPN inst...

Страница 8: ...e 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 VPN VPN instance VPN instances implement route iso...

Страница 9: ...e global uniqueness for a VPN IPv4 address do not set the Administrator subfield to any private AS number or private IP address Route target attribute MPLS L3VPN uses route target community attributes...

Страница 10: ...amic IP assignment for DHCP clients in private networks you can configure DHCP server or DHCP relay agent on the MCE When the MCE functions as the DHCP server the IP addresses assigned to different pr...

Страница 11: ...nstance 5 Optional Configure a VPN ID for the VPN instance vpn id vpn id By default no VPN ID is configured for a VPN instance Associating a VPN instance with a Layer 3 interface 1 Enter system view s...

Страница 12: ...nity By default no route targets are configured 4 Set the maximum number of active routes routing table limit number warn threshold simply alert By default the number of active routes in a VPN instanc...

Страница 13: ...mmon RIP process Procedure 1 Enter system view system view 2 Create a RIP process for a VPN instance and enter RIP view rip process id vpn instance vpn instance name A RIP process can belong to only o...

Страница 14: ...nable OSPF on the interface attached to the specified network in the area network ip address wildcard mask By default an interface neither belongs to any area nor runs OSPF Configuring routing between...

Страница 15: ...spf process id router id router id vpn instance vpn instance name 3 Disable routing loop detection vpn instance capability simple By default routing loop detection is enabled and the MCE does not rece...

Страница 16: ...Network diagram Procedure 1 Configure the VPN instances on the MCE and PE 1 On the MCE configure VPN instances vpn1 and vpn2 and specify an RD and route targets for each VPN instance MCE system view M...

Страница 17: ...e 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 VPN 1 Therefore you can configure static routes On VR 1 assig...

Страница 18: ...stem view VR2 ospf 2 VR2 ospf 2 area 0 VR2 ospf 2 area 0 0 0 0 network 192 168 10 0 0 0 0 255 VR2 ospf 2 area 0 0 0 0 network 10 214 20 0 0 0 0 255 VR2 ospf 2 area 0 0 0 0 quit VR2 ospf 2 quit On the...

Страница 19: ...nterface40 ip binding vpn instance vpn2 PE1 Vlan interface40 ip address 40 1 1 2 24 PE1 Vlan interface40 quit Configure the IP address of the interface Loopback 0 as 101 101 10 1 for the MCE and as 10...

Страница 20: ...lan30 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 Direct 0 0 127 0 0 1 InLoop0 Verify that PE 1 has learned the routes of OSPF process 20 in VPN 2 thr...

Страница 21: ...routing protocols to save system resources IPv6 MCE tasks at a glance To configure IPv6 MCE perform the following tasks 1 Configuring VPN instances Perform the following VPN instance tasks on PEs and...

Страница 22: ...e with an interface or disassociating a VPN instance from an interface will clear the IP address and routing protocol settings of the interface Configuration of this command deletes the IPv6 address o...

Страница 23: ...MCE and a VPN site About IPv6 static routing between an MCE and a VPN site An MCE can reach a VPN site through an IPv6 static route IPv6 static routing on a traditional CE is globally effective and d...

Страница 24: ...e redistributed into RIPng 4 Return to system view quit 5 Enter interface view interface interface type interface number 6 Enable RIPng on the interface ripng process id enable By default RIPng is dis...

Страница 25: ...ng configurations on the MCE For information about configuring the PE see the documentation for the PE Configuring IPv6 static routing between an MCE and a PE 1 Enter system view system view 2 Configu...

Страница 26: ...receive OSPFv3 routes from the PE 5 Redistribute VPN routes import route protocol as number process id all processes allow direct cost cost value nssa only route policy route policy name tag tag type...

Страница 27: ...N instances vpn1 and vpn2 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 ta...

Страница 28: ...PN sites The MCE is connected to VPN 1 directly and no routing protocol is enabled in VPN 1 Therefore you can configure IPv6 static routes On VR 1 assign IPv6 address 2001 1 2 64 to the interface conn...

Страница 29: ...ce 0 Interface Vlan10 Cost 0 Destination 2001 1 1 128 Protocol Direct NextHop 1 Preference 0 Interface InLoop0 Cost 0 Destination 2012 1 64 Protocol Static NextHop 2001 1 2 Preference 60 Interface Vla...

Страница 30: ...terface MCE interface vlan interface 40 MCE Vlan interface40 ip binding vpn instance vpn2 MCE Vlan interface40 ipv6 address 40 1 64 MCE Vlan interface40 quit On PE 1 bind VLAN interface 30 to VPN inst...

Страница 31: ...tails not shown Verifying the configuration Verify that PE 1 has learned the private route of VPN 1 through OSPFv3 PE1 display ipv6 routing table vpn instance vpn1 Destinations 6 Routes 6 Destination...

Страница 32: ...otocol Direct NextHop 1 Preference 0 Interface InLoop0 Cost 0 Destination 2012 64 Protocol O_ASE2 NextHop FE80 200 FF FE0F 5 Preference 150 Interface Vlan40 Cost 1 Destination FE80 10 Protocol Direct...

Отзывы: