Qtech QSW-3300-28TX-AC-AC [524/693] Ip route

Qtech QSW-3300-28F-AC-AC [524/693] Ip route
IP Routing Commands
Software User Manual
CLI Command Reference
Page 541
Example:
The following example sets the default gateway to 10.1.1.1.
(router1) #config
(router1) (Config)#ip default-gateway 10.1.1.1
no ip default-gateway
This command removes the default gateway address from the configuration.
ip route
This command configures a static route. The ipaddr parameter is a valid IP address, and subnetmask is a valid
subnet mask. The
nexthopip parameter is a valid IP address of the next hop router. Specifying Null0 as nexthop
parameter adds a static reject route. The optional
preference parameter is an integer (value from 1 to 255) that
allows you to specify the preference value (sometimes called “administrative distance”) of an individual static
route. Among routes to the same destination, the route with the lowest preference value is the route entered into
the forwarding database. By specifying the preference of a static route, you control whether a static route is more
or less preferred than routes from dynamic routing protocols. The preference also controls whether a static route
is more or less preferred than other static routes to the same destination. A route with a preference of 255 cannot
be used to forward traffic.
The description parameter allows a description of the route to be entered.
For the static routes to be visible, you must perform the following steps:
Enable ip routing globally.
Enable ip routing for the interface.
Confirm that the associated link is also up.
no ip route
This command deletes a single next hop to a destination static route. If you use the nexthopip parameter, the
next hop is deleted. If you use the
preference value, the preference value of the static route is reset to its default.
Format
no ip default-gateway ipaddr
Mode Interface Config
Default preference—1
Format
ip route ipaddr subnetmask { nexthopip | Null0 | interface {unit/slot/port| vlan-
id}} [preference] [description description]
Mode Global Config
Format
no ip route ipaddr subnetmask [{nexthopip [preference] | Null0}]
Mode Global Config

Содержание

Скачать