华为路由器RIP V2作业

1.作业

在这里插入图片描述

2.拓扑图

在这里插入图片描述第二个拓扑图中我的环回地址分别是1.1.1.1 、2.2.2.2 、3.3.3.3、 4.4.4.4

路由器R1


<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]interface LoopBack 0 
[R1-LoopBack0]ip address 1.1.1.1 24				环回地址
[R1-LoopBack0]int g0/0/0
[R1-GigabitEthernet0/0/0]ip ad 192.168.12.1 24				物理地址
Nov 14 2020 22:21:59-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-rip-1]
[R1-rip-1]?
rip-1 interface view commands:
  arp-ping          ARP-ping
  backup            Backup  information
  bfd               Bidirectional Forwarding Detection
  checkzero         Perform the checkzero operation in the zero fields of RIP   
                    packets
  clear             Clear
  default-cost      Specify default metric for imported routes
  default-route     Enable advertisement of default routes
  description       Specify the process description
  dialer            Dialer
  display           Display information
  filter-policy     Specify route filtering policy
  graceful-restart  Graceful restart information
  host-route        Enable sending and receiving host routes
  import-route      Import routes from other protocols into RIP
  maximum           Set the maximum number of equal-cost multipaths
  mtrace            Trace route to multicast source
  network           Enable the routing protocol on the related network or       
                    interface
  peer              Specify a peer router
  ping              <Group> ping command group
  preference        Specify RIP route preference
  quit              Exit from current mode and enter prior mode
  reset             <Group> reset command group
  return            Enter the privileged mode
  silent-interface  Suppress RIP packets from being sent on the specified       
                    interface
  summary           Enable route summarization
  test-aaa          Accounts test
  timers            Adjust the protocol timers
  tracert           <Group> tracert command group
  undo              Negate a command or set its defaults
  verify-source     Validate the source IP address of received RIP updates
  version           Specify RIP version
[R1-rip-1]verify-source
[R1-rip-1]version 2

[R1-rip-1]net	
[R1-rip-1]network 1.0.0.0
[R1-rip-1]network 192.168.0.0
[R1-rip-1]network 192.168.12.0
[R1-rip-1]q
[R1]dis	
[R1]display ip r	
[R1]display ip rd-filter
[R1]display ip routing-table p	
[R1]display ip routing-table protocol r	
[R1]display ip routing-table protocol rip 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 6        Routes : 6        

RIP routing table status : <Active>
         Destinations : 6        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.0/24  RIP     100  1           D   192.168.12.2    GigabitEthernet
0/0/0
        3.3.3.0/24  RIP     100  2           D   192.168.12.2    GigabitEthernet
0/0/0
        4.4.4.0/24  RIP     100  3           D   192.168.12.2    GigabitEthernet
0/0/0
   192.168.23.0/24  RIP     100  1           D   192.168.12.2    GigabitEthernet
0/0/0
   192.168.34.0/24  RIP     100  2           D   192.168.12.2    GigabitEthernet
0/0/0
   192.168.40.0/24  RIP     100  3           D   192.168.12.2    GigabitEthernet
0/0/0

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0


路由器R2

<Huawei>sys
[Huawei]sys R2
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 24				环回地址
[R2-LoopBack0]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad	
[R2-GigabitEthernet0/0/0]ip address 192.168.12.2 24				物理地址
Nov 14 2020 22:24:53-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]int g0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.23.1 24				物理地址
Nov 14 2020 22:25:34-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]rip
[R2-rip-1]v	
[R2-rip-1]verify-source
[R2-rip-1]version 2
[R2-rip-1]network 2.0.0.0
[R2-rip-1]network 192.168.0.0
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]rip
[R2-rip-1]network 192.168.12.0
[R2-rip-1]network 192.168.23.0

路由器R3

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]int LoopBack 0
[R3-LoopBack0]ip ad 3.3.3.3 24
[R3-LoopBack0]int g0/0/0
[R3-GigabitEthernet0/0/0]ip ad 192.168.23.2 24
Nov 14 2020 22:27:26-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]int g0/0/1
[R3-GigabitEthernet0/0/1]ip ad 192.168.34.1 24
[R3]rip
[R3-rip-1]
[R3-rip-1]v	
[R3-rip-1]verify-source
[R3-rip-1]version 2
[R3-rip-1]network 3.0.0.0				激活3.0网段
[R3-rip-1]network 192.168.34.0				激活34网段
[R3-rip-1]network 192.168.23.0				激活23网段
[R3-rip-1]q

路由器R4

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[R4]
[R4]
[R4]int l	
[R4]int LoopBack 0
[R4-LoopBack0]ip ad 4.4.4.4 24
[R4-LoopBack0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip ad 192.168.34.2 24
Nov 14 2020 22:29:34-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]int g0/0/1
[R4-GigabitEthernet0/0/1]ip ad 192.168.40.1 24 
Nov 14 2020 22:30:10-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]rip
[R4-rip-1]
[R4-rip-1]v	
[R4-rip-1]verify-source
[R4-rip-1]version 2
[R4-rip-1]n	
[R4-rip-1]network 
[R4-rip-1]network 4.0.0.0
[R4-rip-1]network 192.168.0.0
[R4-rip-1]network 192.168.40.0
[R4-rip-1]network 192.168.34.0

最后别忘了配置PC1的IP地址和网关

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值