35-2
2. VRF configuration
ip route vrf <name> {<ip-prefix>
<mask>|<ip-prefix/<prefix-length>}
{<gateway-address>|<gateway-interface>}
[<distance>]
no ip route vrf <name> {<ip-prefix>
<mask>|<ip-prefix/<prefix-length>}
[<gateway-address>|<gateway-interface>]
Configure the static
route, the
no command will delete the
static route.
35.4 Static Route Configuration Examples
The figure shown below is a simple network consisting of three layer3 switches, the network mask for all
switches and PC is 255.255.255.0. PC-A and PC-C are connected via the static route set in SwtichA and
SwitchC; PC3 and PC-B are connected via the static route set in SwtichC to SwitchB; PC-B and PC-C is
connected via the default route set in SwitchB.
Figure 35-1 Static Route Configurations
Configuration steps:
Configuration of layer3 SwitchA
Switch#config
Switch (config) #ip route 10.1.5.0 255.255.255.0 10.1.2.2
Configuration of layer3 SwitchC
Switch#config
Next hop use the partner IP address
:10.1.1.
:10.1