xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
598
DGS-3450:admin# create iproute 10.48.74.121/255.0.0.0 10.1.1.254 primary
Command: create iproute 10.48.74.121/8 10.1.1.254 primary
Success.
DGS-3450:admin#
delete iproute default
Purpose
Used to delete an IP route entry from the switch’s IP routing table.
Syntax
delete iproute [default | <network_address>] <ipaddr>
Description
Use this command to delete an IP static route.
Parameters
default
- Deletes an IP default route (0.0.0.0/0).
network_address
- The IP address and net mask of the destination of the route. The address
and the mask can be set by the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR
format, 10.1.2.3/16).
ipaddr
- Specify the next hop IP address of the route need to be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an IP static route:
DGS-3450:admin# delete iproute 10.48.74.121/255.0.0.0 10.1.1.254
Command: delete iproute 10.48.74.121/8 10.1.1.254
Success.
DGS-3450:admin#
show iproute
Purpose
Used to display the switch’s current IP routing table.
Syntax
show iproute {[<network_address> | <ipaddr>]} {[static | rip | hardware]}
Description
Use this command to display the switch’s IP routing table.
Parameters
network_address
- Specify the destination network address of the route to be displayed.
ipaddr
- Specify the destination IP address of the route to be displayed. The longest prefix
matched route will be displayed.
static
- Specify to display only static routes. One static route may be active or inactive.
rip
- Specify to display only RIP routes.
hardware
- Specify to display only the routes that have been written into the chip.
Restrictions
None.
Example usage:
To display the contents of the IP routing table: