下图需要完成4台电脑端互相可以通过路由器互相访问,显示浏览器可以通过DNS服务器获取ftp服务器ip通过路由器访问网站
AR4配置(路由器配置)
<Huawei>sys
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
Jul 18 2023 16:06:08-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
Jul 18 2023 16:07:11-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[4]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/24 up up
GigabitEthernet0/0/1 192.168.2.1/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[Huawei]
PC4配置
PC5配置
PC6配置
PC7配置
各个pc端互通
pc4ping另外几个pc
PC>ping 192.168.1.4
Ping 192.168.1.4: 32 data bytes, Press Ctrl_C to break
From 192.168.1.4: bytes=32 seq=1 ttl=128 time=31 ms
From 192.168.1.4: bytes=32 seq=2 ttl=128 time=16 ms
From 192.168.1.4: bytes=32 seq=3 ttl=128 time=47 ms
From 192.168.1.4: bytes=32 seq=4 ttl=128 time=31 ms
From 192.168.1.4: bytes=32 seq=5 ttl=128 time=16 ms
--- 192.168.1.4 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 16/28/47 ms
PC>ping 192.168.2.2
Ping 192.168.2.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.2.2: bytes=32 seq=2 ttl=127 time=78 ms
From 192.168.2.2: bytes=32 seq=3 ttl=127 time=62 ms
From 192.168.2.2: bytes=32 seq=4 ttl=127 time=78 ms
From 192.168.2.2: bytes=32 seq=5 ttl=127 time=63 ms
--- 192.168.2.2 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/70/78 ms
PC>ping 192.168.2.3
Ping 192.168.2.3: 32 data bytes, Press Ctrl_C to break
From 192.168.2.3: bytes=32 seq=1 ttl=127 time=78 ms
From 192.168.2.3: bytes=32 seq=2 ttl=127 time=63 ms
From 192.168.2.3: bytes=32 seq=3 ttl=127 time=78 ms
From 192.168.2.3: bytes=32 seq=4 ttl=127 time=62 ms
From 192.168.2.3: bytes=32 seq=5 ttl=127 time=94 ms
--- 192.168.2.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 62/75/94 ms
PC>
pc6ping另外几个pc
PC>ping 192.168.2.3
Ping 192.168.2.3: 32 data bytes, Press Ctrl_C to break
From 192.168.2.3: bytes=32 seq=1 ttl=128 time=31 ms
From 192.168.2.3: bytes=32 seq=2 ttl=128 time=31 ms
From 192.168.2.3: bytes=32 seq=3 ttl=128 time=31 ms
From 192.168.2.3: bytes=32 seq=4 ttl=128 time=32 ms
From 192.168.2.3: bytes=32 seq=5 ttl=128 time=46 ms
--- 192.168.2.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 31/34/46 ms
PC>ping 192.168.1.3
Ping 192.168.1.3: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.1.3: bytes=32 seq=2 ttl=127 time=62 ms
From 192.168.1.3: bytes=32 seq=3 ttl=127 time=47 ms
From 192.168.1.3: bytes=32 seq=4 ttl=127 time=78 ms
From 192.168.1.3: bytes=32 seq=5 ttl=127 time=47 ms
--- 192.168.1.3 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/58/78 ms
PC>ping 192.168.1.4
Ping 192.168.1.4: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.1.4: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.1.4: bytes=32 seq=3 ttl=127 time=47 ms
From 192.168.1.4: bytes=32 seq=4 ttl=127 time=78 ms
From 192.168.1.4: bytes=32 seq=5 ttl=127 time=94 ms
--- 192.168.1.4 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/66/94 ms
PC>
显示浏览器通过DNS服务器获取ftp服务器ip通过路由器访问网站
显示浏览器Client1配置
服务器server1配置
Server2DNS服务器配置
Client1成功访问Server2服务器
注: Server服务器作为DNS服务器的同时还可以作为ftp服务器等。