华为数通学习(二)静态路由、浮动路由、默认路由配置以及华为路由协议优先级总结
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
华为路由交换由浅入深系列(二)静态路由、浮动路由、默认
路由配置以及华为路由协议优先级总结
掌握目标
一、配置设备名称与IP地址:
二、配置静态路由
三、配置浮动路由用于备份
四、配置默认路由
五、了解华为不同路由协议的优先级
更多资料访问尽在网络之路空间;【把学习当做生活,每天都在进步】
/1914756383//KUCqX2
一、配置设备名称与IP地址:
R1:
Enter system view,return user view with Ctrl+Z. [Huawei]sysname R1
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address202.100.1.1255.255.255.0 quit
[R1]interface g0/0/2
[R1-GigabitEthernet0/0/2]ip add202.100.2.1255.255.255.0
quit
[R1-GigabitEthernet0/0/1]int lo0=====创建环回接口
[R1-LoopBack0]ip add1.1.1.1255.255.255.255
[R1-LoopBack0]quit
[R1]display current-configuration interface=====显示接口信息#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address202.100.1.1255.255.255.0
#
interface GigabitEthernet0/0/2
ip address202.100.2.1255.255.255.0
#
interface NULL0
#
interface LoopBack0
ip address1.1.1.1255.255.255.255
R2:
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip add202.100.1.2255.255.255.0
[R2-GigabitEthernet0/0/1]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add202.100.3.2255.255.255.0
[R2-GigabitEthernet0/0/0]int lo0
[R2-LoopBack0]ip ad2.2.2.2255.255.255.255
[R2-LoopBack0]quit
R3:
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add202.100.2.3255.255.255.0
[R3-GigabitEthernet0/0/2]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add202.100.3.3255.255.255.0
[R3-GigabitEthernet0/0/0]int lo0
[R3-LoopBack0]ip add3.3.3.3255.255.255.255
PING202.100.1.2:56data bytes,press CTRL_C to break
Reply from202.100.1.2:bytes=56Sequence=1ttl=255time=10ms Reply from202.100.1.2:bytes=56Sequence=2ttl=255time=1ms
---202.100.1.2ping statistics---
2packet(s)transmitted
2packet(s)received
0.00%packet loss
round-trip min/avg/max=1/5/10ms
PING202.100.2.3:56data bytes,press CTRL_C to break
Reply from202.100.2.3:bytes=56Sequence=1ttl=255time=20ms Reply from202.100.2.3:bytes=56Sequence=2ttl=255time=10ms
---202.100.2.3ping statistics---
2packet(s)transmitted
2packet(s)received
0.00%packet loss
round-trip min/avg/max=10/15/20ms
Route Flags:R-relay,D-download to fib
------------------------------------------------------------------------------Routing Tables:Public
Destinations:11Routes:11