beautypg.com

CANOGA PERKINS 9175 Configuration Guide User Manual

Page 164

background image

CanogaOS Configuration Guide

25-9

DUT1(config-if)#no shutdown
DUT1(config-if)#ip vrf forwarding vpn3
DUT1(config-if)#ip address 1.1.1.1/24
DUT1(config-if)#exit
DUT1(config)#interface eth-0-2
DUT1(config-if)#no switchport
DUT1(config-if)#no shutdown
DUT1(config-if)#ip vrf forwarding vpn4
DUT1(config-if)#ip address 4.4.4.1/24
DUT1(config-if)#exit
DUT1(config)#interface eth-0-20
DUT1(config-if)#switchport trunk allowed vlan add 4
DUT1(config-if)#switchport trunk allowed vlan add 5
DUT1(config-if)#no shutdown
DUT1(config-if)#exit
DUT1(config)#router rip
DUT1(config-router)#address-family ipv4 vrf vpn3
DUT1(config-router-af)#network 2.2.2.0/24
DUT1(config-router-af)#redistribute connected
DUT1(config-router-af)#exit-address-family
DUT1(config-router)#address-family ipv4 vrf vpn4
DUT1(config-router-af)#network 3.3.3.0/24
DUT1(config-router-af)#redistribute connected
DUT1(config-router-af)#exit-address-family
DUT1(config-router)#exit
DUT1(config)#exit
DUT1#


Configure Switch C
Switch C is PE router, the configuration on Switch C is as following:
CanogaOS, 917x, 2.2(17), fcs1, 02/19/2010 20:09:01

DUT1>en
DUT1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
DUT1(config)#vlan database
DUT1(config-vlan)#vlan 2
DUT1(config-vlan)#vlan 3
DUT1(config-vlan)#vlan 4
DUT1(config-vlan)#vlan 5
DUT1(config-vlan)#exit
DUT1(config)#ip vrf vpn1
DUT1(config-vrf)#exit
DUT1(config)#ip vrf vpn2
DUT1(config-vrf)#exit
DUT1(config)#ip vrf vpn3
DUT1(config-vrf)#exit
DUT1(config)#ip vrf vpn4
DUT1(config-vrf)#exit
DUT1(config)#interface vlan2
DUT1(config-if)#ip vrf forwarding vpn1
DUT1(config-if)#ip address 2.2.2.2/24
DUT1(config-if)#exit
DUT1(config)#interface vlan3
DUT1(config-if)#ip vrf forwarding vpn2
DUT1(config-if)#ip address 2.2.2.2/24
DUT1(config-if)#exit
DUT1(config)#interface vlan4
DUT1(config-if)#ip vrf forwarding vpn3
DUT1(config-if)#ip address 2.2.2.2/24
DUT1(config-if)#exit
DUT1(config)#interface vlan5
DUT1(config-if)#ip vrf forwarding vpn4