陈鑫
编写实验报告:
1、拓扑信息
2、要求及分析
3、IP规划
4、配置截图
5、测试
拓扑信息
2、要求及分析
分析
三台路由器配置各接口IP
三台路由器配置环回
使用RIP基本配置
路由器AR1、AR3使用DHCP协议给PC1 PC2 PC3 PC3 分配IP地址
最后ping命令检查是否全网可达
3.IP规划
AR1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
^
Error:Incomplete command found at '^' position.
[Huawei]int
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.3 24
Mar 22 2023 14:46:19-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.1 24
Mar 22 2023 14:48:03-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
AR2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.2 24
Mar 22 2023 14:55:25-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 23.1.1.1 24
Mar 22 2023 14:56:06-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 23.1.1.2 24
Mar 22 2023 14:57:14-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.2.3 24
Mar 22 2023 14:57:57-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
4.配置截图
三台路由器配置环回
AR1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip add 1.1.1.1 32
AR2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int l 0
[Huawei-LoopBack0]ip add 2.2.2.2 32
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int l0
[Huawei-LoopBack0]ip add 3.3.3.3 32
路由器AR1、AR3使用DHCP协议给PC1 PC2 PC3 PC3 分配IP地址
AR1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]dhcp select
[Huawei-GigabitEthernet0/0/1]dhcp select int
[Huawei-GigabitEthernet0/0/1]dhcp select interface
[Huawei-GigabitEthernet0/0/1]dhcp ser
[Huawei-GigabitEthernet0/0/1]dhcp server dns-
[Huawei-GigabitEthernet0/0/1]dhcp server dns-list 8.8.8.8
[Huawei-GigabitEthernet0/0/1]quit
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]dhcp ena
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool 111
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-111]netw
[Huawei-ip-pool-111]network 192.168.2.0 mask 24
[Huawei-ip-pool-111]gate
[Huawei-ip-pool-111]gateway-list
[Huawei-ip-pool-111]gateway-list 192.168.2.3
[Huawei-ip-pool-111]dns
[Huawei-ip-pool-111]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-111]quit
[Huawei]int
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]dhcp se
[Huawei-GigabitEthernet0/0/1]dhcp select go
[Huawei-GigabitEthernet0/0/1]dhcp select glo
[Huawei-GigabitEthernet0/0/1]dhcp select global
使用RIP基本配置
补:
network 后面的ip为10.1.1.0,但实际生效的址为10.0.0.0,因为10.1.1.0的主类地址为10.0.0.0
主类地址(私有地址)
A类:12.1.1.1/24主类地址:12.0.0.0
B类:172.16.1.10124主类地址: 172.16.0.0
C类:192.168.1.10/24 主类地址: 192.168.1.0
AR1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]rip 1
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 1.0.0.0
[Huawei-rip-1]net 12.0.0.0
Error: The specified network already exists in the process.
[Huawei-rip-1]net 192.168.1.
AR2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]rip 1
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 2.0.0.0
[Huawei-rip-1]net 23.0.0.0
[Huawei-rip-1]net 12.0.0.0
Error: The specified network already exists in the process.
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]rip 1
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 3.0.0.0
[Huawei-rip-1]net 23.0.0.0
[Huawei-rip-1]net 192.168.2.0
5.测试
PC1 ping PC3
实验成功