H3C路由器命令集

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

/view/86c1ea64783e0912a2162aed.html

12-IPV4路由命令

目录

第1章静态路由配置命令

1.1 静态路由配置命令

1.1.1 delete static-routes all

1.1.2 ip route-static

1.1.3 ip route-static default-preference

第2章RIP配置命令

2.1 RIP配置命令

2.1.1 checkzero

2.1.2 default cost

2.1.3 default-route originate

2.1.4 display rip

2.1.5 display rip database

2.1.6 display rip interface

2.1.7 display rip route

2.1.8 filter-policy export

2.1.9 filter-policy import

2.1.10 host-route

2.1.11 import-route

2.1.12 network

2.1.13 peer

2.1.14 preference

2.1.15 reset rip statistics

2.1.16 rip

2.1.17 rip authentication-mode 2.1.18 rip input

2.1.19 rip metricin

2.1.20 rip metricout

2.1.21 rip output

2.1.22 rip poison-reverse

2.1.23 rip split-horizon

2.1.24 rip summary-address 2.1.25 rip version

2.1.26 silent-interface

2.1.27 summary

2.1.28 timers

2.1.29 validate-source-address 2.1.30 version

第3章IP路由策略配置命令3.1 IP路由策略配置命令

3.1.1 apply cost

3.1.2 apply ip-address next-hop 3.1.3 apply preference

3.1.4 apply tag

3.1.5 display ip ip-prefix 3.1.6 display route-policy 3.1.7 if-match acl

3.1.8 if-match cost

3.1.9 if-match interface 3.1.10 if-match ip

3.1.11 if-match ip-prefix 3.1.12 if-match tag

3.1.13 ip ip-prefix

3.1.14 route-policy

3.1.15 reset ip ip-prefix

第1章静态路由配置命令

& 说明:

本章所指的路由器代表了一般意义下的路由器,以及运行了路由协议的三层交换机。为提高可读性,在手册的描述中将不另行说明。

1.1 静态路由配置命令

1.1.1 delete static-routes all

【命令】

delete static-routes all

【视图】

系统视图

【参数】

【描述】

delete static-routes all命令用来删除所有静态路由。

使用本命令删除静态路由时,系统会提示确认,确认后才会删除所配置的全部静态路由。

相关配置可参考命令ip route-static和display ip routing-table。

【举例】

# 删除所有静态路由。

system-view

[Sysname] delete static-routes all

This will erase all ipv4 static routes and their configurations, you must reconfigure all static routes

Are you sure?[Y/N]:y

1.1.2 ip route-static

【命令】

ip route-static ip-address { mask | mask-length } { [ Vlan-interface vlan-id ] nexthop-address | NULL interface-number } [ preference preference ] [tag tag-value] [ description

description-text ]

undo ip route-static ip-address { mask | mask-length } { [ Vlan-interface vlan-id ]

nexthop-address | NULL interface-number } [ preference preference ]

【视图】

系统视图

【参数】

ip-address:目的IP地址,点分十进制格式。

mask:IP地址的掩码,点分十进制格式。

mask-length:掩码长度,取值范围为0~32。

Vlan-interface vlan-id:指定路由的输出Vlan接口的接口编号。

nexthop-address:指定路由的下一跳的IP地址,点分十进制格式。

NULL interface-number: 下一跳地址为空。

preference preference:指定静态路由协议的优先级,取值范围1~255。缺省值为60。

description description-text:静态路由描述信息,为字符串形式,取值范围为1~60个字符。除“?”外,可以包含空格等特殊字符。

tag tag-value:设置的静态路由Tag值,取值范围为1~4294967295。如果命令中没有配置该参数,默认值为0。

【描述】

ip route-static命令用来配置静态路由。undo ip route-static命令用来删除静态路由配置。

配置静态路由时应注意以下几点:

(1) 如果目的IP地址和掩码都为0.0.0.0,配置的路由为缺省路由。如果检查路由表失败,将使用缺省路由进行报文转发。

(2) 配置静态路由时,可根据实际需要指定出接口或下一跳地址,下一跳地址不能为本地接口IP地址,否则路由不会生效。指定出接口时需要注意:

l 对于NULL0接口,配置了出接口就不再配置下一跳地址。

相关文档
最新文档