Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
Issue 03 (2009-08-20)
If the BGP process is not started on the local S9300, the default tag value is 0.
–
If the BGP process is started on the local S9300, the first two bytes in the tag are
–
fixed as 0xD000 and the last two bytes specify the ASN of the local end. That is,
Tag value = 3489660928 + ASN of BGP.
5.
Run:
import-route bgp [ cost value ] [ type { 1 | 2 } ] [ tag value ] [ route-
policy policy-name ]
The BGP routes are imported.
If you run this command without specifying the type of routes, the BGP routes are
imported to the OSPF routing table as Type-2 routes.
6.
Run:
area area-id
The OSPF area view is displayed.
7.
Run:
network ip-address wildcard-mask
OSPF is run in the network segment of the interface bound to the VPN instance.
A network segment belongs to only one area. That is, you must specify an area for
each OSPF interface.
OSPF can run on an interface if the following conditions are met:
The mask length of the IP address on the interface is equal to or longer than the
–
length of the mask specified in the network ip-address wildcard-mask command.
The primary IP address of an interface is on the network segment specified by the
–
command.
For a loopback interface, OSPF advertises the IP address of the loopback interface as
a 32-bit host route by default, which is irrelevant to the mask length set on the interface.
8.
Run:
quit
Return to the OSPF view.
9.
Run:
quit
Return to the system view.
10. Run:
bgp as-number
The BGP view is displayed.
11. Run:
ipv4-family vpn-instance vpn-instance-name
The BGP VPN instance view is displayed.
12. Run:
import-route ospf process-id [ med med ] [ route-policy policy-name ]
The OSPF routes are imported to the routing table of the BGP VPN instance.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3 BGP/MPLS IP VPN Configuration
3-19