rip的运用

1.使用ripv2全网可达

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip add	
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1/24
                                    ^
Error: Wrong parameter found at '^' position.
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Nov 17 2022 22:52:46-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]qu
[r1]rip 1
[r1-rip-1]ver	
[r1-rip-1]verify-source
[r1-rip-1]version 2
[r1-rip-1]net	
[r1-rip-1]network 12.0.0.0
[r1-rip-1]qu
[r1]dis	
[r1]display ip int	
[r1]display ip interface br	
[r1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[r1]inter	
[r1]interface lo	
[r1]interface LoopBack 0
[r1-LoopBack0]ip add	
[r1-LoopBack0]ip address 1.1.1.1 32
[r1-LoopBack0]qu
[r1]dis	
[r1]display ip ro	
[r1]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 10       Routes : 10       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/0
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       23.1.1.0/24  RIP     100  1           D   12.1.1.2        GigabitEthernet
0/0/0
       34.1.1.0/24  RIP     100  2           D   12.1.1.2        GigabitEthernet
0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[r1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on


[r2]inter	
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip add	
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Nov 17 2022 22:53:09-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]qu
[r2]inter	
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add	
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
Nov 17 2022 22:53:31-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2-GigabitEthernet0/0/1]qu
[r2]rip 1
[r2-rip-1]ver	
[r2-rip-1]verify-source
[r2-rip-1]version 2
[r2-rip-1]net	
[r2-rip-1]network 12.0.0.0
[r2-rip-1]net	
[r2-rip-1]network 23.0.0.0
[r2-rip-1]inter	
[r2-rip-1]qu
[r2]inter	
[r2]interface lo	
[r2]interface LoopBack 0
[r2-LoopBack0]ip add	
[r2-LoopBack0]ip address 1.1.1.1 32
[r2-LoopBack0]dis	
[r2-LoopBack0]discard
[r2-LoopBack0]qu
[r2]dis	
[r2]display ip ro	
[r2]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.1.1.0/24  Direct  0    0           D   12.1.1.2        GigabitEthernet
0/0/0
       12.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       23.1.1.0/24  Direct  0    0           D   23.1.1.1        GigabitEthernet
0/0/1
       23.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     23.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       34.1.1.0/24  RIP     100  1           D   23.1.1.2        GigabitEthernet
0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0



r3]inter	
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip add	
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
Nov 17 2022 22:53:50-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]qu
[r3]inter	
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip add	
[r3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
Nov 17 2022 22:54:11-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]qu
[r3]rip 1
[r3-rip-1]ver	
[r3-rip-1]verify-source
[r3-rip-1]version2
          ^
Error: Unrecognized command found at '^' position.
[r3-rip-1]version 2
[r3-rip-1]net	
[r3-rip-1]network 23.0.0.0
[r3-rip-1]net	
[r3-rip-1]network 34.0.0.0
[r3-rip-1]qu
[r3]inter	
[r3]interface lo	
[r3]interface LoopBack 0
[r3-LoopBack0]ip add	
[r3-LoopBack0]ip address 1.1.1.1 32
[r3-LoopBack0]qu
[r3]dis	
[r3]display ip ro	
[r3]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.1.1.0/24  RIP     100  1           D   23.1.1.1        GigabitEthernet
0/0/0
       23.1.1.0/24  Direct  0    0           D   23.1.1.2        GigabitEthernet
0/0/0
       23.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     23.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       34.1.1.0/24  Direct  0    0           D   34.1.1.1        GigabitEthernet
0/0/1
       34.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     34.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0



[r4]inter	
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip add	
[r4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
[r4-GigabitEthernet0/0/0]
Nov 17 2022 22:54:38-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]qu
[r4]rip	
[r4]rip 1
[r4-rip-1]ver	
[r4-rip-1]version
[r4-rip-1]verify-source
[r4-rip-1]version 2
[r4-rip-1]net	
[r4-rip-1]network 34.0.0.0
[r4-rip-1]qu
[r4]inter	
[r4]interface lo	
[r4]interface LoopBack 0
[r4-LoopBack0]ip add	
[r4-LoopBack0]ip address 1.1.1.1 32
[r4-LoopBack0]qu
[r4]dis	
[r4]display ip ro	
[r4]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 10       Routes : 10       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.1.1.0/24  RIP     100  2           D   34.1.1.1        GigabitEthernet
0/0/0
       23.1.1.0/24  RIP     100  1           D   34.1.1.1        GigabitEthernet
0/0/0
       34.1.1.0/24  Direct  0    0           D   34.1.1.2        GigabitEthernet
0/0/0
       34.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     34.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0


2.12之间明文,34之间密文

[r1]inter	
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]rip au	
[r1-GigabitEthernet0/0/0]rip authentication-mode si	
[r1-GigabitEthernet0/0/0]rip authentication-mode simple ci	
[r1-GigabitEthernet0/0/0]rip authentication-mode simple cipher 123

[r2]inter	
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]rip	
[r2-GigabitEthernet0/0/0]rip au	
[r2-GigabitEthernet0/0/0]rip authentication-mode si	
[r2-GigabitEthernet0/0/0]rip authentication-mode simple ci	
[r2-GigabitEthernet0/0/0]rip authentication-mode simple cipher 123
[r2-GigabitEthernet0/0/0]rip au	
[r2-GigabitEthernet0/0/0]rip authentication-mode  md5 ci	
[r2-GigabitEthernet0/0/0]rip authentication-mode  md5 us	
[r2-GigabitEthernet0/0/0]rip authentication-mode  md5 usual ci	
[r2-GigabitEthernet0/0/0]rip authentication-mode  md5 usual cipher 123456
[r2-GigabitEthernet0/0/0]

[r3-GigabitEthernet0/0/1]rip	
[r3-GigabitEthernet0/0/1]rip au	
[r3-GigabitEthernet0/0/1]rip authentication-mode md5 us	
[r3-GigabitEthernet0/0/1]rip authentication-mode md5 usual  ci	
[r3-GigabitEthernet0/0/1]rip authentication-mode md5 usual  cipher 123456

3.r1的环回做192.168.1.0 24 192.168.2.0 24

r1]inter	
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]rip su	
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.0.0 255.255.255.0
[r1-GigabitEthernet0/0/0]	
[r1-GigabitEthernet0/0/0]display th	
[r1-GigabitEthernet0/0/0]display this 
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 12.1.1.1 255.255.255.0 
 rip authentication-mode simple cipher %$%$-Sm'ZJ=Q':NyYJM0p_@!K@_C%$%$
 rip summary-address 192.168.0.0 255.255.255.0 
#
return

4.r1的环回不能宣告全网可达

[r2]ip route-static 0.0.0.0  0 1.1.1.1
Error: The next-hop address is invalid.
[r2]rip 1
[r2-rip-1]de	
[r2-rip-1]default-cost
[r2-rip-1]default-route or	
[r2-rip-1]default-route originate 

<r4>ping 1.1.1.1
  PING 1.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=10 ms
    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms
    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms

  --- 1.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/2/10 ms

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不会取名余

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值