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