Adding A Static Route - D-Link DWS-1008 - AirPremier MobileLAN Switch Product Manual

8 port 10/100 wireless switch with power over ethernet
Hide thumbs Also See for DWS-1008 - AirPremier MobileLAN Switch:
Table of Contents

Advertisement

DWS-1008# show ip route
Router table for IPv4
Destination/Mask
0.0.0.0/ 0
0.0.0.0/ 0
10.0.2.1/24
10.0.2.1/32
10.0.2.255/32
224.0.0.0/ 4
To add a static route, use the following command:
set ip route {default | ip-addr mask | ip-addr/mask-length} default-router metric
The metric (cost) can be any number between 0 and 2,147,483,647. Lower-cost routes are preferred
over higher-cost routes. When you add multiple routes to the same destination, MSS groups the routes
together and orders them from lowest cost at the top of the group to highest cost at the bottom of the
group. If you add a new route that has the same destination and cost as a route already in the table,
MSS places the new route at the top of the group of routes with the same cost.
To add a default route that uses default router 10.5.4.1 and has a cost of 1, type the following
command:
DWS-1008# set ip route default 10.5.4.1 1
success: change accepted.
To add two default routes and configure MSS to always use the route through 10.2.4.69 when the switch
interface to that default router is up, type the following commands:
DWS-1008# set ip route default 10.2.4.69 1
success: change accepted.
DWS-1008# set ip route default 10.2.4.17 2
success: change accepted.
To add an explicit route from a switch to any host on the 192.168.4.x subnet through the local router
10.5.4.2, and give the route a cost of 1, type the following command:
DWS-1008# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1
success: change accepted.
D-Link DWS-1008 User Manual
Proto
Metric
NH-Type
Static
1
Router
Static
2
Router
IP
0
Direct
IP
0
Direct
IP
0
Direct
IP
0
Local

Adding a Static Route

Gateway
10.0.1.17
10.0.2.17
8

Advertisement

Table of Contents
loading

Table of Contents