Delete ip route – Allied Telesis AT-S63 User Manual

Page 584

Advertising
background image

Chapter 32: Internet Protocol Version 4 Packet Routing

584

Section VII: Internet Protocol Routing

DELETE IP ROUTE

Syntax

delete ip route=

ipaddress

[interface=

interface

]

nexthop=

ipaddress

mask=

subnetmask

Parameters

route

Specifies the destination IP address of the static,
dynamic, or default route to be deleted. The IP
address for the default route is 0.0.0.0.

interface

Specifies the name of the interface where the static or
dynamic route is assigned. An interface name
consists of “VLAN” followed by the ID (VID) or name
of the VLAN and an interface number, separated by a
dash (e.g., vlan4-0). This parameter is optional.

nexthop

Specifies the IP address of the next hop of the route.
The next hop is required when deleting a static or
dynamic route, but not when deleting a default route.

mask

Specifies the subnet mask for the destination IP

address. The mask for the default route is
255.255.255.255.

Description

This command deletes static, dynamic, and default routes from the routing
table. To display the existing routes, refer to “SHOW IP ROUTE” on
page 607. Fo
r background information, refer to “Static Routes” on
page 552 an
d “Routing Information Protocol (RIP)” on page 554.

Examples

This command deletes the static route to the remote subnet 149.124.55.0
with the subnet mask 255.255.255.0 and the next hop 149.124.22.12

delete ip route=149.124.55.0 mask=255.255.255.0
nexthop=149.124.22.12

This command deletes the default route:

delete ip route=0.0.0.0 mask=255.255.255.255

Advertising