DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide
443
Command Default Level
Level: 8
Usage Guideline
When the value of network and net-mask are both 0.0.0.0, it means to create a static
default route.
Use the command with keyword primary or backup means the newly created route is
a floating static route. The keyword weight means the newly created route is a static
multipath route. The floating static route and the static multipath route are mutually
exclusive. If none of the following parameters, “primary”, “backup” or “weight,” are
selected, the static route will be:
1. Primary if there is no primary route to the same destination.
2. Backup if there has been a primary route to the same destination.
3. Fail to create if there have been a primary route and a backup route to the
same destination.
4. Fail to create if there has been one static multipath route to the same
destination.
If
null0
is specified for one route, the traffic that matched its destination will be
dropped.
If
vrf
is specified, the static route is added into or deleted from the VRF routing table.
Users can verify the settings by entering the
show ip route static
command.
Example
This example shows how to add a static route entry with destination 20.0.0.0/8 and
nexthop 10.1.1.254.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#ip route 20.0.0.0 255.0.0.0 10.1.1.254
DXS-3600-32S(config)#
Example
This example shows how to add a static weighted multipath route entry with
destination 30.0.0.0/8 and two nexthops: 10.1.1.253, 10.1.1.254.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#ip route 30.0.0.0 255.0.0.0 10.1.1.253 weight 1
DXS-3600-32S(config)#ip route 30.0.0.0 255.0.0.0 10.1.1.254 weight 1
DXS-3600-32S(config)#
Example
This example shows how to add a static route entry with destination 40.0.0.0/8 and
nexthop 10.1.1.254 and specify this route to be a backup static route.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#ip route 40.0.0.0 255.0.0.0 10.1.1.254 backup
DXS-3600-32S(config)#
Example
This example shows how to remove the static route with destination 20.0.0.0/8 and
nexthop 10.1.1.254.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#no ip route 20.0.0.0 255.0.0.0 10.1.1.254
DXS-3600-32S(config)#
Example
This example shows how to add a static route using an IP tunnel:
DXS-3600-32S#configure terminal
DXS-3600-32S(config)# ip route 100.1.1.0 255.255.255.0 ip_tunnel tunnel_1
Example
This example shows how to add a static route to VRF VPN-A:
DXS-3600-32S#configure terminal
DXS-3600-32S(config)# ip vrf VPN-A
DXS-3600-32S(config-vrf)# exit
DXS-3600-32S(config)# ip route vrf VPN-A 100.1.1.0 255.255.255.0 10.1.1.253
DXS-3600-32S(config)#
Summary of Contents for DXS-3600-16S
Page 1: ...CLI Reference Guide Product Model DXS 3600 Series Layer 2 3 Managed 10GbE Switch Release 1 10 ...
Page 232: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 224 ...
Page 301: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 293 ...
Page 349: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 341 ...
Page 494: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 486 ...
Page 564: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 556 ...
Page 649: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 641 ...