Examples: The following command adds a default route that uses default router 10.5.4.1 and gives the route a cost of 1:

DWS-1008# set ip route default 10.5.4.1 1 success: change accepted.

The following commands 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:

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.

The following command adds an explicit route from a DWS-1008 switch to any host on the 192.168.4.x subnet through the local router 10.5.4.2, and gives the route a cost of 1:

DWS-1008# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1 success: change accepted.

The following command adds another explicit route, using CIDR notation to specify the subnet mask:

DWS-1008# set ip route 192.168.5.0/24 10.5.5.2 1 success: change accepted.

See Also:

clear ip route

show interface

show ip route

set ip snmp server

Enables or disables the SNMP service on the DWS-1008 switch.

Syntax: set ip snmp server {enable disable}

enable Enables the SNMP service.

disable Disables the SNMP service. Defaults: The SNMP service is disabled by default. Access: Enabled.

D-Link DWS-1008 CLI Manual

96

Page 99
Image 99
D-Link dws-1008 Set ip snmp server, Clear ip route Show interface Show ip route, Syntax set ip snmp server enable disable