D-Link DXS-3600-EM-4QXS CLI Guide - Page 451
null0, show ip route static
View all D-Link DXS-3600-EM-4QXS manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 451 highlights
DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide Command Default Level Usage Guideline Level: 8 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)# 443