xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
316
Example usage:
To add a static address 10.48.74.121, mask 255.0.0.0 and gateway 10.1.1.254 to the routing table:
DGS-3627:5# 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-3627:5#
To create a static route with a weight of 2:
DGS-3627:5# create iproute 11.54.73.131/8 10.1.2.11 weight 2
Command: create iproute 11.54.73.131/8 10.1.2.11 weight 2
Success.
DGS-3627:5#
delete iproute
Purpose
Used to delete an IP route entry from the Switch’s IP routing table.
Syntax
delete iproute [default | <network_address>] [null0|<ipaddr>]
Description
This command will delete an existing entry from the Switch’s IP routing
table.
Parameters
default –
Use this parameter
to delete a default static IP route entry from
the Switch’s IP routing table.
<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).
null0
– Specify the null interface as the next hop.
<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 11.54.73.131, mask 255.0.0.0 and gateway (ipaddr) entry of 10.1.2.11 from the routing
table:
DGS-3627:5# delete iproute 11.54.73.131/8 10.1.2.11
Command: delete iproute 11.54.73.131/8 10.1.2.11
Success.
DGS-3627:5#
show iproute
Purpose
Used to display the Switch’s current IP routing table.
Syntax
show iproute {[<network_address> | <ipaddr>]} |
{[static|rip|ospf]}
Description
This command will display the Switch’s current IP routing table.