Enterasys Networks 1G58x-09 사용자 설명서

다운로드
페이지 808
IP Configuration Command Set
Reviewing IP Traffic and Configuring Routes
12-33
12.2.5.6 ip route
Use this command to add or remove a static IP route.
ip route prefix mask {forward-addr | vlan vlan-id} [distance] [permanent] [tag 
value
Syntax Description
Command Syntax of the “no” Form
The “no” form of this command removes the static IP route:
no ip route prefix mask {forward-addr | vlan vlan-id}
Command Type
Router command.
Command Mode
Global configuration: Matrix>Router(config)#
Command Defaults
If permanent and tag are not specified, the route will be set as non-permanent with 
no tag assigned.
Examples
This example shows how to set IP address 10.1.2.3 as the next hop gateway to destination address 
10.0.0.0. The route is assigned a tag of 1:
prefix
Specifies a destination IP address prefix.
mask 
Specifies a destination prefix mask.
forward-addr | 
vlan vlan-id
Specifies a forwarding (gateway) IP address or routing 
(VLAN) interface ID.
distance
(Optional) Specifies a distance metric for this route. Valid 
values are 1 to 255.
permanent
(Optional) Specifies a permanent route.
tag value
(Optional) Specifies a tag for this route. Valid values are 1 
to 4294967295.
Matrix>Router(config)#ip route 10.0.0.0 255.0.0.0 10.1.2.3 1