Qtech QSW-9000-01 — настройка статической маршрутизации: команды и примеры [116/474]

Превью страниц Страница 116 / 474
Qtech QSW-9000-01 [116/474] Static routing configuration command
Manual
8. Static Routing Configuration Command 116
www.qtech.ru
8. STATIC ROUTING CONFIGURATION COMMAND
8.1. Static Routing Configuration Command
Static Routing Configuration Command includes:
ip route
show ip route
8.1.1. Ip route
Use ip route command to add a static route. Use no ip route command to delete a specified
static route. Use no ip route static all command to delete all static route.
ip route dst-ip mask gate-ip
no ip route dst-ip mask [ gate-ip ]
no ip route static all
Parameter
dst-ip:static route destination address to be added which is in the form of dotted decimal
mask:destination address mask which is in the form of dotted decimal
gate-ip:static route next hop address which is in the form of dotted decimal
Command configuration mode
Global configuration mode
Usage
This command can add or delete a static routing table item. If destination IP and mask are 2,
the added route is default route. Gateway address may not be input when deleting route, if it
is inputted, it must be the same as that in routing table.
Example
Add a route to 192.168.2.122 network interface, the next hop address is 12.11.2.254
Optiway(config)#ip route 192.168.2.122 255.255.2.2 12.11.2.254
Delete route which is to 192.168.2.122 network interface
Optiway(config)#no ip route 192.168.2.122 255.255.2.2
Delete all static route
Optiway(config)#no ip route static all

Содержание

Узнайте, как использовать команды для настройки статической маршрутизации. Примеры добавления и удаления маршрутов, а также основные параметры команд.

Скачать