40-89
Catalyst 3750-E and 3560-E Switch Software Configuration Guide
OL-9775-08
Chapter 40 Configuring IP Unicast Routing
Configuring Multi-VRF CE
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 gigabitethernet1/1/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 gigabitethernet1/1/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 38.0.0.8 remote-as 800
Router(config-router-af)#
neighbor 38.0.0.8 activate
Router(config-router-af)#
network 3.3.1.0 mask 255.255.255.0
Router(config-router-af)#
end
Displaying Multi-VRF CE Status
Table 40-15
Commands for Displaying Multi-VRF CE Information
Command
Purpose
show ip protocols vrf
vrf-name
Display routing protocol information associated
with a VRF.
show ip route vrf
vrf-name
[
connected
] [
protocol
[
as-number
]] [
list
]
[
mobile
] [
odr
] [
profile
] [
static
] [
summary
] [
supernets-only
]
Display IP routing table information associated
with a VRF.
show ip vrf
[
brief
|
detail
|
interfaces
] [
vrf-name
]
Display information about the defined VRF
instances.
Содержание Catalyst 3750-E Series
Страница 48: ...Contents xlviii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...
Страница 52: ...lii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 Preface ...
Страница 1414: ...Index IN 58 Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...