43-13
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
Configuring the PE Switch S3
On switch S3 (the router), these commands configure only the connections to switch S8:
Router#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
ip vrf v1
Router(config-vrf)#
rd 100:1
Router(config-vrf)#
route-target export 100:1
Router(config-vrf)#
route-target import 100:1
Router(config-vrf)#
exit
Router(config)#
ip vrf v2
Router(config-vrf)#
rd 100:2
Router(config-vrf)#
route-target export 100:2
Router(config-vrf)#
route-target import 100:2
Router(config-vrf)#
exit
Router(config)#
ip cef
Router(config)#
interface Loopback1
Router(config-if)#
ip vrf forwarding v1
Router(config-if)#
ip address 3.3.1.3 255.255.255.0
Router(config-if)#
exit
Router(config)#
interface Loopback2
Router(config-if)#
ip vrf forwarding v2
Router(config-if)#
ip address 3.3.2.3 255.255.255.0
Router(config-if)#
exit
Router(config)#
interface Fast Ethernet3/0.10
Router(config-if)#
encapsulation dot1q 10
Router(config-if)#
ip vrf forwarding v1
Router(config-if)#
ip address 38.0.0.3 255.255.255.0
Router(config-if)#
exit
Router(config)#
interface Fast Ethernet3/0.20
Router(config-if)#
encapsulation dot1q 20
Router(config-if)#
ip vrf forwarding v2
Router(config-if)#
ip address 83.0.0.3 255.255.255.0
Router(config-if)#
exit
Router(config)#
router bgp 100
Router(config-router)#
address-family ipv4 vrf v2
Router(config-router-af)#
neighbor 83.0.0.8 remote-as 800
Router(config-router-af)#
neighbor 83.0.0.8 activate
Router(config-router-af)#
network 3.3.2.0 mask 255.255.255.0
Router(config-router-af)#
exit
Router(config-router)#
address-family ipv4 vrf vl
Router(config-router-af)#
neighbor 83.0.0.8 remote-as 800
Router(config-router-af)#
neighbor 83.0.0.8 activate
Router(config-router-af)#
network 3.3.1.0 mask 255.255.255.0
Router(config-router-af)#
end
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 ...