您好,登錄后才能下訂單哦!
搭建拓?fù)?,最后保證全網(wǎng)互通,用客戶端“Client1"成功訪問”Server1“
其中:Server1為WEB服務(wù)器,server2為DNS服務(wù)器,屬于VLAN30,網(wǎng)關(guān)在SW4上,PC1和3屬于VLAN10,PC2屬于VLAN20,PC4,5和客戶端屬于VLAN40,SW1上有十網(wǎng)段和二十網(wǎng)段的網(wǎng)關(guān),SW4上有三十網(wǎng)段和四十網(wǎng)段的網(wǎng)關(guān)。
Pc1:192.168.10.1
Pc2:192.168.20.1
Pc3:192.168.10.2
Pc4:192.168.40.1
Pc5:192.168.40.2
Client1:192.168.40.3
Server1:192.168.30.1
Server2:192.168.30.2
以上為各終端IP地址
SW2:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]vlan 10
[Huawei-vlan10]
[Huawei-vlan10]vlan 20
[Huawei-vlan20]
[Huawei-vlan20]vlan 30
[Huawei-vlan30]
[Huawei-vlan30]
[Huawei-vlan30]vlan 40
[Huawei-vlan40]
[Huawei-vlan40]q
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 10
[Huawei-GigabitEthernet0/0/3]q
[Huawei]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]port link-type access
[Huawei-GigabitEthernet0/0/4]port default vlan 20
[Huawei-GigabitEthernet0/0/4]q
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]q
[Huawei]
SW3:
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]q
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]display this
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all
SW1:
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]q
[Huawei]
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]display this
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
[Huawei-GigabitEthernet0/0/1]q
[Huawei]
[Huawei]int GigabitEthernet 0/0/3
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]q
[Huawei]
[Huawei]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]port link-type access
[Huawei-GigabitEthernet0/0/4]port default vlan 30
[Huawei-GigabitEthernet0/0/4]q
[Huawei]
[Huawei]
[Huawei]int g 0/0/5
[Huawei-GigabitEthernet0/0/5]port link-type access
[Huawei-GigabitEthernet0/0/5]port default vlan 30
[Huawei-GigabitEthernet0/0/5]
[Huawei-GigabitEthernet0/0/5]q
[Huawei]
[Huawei]
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]display this
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
[Huawei]
[Huawei]int vlan 10
[Huawei-Vlanif10]
[Huawei-Vlanif10]ip add 192.168.10.254 255.255.255.0
[Huawei-Vlanif10]
[Huawei-Vlanif10]q
[Huawei]
[Huawei]int vlan 20
[Huawei-Vlanif20]ip add 192.168.20.254 255.255.255.0
[Huawei-Vlanif20]
[Huawei-Vlanif20]q
[Huawei]
[Huawei]int vlan 50
[Huawei-Vlanif50]ip add 192.168.50.1 255.255.255.0
[Huawei-Vlanif50]q
[Huawei]
[Huawei]
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]network 192.168.10.0
[Huawei-rip-1]network 192.168.20.0
[Huawei-rip-1]network 192.168.50.0
[Huawei-rip-1]
[Huawei-rip-1]
[Huawei-rip-1]
[Huawei-rip-1]q
[Huawei]
SW5:
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]display this
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 40
#
return
[Huawei-GigabitEthernet0/0/2]q
[Huawei]
[Huawei]
[Huawei]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]display this
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 40
#
return
[Huawei-GigabitEthernet0/0/3]q
[Huawei]
[Huawei]
[Huawei]int g 0/0/4
[Huawei-GigabitEthernet0/0/4]
[Huawei-GigabitEthernet0/0/4]display this
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 40
#
return
[Huawei-GigabitEthernet0/0/4]q
[Huawei]
[Huawei]
[Huawei]
創(chuàng)建VLAN 并將端口加入VLAN
[Huawei]
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]
[Huawei-GigabitEthernet0/0/1]
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]
[Huawei-GigabitEthernet0/0/1]
SW4:
The device is running!
<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]vlan 50
[Huawei-vlan50]q
[Huawei]
[Huawei]
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]q
[Huawei]
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]q
[Huawei]
[Huawei]
[Huawei]int vlan 30
[Huawei-Vlanif30]
[Huawei-Vlanif30]ip add 192.168.30.254 255.255.255.0
[Huawei-Vlanif30]
[Huawei-Vlanif30]q
[Huawei]
[Huawei]interface vlan 40
[Huawei-Vlanif40]
[Huawei-Vlanif40]ip add 192.168.40.254 255.255.255.0
[Huawei-Vlanif40]
[Huawei-Vlanif40]q
[Huawei]
[Huawei]int vlan 50
[Huawei-Vlanif50]
[Huawei-Vlanif50]ip add 192.168.50.2 255.255.255.0
[Huawei-Vlanif50]q
[Huawei]
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]network 192.168.30.0
[Huawei-rip-1]network 192.168.40.0
[Huawei-rip-1]network 192.168.50.0
[Huawei-rip-1]
這張圖是客戶端配置界面
上圖為WEB服務(wù)器,也就是server1的WEB配置界面,html文件格式我會放在最下
上圖為server1的配置界面
上圖為DNS服務(wù)器,也就是server2的DNS配置界面
上圖為server2的配置界面
全部配置完畢,結(jié)果驗(yàn)證成功。
以下為index.html文件格式
<html>
<head>
<title>wodegerenzhuye</title>
</head>
<body>huanyingfangwen
</body>
</html>
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。