User's Manual

492
Switch_config#
show ip vrf
[ brief | detail | interface ] [
vrf-name
]
Browses the VRF information.
Switch_config#
no ip vrf
vrf-name Deletes the configured VRF and the relation between
VRF and the L3 interface.
vfi-name: Means the name of VRF.
Switch_config_intf#
no ip vrf forwarding
[
vrf-name
]
Deletes the relation between the L3 interface and VRF.
68.3.2 Configuring VPN Route
The route can be established between MCE and customer device through the configuration of BGP, OSPF,
RIP, BEIGRP or static route. The following takes OSPF configuration as an example, which is similar to other
routes’ configurations.
Note:
When a route is configured on MCE to connect the client network, the VRF attributes of the
routing protocol need be specified. VRF need not be configured on the customer device.
Command Purpose
Switch#
config
Enters the switch configuration mode.
Switch
_
config#
router ospf
process-id
vrf
vrf-name
Starts the OSPF-VRF route and enters the configuration
mode.
Switch_config_ospf#
network
network-number
network-mask
area
area-id
Defines the OSPF network, mask and area ID.
Switch_config_ospf#
redistribute bgp
ASN Forwards the designated BGP network to the OSPF
network.
Switch_config_ospf#
exit
Exits from the OSPF configuration mode.
Switch_config#
show ip ospf
Browses the information about the OSPF protocol.
Switch_config#
no router ospf
process-id Deletes the OSPF-VRF routing configuration.
68.3.3 Configuring the BGP Route Between PE and CE
Refer to the following configuration commands:
Command Purpose
Switch#
config
Enters the switch configuration mode.
Switch_config#
router bgp
autonomous-system-number
Starts the BGP protocol by designating
autonomous system number and enters the BGP
configuration mode.
Switch_config_bgp#
bgp log-neighbor-changes
Starts the record about BGP neighbor change.
Switch_config_bgp#
address-family ipv4 vrf
vrf-name
Enters the configuration mode of VRF address-
family.
Switch_config_bgp_af#
redistribute ospf
ospf-process-id
Forwards the OSPF routing information to the
BGP network.
Switch_config_bgp_af#
network
network-
number/prefix-length
Configures the network number and the mask‘s
length that are distributed by BGP.
Switch_config_bgp_af#
neighbor
address Configures the BGP neighbor and the