4 ip route vrf – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 404

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 404 of 855

Command Mode

Interface configuration mode

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

Advertising