![D-Link xStack DGS-3400 Series Cli Manual Download Page 258](http://html.mh-extra.com/html/d-link/xstack-dgs-3400-series/xstack-dgs-3400-series_cli-manual_77433258.webp)
xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
254
D G S - 3 4 2 6 : 5 # c r e a t e i p r o u t e 1 0 . 4 8 . 7 4 . 1 2 1 / 8 1 0 . 1 . 1 . 2 5 5 p r i m a r y
C o m m a n d : c r e a t e i p r o u t e 1 0 . 4 8 . 7 4 . 1 2 1 / 8 1 0 . 1 . 1 . 2 5 5 p r i m a r y
S u c c e s s .
D G S - 3 4 2 6 : 5 #
delete iproute
Purpose
Used to delete an IP route entry from the Switch’s IP routing table.
Syntax
delete iproute [default |<network_address>] <ipaddr>
Description
This command is used to delete an existing entry from the Switch’s IP routing table.
Parameters
default
– Specifies to delete a default IP route entry.
<network_address>
−
IP address and netmask of the IP interface that is the destination of
the route. The address and mask information can be specified using the traditional format
(for example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<ipaddr>
−
The gateway IP address for the next hop router.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a backup static address 10.48.75.121, mask 255.0.0.0 and gateway (ipaddr) entry of 10.1.1.254 from the
routing table:
D G S – 3 4 2 6 : 5 # d e l e t e i p r o u t e 1 0 . 4 8 . 7 4 . 1 2 1 / 8 1 0 . 1 . 1 . 2 5 4
C o m m a n d : d e l e t e i p r o u t e 1 0 . 4 8 . 7 4 . 1 2 1 / 8 1 0 . 1 . 1 . 2 5 4
S u c c e s s .
D G S – 3 4 2 6 : 5 #
show iproute
Purpose
Used to display the Switch’s current IP routing table.
Syntax
show iproute {[<network_address> |<ipaddr>]} {static}
Description
This command is used to display the Switch’s current IP routing table.
Parameters
<network_address>
−
IP address and netmask of the IP interface that is the destination
of the route. The address and mask information can be specified using the traditional
format (for example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<ipaddr>
−
Specifies the IP address of the destination of the route.
{static}
– Add this parameter to display all statically configured IP routes set on the
switch.
Restrictions None.
Example usage:
To display the contents of the IP routing table: