43-11
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
Switch(config-vrf)#
route-target import 800:2
Switch(config-vrf)#
exit
Configure the loopback and physical interfaces on switch S8. Fast Ethernet interface 3/5 is a trunk
connection to the PE. Interfaces 3/7 and 3/11 connect to VPNs:
Switch(config)#
interface loopback1
Switch(config-if)#
ip vrf forwarding v11
Switch(config-if)#
ip address 8.8.1.8 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
interface loopback2
Switch(config-if)#
ip vrf forwarding v12
Switch(config-if)#
ip address 8.8.2.8 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
interface FastEthernet3/5
Switch(config-if)#
switchport trunk encapsulation dot1q
Switch(config-if)#
switchport mode trunk
Switch(config-if)#
no ip address
Switch(config-if)#
exit
Switch(config)#
interface FastEthernet3/8
Switch(config-if)#
switchport access vlan 208
Switch(config-if)#
no ip address
Switch(config-if)#
exit
Switch(config)#
interface FastEthernet3/11
Switch(config-if)#
switchport trunk encapsulation dot1q
Switch(config-if)#
switchport mode trunk
Switch(config-if)#
no ip address
Switch(config-if)#
exit
Configure the VLANs used on switch S8. VLAN 10 is used by VRF 11 between the CE and the PE.
VLAN 20 is used by VRF 12 between the CE and the PE. VLANs 118 and 208 are used for VRF for the
VPNs that include switch S11 and switch S20, respectively:
Switch(config)#
interface Vlan10
Switch(config-if)#
ip vrf forwarding v11
Switch(config-if)#
ip address 38.0.0.8 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
interface Vlan20
Switch(config-if)#
ip vrf forwarding v12
Switch(config-if)#
ip address 83.0.0.8 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
interface Vlan118
Switch(config-if)#
ip vrf forwarding v12
Switch(config-if)#
ip address 118.0.0.8 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
interface Vlan208
Switch(config-if)#
ip vrf forwarding v11
Switch(config-if)#
ip address 208.0.0.8 255.255.255.0
Switch(config-if)#
exit
Configure OSPF routing in VPN1 and VPN2:
Switch(config)#
router ospf 1 vrf vl1
Switch(config-router)#
redistribute bgp 800 subnets
Switch(config-router)#
network 208.0.0.0 0.0.0.255 area 0
Switch(config-router)#
exit
Switch(config)#
router ospf 2 vrf vl2
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...