华三路由器路由命令..

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

配置帧中继交换
• 允许帧中继进行PVC交换
– fr switching
• 设置帧中继接口类型
– fr interface-type { dce | dte | nni }
• 配置帧中继PVC交换的路由
– [H3C-Serial1/0]fr dlci-switch 16 interface Serial 1/1 dlci 40
rip work rip input rip output summary rip version 1 rip version 2[broadcast|multicast] [H3C-rip] peer ip-address
RIP协议配置命令(续)
配置RIP-2路由聚合
• 【举例】 • # 将接口GigabitEthernet1/0设置为非广播NBMA类型。 • [H3C] interface gigabitethernet 1/0
• [H3C-GigabitEthernet1/0] ospf network-type nbma
ospf调试与监控
• display ospf brief • 【命令】 • display ospf [ process-id ] brief • 【视图】
RIP协议配置命令
启动RIP协议,进入RIP协议配置视图
在指定的网络上使能RIP
[H3C-rip] network { network-number } [H3C] rip
配置报文的定点传送(不支持广播时) 指定接口版本(接口视图下) 指定接口的工作状态(接口视图下)
【视图】
• OSPF区域视图
• 【举例】
• # 创建一条到10.110.0.3的虚连接,采用 MD5验证方式。 • [H3C-ospf-1] area 1 • [H3C-ospf-1-area-0.0.0.1] vlink-peer 10.110.0.3 md5 3 345
ospf network-type
• 在指定网段使能OSPF
– [h3c-ospf-1-area-0.0.0.0]netwok ip-address wildcard-mask
配置其他区域相关命令
• 区域间路由聚合
– [h3c]ospf – [h3c]abr-summary 19.1.0.0 mask 255.255.0.0
注意:本命令只在abr上才有效
显示RIP协议配置信息
[H3C] display rip RIP is running public net VPN-Instance Checkzero is on Default cost : 1 Summary is on Preference : 100 Validate-source-address is on Traffic-share-across-interface is off Period update timer : 30 Timeout timer : 180 Garbage-collection timer : 120 No peer router Network : 11.0.0.0
• 手工配置静态映射:
– fr map { ip | ipx } protocol-address dlci [broadcast ]
• 动态建立:使能动态逆向地址解析协议
– fr inarp [ ip | ipx ] [dlci ]
配置帧中继本地虚电路
• 为主接口分配一条虚电路号
– fr dlci dlci
•打开HDLC数据包调试信息开关
–debugging hdlc packet [ interface type number ]
PPP配置命令
• 封装PPP
– link-protocol ppp
• 设置验证类型
– ppp authentication-mode {pap|chap}
• 设置用户名、口令、服务类型
启动ospf的基本配置
• 配置路由器的Router id
– [h3c]router id A.B.C.D
• 启动ospf协议
– [h3c]ospf [process-id[[router-id router-id] vpn-instance vpn-instance-name
• 配置OSPF区域
– [h3c-ospf-1]area area_id
CHAP配置命令
• 主验证方配置:
– 配置本地验证对端(方式为CHAP)
• • • ppp authentication-mode chap ppp chap user username [H3C]local-user huawei
– 配置本地名称 – 将对端用户名和密码加入本地用户列表 [H3C-luser-huawei]password simple sharepass [H3C-luser-huawei]service-type ppp
• 【命令】
• ospf network-type { broadcast | nbma | p2mp | p2p }
• undo ospf network-type
• 【视图】
• 【参数】 • broadcast:将接口的网络类型改为广播。 • nbma:将接口的网络类型改为NBMA。 • p2mp:将接口的网络类型改为点到多点。 • p2p:将接口的网络类型改为点到点。
注意:如果使用帧中继交换,接口类型必须为DCE 或NNI
静态路由配置
静态路由的配置命令: [H3C] ip route-static ip-address { mask | masklen } { interface-type interface-name | nexthop-address } [ preference value ] [ reject |
[H3C]local-user huawei [H3C-luser-huawei]password simple sharepass [H3C-luser-huawei]service-type ppp
• 被验证方配置
– 配置PAP用户名 ppp rd {simple|cipher} password
华三路由器路由命令
基本操作命令
•状态查看命令
–display version –display current-configuration –display interface –display ip route
开启或关闭端口
人工关闭端口
[H3C] interface serial 0/0 [H3C-serial 0/0] shutdown
blackhole ]
例如: ip route-static 129.1.0.0 16 10.0.0.2 ip route-static 129.1.0.0 255.255.0.0 10.0.0.2 ip route-static 129.1.0.0 16 Serial 0/0 注意:只有下一跳所属的的接口是点对点( PPP、HDLC)的接口时,才可以 填写<interface-name>,否则必须填写<nexthop-address>。
• 被验证方配置:
– 配置本地名称密码
• • [H3C-Serial0/0] ppp chap user username [H3C-Serial1/1]ppp chap password {simple|cipher} password
帧中继的配置
• 封装帧中继协议
– link-protocol frame-relay [MFR |nonstandard | ietf ]
HDLC协议的配置
•在接口上封装HDLC协议
–link-protocol hdlc
•打开HDLC所有报文调试信息开关
–debugging hdlc all [ interface type number ]
•打开HDLC事件调试信息开关
–debugging hdlc event [ interface type number ]
OSPF协议的基本配置
配置路由器的Router ID
[H3C]router id A.B.C.D
启动OSPF协议
[H3C] ospf [ process-id ]
配置OSPF区域
[H3C-ospf-1]area area-id
在指定网段使能ospf
[H3C-ospf-1-area-0.0.0.0] network ip-address wildcardmask
• 任意视图 • 【描述】
• • • • • • • • • • • •
# 显示OSPF的概要信息。 <H3C> display ospf brief
OSPF Process 1 with Router ID 1.1.1.1 OSPF Protocol Information
RouterID: 172.16.2.2 Spf-schedule-interval: 5 Routing preference: Inter/Intra: 10 External: 150 Default ASE parameters: Metric: 1 Tag: 1 Type: 2 SPF computation count: 4 Area Count: 1 Nssa Area Count: 0
配置帧中继子接口
子接口有两种类型:点到点和点到多点
• 创建帧中继子接口,进入子接口配置模式
– interface type number.subinterface-number [ multipoint | pointto-point ]
• 配置帧中继子接口的虚电路号
– fr dlci dlci
建立地址映射的命令和物理接口相同,可以使用静态或动态 地址映射。地址映射只有在点到多点的情况下才需要配置
stub区域
【命令】
• stub [ no-summary ] • undo stub 【视图】 • OSPF区域视图
• 【举例】
• # 将OSPF区域1设置为Stub区域。 • [H3C-ospf-1] area 1 • [H3C-ospf-1-area-0.0.0.1] stub
虚连接
【命令】 • vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | simple password | md5 keyid key ]* • undo vlink-peer router-id
• 配置帧中继接口的终端类型
– fr interface-type{ dce | dte | nni }
• 选择LMI类型
– fr lmi type{ ansi | nonstandard | q933a }
配置帧中继地址映射
帧中继地址映射也就是建立对端协议地址与本地DLCI的映射关 系,该地址映射可静态配置,也可动态建立
开启已经关闭的端口
[H3C] interface serial 0/0 [H3C-serial0/0] undo shutdown
tracert:网络连通测试命令
[H3C] tracert 10.110.201.186 traceroute to 10.110.201.186(10.110.201.186) 30 hops max,40 bytes packet 1 11.1.1.1 29 ms 22 ms 21 ms 2 10.110.201.186 38 ms 24 ms 24 ms
– [H3C]local-user huawei – [H3C-luser-huawei]password simple sharepass – [H3C-luser-huawei]service-type ppp
PAP配置命令
• 验证方配置
– 配置验证方式 ppp authentication-mode pap – 配置用户列表
• display ospf error • 【命令】 • display ospf [ process-id ] error • 【视图】
相关文档
最新文档