4 ip route vrf – CANOGA PERKINS 9175 Command Reference User Manual
Page 363
CanogaOS Command Reference
20-3
Usage
Executing this command on an interface removes the IP address on this interface, The IP address should be
reconfigured. This example shows how to add one interface to vrf:
Switch(config)#interface vlan1
Switch(config-if)#ip vrf forwarding ComA
Examples
Switch#configure t
Switch(config)#ip vrf ComA
Switch(config-vrf)#exi
Switch(config)#interface eth-0-1
Switch(config-if)#no switchport
Switch(config-if)#ip vrf forwarding ComA
Related Commands
ip vrf: Configure a VRF routing table
ip route vrf: Establishes static routes for VRF
20.4 ip route vrf
To establish static routes for a VPN routing and forwarding(VRF) instance, use the ip route vrf command in
global configuration mode. To disable static routes, use the no form of this command.
Command Syntax
i
p route vrf VRF-NAME A.B.C.D/M A.B.C.D
ip route vrf NAME A.B.C.D A.B.C.D A.B.C.D
no i
p route vrf VRF-NAME A.B.C.D/M (A.B.C.D|)
no i
p route vrf VRF-NAME A.B.C.D A.B.C.D A.B.C.D
NAME: VPN Routing/Forwarding instance
A.B.C.D/M: IP destination prefix (e.g. 10.0.0.0/8)
A.B.C.D(prefix): IP route prefix for the destination, in dotted-decimal format
A.B.C.D(mask): Prefix mask for the destination, in dotted-decimal
A.B.C.D (next-hop-address): IP address of the next hop(the forwarding router
that can be used to reach that network.
Command Mode
Global configuration mode
Usage
This example shows how to add a static routing entry to vrf table.
Switch# configure terminal
Switch(config)# ip route vrf ComA 2.2.2.0/24 1.1.1.2