beautypg.com

CANOGA PERKINS 9175 Configuration Guide User Manual

Page 159

background image

CanogaOS Configuration Guide

25-4

On Switch D, enable RIP and configure VRF

DUT1>enable
DUT1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DUT1(config)#ip vrf vpn1
DUT1(config-vrf)#exit
DUT1(config)#ip vrf vpn2
DUT1(config-vrf)#exit
DUT1(config)#interface eth-0-13
DUT1(config-if)#no switchport
DUT1(config-if)#no shutdown
DUT1(config-if)#ip vrf forwarding vpn1
DUT1(config-if)#ip address 1.1.1.2/24
DUT1(config-if)#exit
DUT1(config)#interface eth-0-20
DUT1(config-if)#no switchport
DUT1(config-if)#no shutdown
DUT1(config-if)#ip vrf forwarding vpn1
DUT1(config-if)#ip address 2.2.2.2/24
DUT1(config-if)#exit
DUT1(config)#interface eth-0-9
DUT1(config-if)#no switchport
DUT1(config-if)#no shutdown
DUT1(config-if)#ip vrf forwarding vpn2
DUT1(config-if)#ip address 1.1.1.2/24
DUT1(config-if)#exit
DUT1(config)#router rip
DUT1(config-router)#address-family ipv4 vrf vpn1
DUT1(config-router-af)#network 1.1.1.0/24
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 vpn2
DUT1(config-router-af)#network 1.1.1.0/24
DUT1(config-router-af)#exit-address-family
DUT1(config-router-af)#redistribute connected
DUT1(config-router-af)#end

25.2.3 Display

Results

Switch A output
Check the route on Switch A

DUT1#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
[*] - [AD/Metric]
* - candidate default

C 1.1.1.0/24 is directly connected, eth-0-13
R 2.2.2.0/24 [120/2] via 1.1.1.2, eth-0-13, 00:05:11
C 3.3.3.0/24 is directly connected, eth-0-1
R 4.4.4.0/24 [120/3] via 1.1.1.2, eth-0-13, 00:04:40
K 192.168.100.0/24 is kernel directly connected, management interface


Ping Switch B

DUT1#ping 4.4.4.1
PING 4.4.4.1 (4.4.4.1) 56(84) bytes of data.
64 bytes from 4.4.4.1: icmp_seq=0 ttl=63 time=265 ms