admin 发表于 2021-2-5 16:35:47

HCNA-21 RIP路由协议基本配置

HCNA-21 RIP路由协议基本配置
基本配置<Huawei>system-viewsysname r1
interface GigabitEthernet 0/0/0ip address 172.16.10.1 24quitinterface LoopBack 0//创建环回口ip address 192.168.1.100 32quit <Huawei>system-viewsysname r2interface GigabitEthernet 0/0/0ip address 172.16.10.2 24quitinterface LoopBack 0ip address 192.168.2.100 32quit
使用RIP v1搭建网络rip//创建RIP协议进程 默认进程号为1network 172.16.0.0//宣告参与RIP的网段network 192.168.1.0quit ripnetwork 172.16.0.0network 192.168.2.0quit display ip routing-table//查看IP路由表Route Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: Public      Destinations : 9      Routes :9       Destination/Mask   Proto   PreCost   Flags NextHop         Interface…… 192.168.1.100/32Direct0   0         D   127.0.0.1       LoopBack0    192.168.2.0/24RIP    1001         D172.16.10.2   GigabitEthernet0/0/0255.255.255.255/32 Direct0    0          D   127.0.0.1       InLoopBack0 display ip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: Public      Destinations : 9      Routes :9       Destination/Mask   Proto   PreCost   Flags NextHop         Interface…… 172.16.10.255/32Direct0   0         D   127.0.0.1       GigabitEthernet0/0/0    192.168.1.0/24RIP    1001         D172.16.10.1   GigabitEthernet0/0/0 192.168.2.100/32Direct0   0         D   127.0.0.1       LoopBack0255.255.255.255/32 Direct0    0          D   127.0.0.1       InLoopBack0 ping -a 192.168.1.100 192.168.2.100//R1使用源目标IP Ping R2的环回口PING192.168.2.100: 56data bytes, pressCTRL_C to break    Reply from192.168.2.100: bytes=56 Sequence=1 ttl=255 time=150 ms    Reply from192.168.2.100: bytes=56 Sequence=2 ttl=255 time=10 ms    Reply from192.168.2.100: bytes=56 Sequence=3 ttl=255 time=30 ms    Reply from192.168.2.100: bytes=56 Sequence=4 ttl=255 time=10 ms    Reply from192.168.2.100: bytes=56 Sequence=5 ttl=255 time=30 ms ---192.168.2.100 ping statistics ---    5 packet(s)transmitted    5packet(s) received    0.00%packet lossround-trip min/avg/max =10/46/150 ms <r1>debugging rip 1//查看RIP协议定期更新情况<r1>terminal debugging//开启RIP终端调试功能<r1>terminal monitor//终端监视<r1>undo debugging all<r1>debugging rip 1 event//查看路由器发出和接收的定期事件
使用RIP v2搭建网络rip version 2 //版本V2quit ripversion 2quit display ip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: Public      Destinations : 9      Routes :9       Destination/Mask   Proto   PreCost   Flags NextHop         Interface…… 172.16.10.255/32Direct0   0         D   127.0.0.1       GigabitEthernet0/0/0 192.168.1.100/32Direct0   0         D   127.0.0.1       LoopBack0192.168.2.100/32RIP    1001         D172.16.10.2   GigabitEthernet0/0/0255.255.255.255/32 Direct0    0          D   127.0.0.1       InLoopBack0 display ip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: Public      Destinations : 9      Routes : 9       Destination/Mask   Proto   PreCost   Flags NextHop         Interface…… 172.16.10.255/32Direct0   0         D   127.0.0.1       GigabitEthernet0/0/0192.168.1.100/32RIP    1001         D172.16.10.1   GigabitEthernet0/0/0 192.168.2.100/32Direct0   0         D   127.0.0.1       LoopBack0255.255.255.255/32 Direct0    0          D   127.0.0.1       InLoopBack0 ping -a 192.168.1.100 192.168.2.100PING192.168.2.100: 56data bytes, pressCTRL_C to break    Reply from192.168.2.100: bytes=56 Sequence=1 ttl=255 time=20 ms    Reply from192.168.2.100: bytes=56 Sequence=2 ttl=255 time=20 ms    Reply from192.168.2.100: bytes=56 Sequence=3 ttl=255 time=20 ms    Reply from192.168.2.100: bytes=56 Sequence=4 ttl=255 time=30 ms    Reply from192.168.2.100: bytes=56 Sequence=5 ttl=255 time=20 ms ---192.168.2.100 ping statistics ---    5packet(s) transmitted    5packet(s) received    0.00%packet lossround-trip min/avg/max =20/22/30 ms
页: [1]
查看完整版本: HCNA-21 RIP路由协议基本配置

公司网站