1-89
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-25303-03
Chapter 1 Configuring IP Unicast Routing
Configuring Multi-VRF CE
Switch(config)#
router bgp 800
Switch(config-router)#
address-family ipv4 vrf vl2
Switch(config-router-af)#
redistribute ospf 2 match internal
Switch(config-router-af)#
neighbor 83.0.0.3 remote-as 100
Switch(config-router-af)#
neighbor 83.0.0.3 activate
Switch(config-router-af)#
network 8.8.2.0 mask 255.255.255.0
Switch(config-router-af)#
exit
Switch(config-router)#
address-family ipv4 vrf vl1
Switch(config-router-af)#
redistribute ospf 1 match internal
Switch(config-router-af)#
neighbor 38.0.0.3 remote-as 100
Switch(config-router-af)#
neighbor 38.0.0.3 activate
Switch(config-router-af)#
network 8.8.1.0 mask 255.255.255.0
Switch(config-router-af)#
end
Configuring Switch D
Switch D belongs to VPN 1. Configure the connection to Switch A by using these commands.
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
ip routing
Switch(config)#
interface gigabitethernet1/0/2
Switch(config-if)#
no switchport
Switch(config-if)#
ip address 208.0.0.20 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
router ospf 101
Switch(config-router)#
network 208.0.0.0 0.0.0.255 area 0
Switch(config-router)#
end
Configuring Switch F
Switch F belongs to VPN 2. Configure the connection to Switch A by using these commands.
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
ip routing
Switch(config)#
interface gigabitethernet1/0/1
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 vlan118
Switch(config-if)#
ip address 118.0.0.11 255.255.255.0
Switch(config-if)#
exit
Switch(config)#
router ospf 101
Switch(config-router)#
network 118.0.0.0 0.0.0.255 area 0
Switch(config-router)#
end
Configuring the PE Switch B
When used on switch B (the PE router), these commands configure only the connections to the CE
device, Switch A.
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
Summary of Contents for Catalyst 3560-X Series
Page 12: ...Contents 10 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 13: ...Contents 11 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 14: ...Contents 12 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 15: ...Contents 13 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 16: ...Contents 14 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 17: ...Contents 15 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 18: ...Contents 16 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 19: ...Contents 17 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 20: ...Contents 18 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 21: ...Contents 19 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 22: ...Contents 20 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 23: ...Contents 21 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 24: ...Contents 22 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 25: ...Contents 23 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 26: ...Contents 24 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 27: ...Contents 25 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 28: ...Contents 26 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 29: ...Contents 27 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 30: ...Contents 28 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 31: ...Contents 29 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 32: ...Contents 30 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 33: ...Contents 31 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 34: ...Contents 32 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 35: ...Contents 33 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 36: ...Contents 34 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 37: ...Contents 35 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 38: ...Contents 36 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 42: ...56 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 Preface ...
Page 1538: ...Index IN 58 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...