16 • Basic IP routing configuration
Mode: Administrator execution
Step
1
node (cfg)#context ip router
2
node (ctx-ip)[router]#no route network mask { address | interface } Deletes a static route
Example: Deleting a static IP route
In the following example, the route for packets to network 20.0.0.0/24, which are routed to device with IP
address 172.17.100.2, shall be deleted.
SN>enable
SN#configure
SN(cfg)#context ip router
SN(ctx-ip)[router]#no route 20.0.0.0 255.255.255.0 172.17.100.2
Displaying IP route information
This procedure describes how to display static IP routes
Mode: Operator or administrator execution
Step
Command
1
node >show ip route
This command displays the destination address, next-hop interface, protocol (local, static, RIP, or ICMP),
metric, flags (U–up, H–host, G–Gateway, L–local, D–default), and amount of use for each route in the routing
table. If there are multiple routes to the same destination, the preferred route is indicated by an asterisk (*).
Example: Displaying IP route
In the following example, IP route information is displayed.
SN>show ip route
Routes of IP context 'router':
Status codes: * valid, U up, H host, G Gateway, L local, D default
Destination
---------------------------------------------------------------------
* 127.0.0.1/32
* 172.16.40.77/32
* 172.17.100.210/32
* 172.17.100.0/24
* 20.0.0.0/24
* 172.16.0.0/16
190
Command
Displays IP route information
Nexthop
Protocol
local
local
local
wan
local
172.17.100.2
static
lan
local
SmartWare Software Configuration Guide
Enters the IP router context
Purpose
Metric
Flags
Used
0
LHG
0
LHG
0
LHG
1
UL
0
U
1
UL
Basic IP routing configuration task list
Purpose
n/a
n/a
n/a
0
0
6
Need help?
Do you have a question about the SmartNode Series and is the answer not in the manual?