
43-8
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 43 Configuring VRF-lite
Configuring VRF-lite for IPv4
The following example shows how to configure multicast within a VRF table:
Switch(config)#
ip routing
Switch(config)#
ip vrf multiVrfA
Switch(config-vrf)#
ip multicast-routing vrf multiVrf
A
Switch(config-vrf)#
interface GigabitEthernet3/1/0
Switch(config-if)#
ip vrf forwarding multiVrfA
Switch(config-if)#
ip address 172.21.200.203 255.255.255.0
Switch(config-if)#
ip pim sparse-mode
For more information about configuring a multicast within a Multi-VRF CE, see the
Cisco IOS IP Multicast Configuration Guide, Release 12.4
.
Use the
no
ip vrf
vrf-name
global configuration command to delete a VRF and to remove all interfaces
from it. Use the
no ip vrf forwarding
interface configuration command to remove an interface from the
VRF.
Configuring a VPN Routing Session
Routing within the VPN can be configured with any supported routing protocol (RIP, OSPF, or BGP) or
with static routing. The configuration shown here is for OSPF, but the process is the same for other
protocols.
To configure OSPF in the VPN, perform this task:
Step 8
Switch(config-vrf)#
interface
interface-id
Enters interface configuration mode and specifies the
Layer 3 interface to be associated with the VRF. The
interface can be a routed port or a SVI.
Step 9
Switch(config-if)#
ip vrf forwarding
vrf-name
Associates the VRF with the Layer 3 interface.
Step 10
Switch(config-if)#
ip address
ip-address
mask
Configures IP address for the Layer 3 interface.
Step 11
Switch(config-if)#
ip pim
[
sparse-dense mode
|
dense-mode
|
sparse-mode
]
Enables PIM on the VRF-associated Layer 3 interface.
Step 12
Switch(config-if)#
end
Returns to privileged EXEC mode.
Step 13
Switch#
show ip vrf
[
brief
|
detail
|
interfaces
] [
vrf-name
]
Verifies the configuration. Display information about the
configured VRFs.
Step 14
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
router ospf
process-id
vrf
vrf-name
Enables OSPF routing, specifies a VPN forwarding table,
and enters router configuration mode.
Step 3
Switch(config-router)#
log-adjacency-changes
(Optional) Logs changes in the adjacency state (the default
state).
Step 4
Switch(config-router)#
redistribute
bgp
autonomous-system-number
subnets
Sets the switch to redistribute information from the BGP
network to the OSPF network.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...