Configuration prerequisites, Configuring a loopback interface, Creating a sham link – H3C Technologies H3C S7500E Series Switches User Manual
Page 270

6-45
Configuration Prerequisites
Before configuring OSPF sham link, be sure to complete these tasks:
z
Configuring basic MPLS L3VPN (OSPF is used between PE and CE)
z
Configuring OSPF in the LAN where CEs reside
Configuring a Loopback Interface
Follow these steps to configure a loopback interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a loopback interface and
enter loopback interface view
interface loopback
interface-number
Required
Bind the loopback interface to VPN
instance
ip binding vpn-instance
vpn-instance-name
Required
By default, an interface is
associated with no VPN instance.
Configure the address of the
loopback interface
ip address ip-address
{ mask |
mask-length
}
Required
Redistributing OSPF Routes and Routes of a Loopback Interface Into BGP
Follow these steps to redistribute OSPF routes and routes of a loopback interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
Required
Enter BGP VPN instance view
ipv4-family vpn-instance
vpn-instance-name
Required
Inject direct routes, that is,
loopback host routes
import-route direct [ med
med-value | route-policy
route-policy-name ] *
Required
Redistribute private routes from
OSPF
import-route ospf
[ { process-id |
all-processes
} [ med med-value |
route-policy
route-policy-name ]
* ]
Required
Creating a Sham Link
Follow these steps to create a sham link: