华为多交换机不同VLAN间通信全网互通域名解析(详细步骤)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为多交换机不同VLAN间通信全网互通域名解析(详细步骤)相关的知识,希望对你有一定的参考价值。
使用eNSP搭建实验环境 一.pc机192.168.10.254 网关192.168.10.254 以此为论推 二:sw7配置(端口加vlan ) [Huawei]vlan batch 10 20 [Huawei]int eth0/0/3 Huawei-Ethernet0/0/3]undo shutdown [Huawei-Ethernet0/0/3]port link-type access [Huawei-Ethernet0/0/3]port default valn 10 [Huawei]int eth 0/0/2 [Huawei-Ethernet0/0/2]port link-type access [Huawei-Ethernet0/0/2]port default valn 20 [Huawei-Ethernet0/0/1]int eth 0/0/1 [Huawei-Ethernet0/0/1]port link-type trunk [Huawei-Ethernet0/0/1]port trunk allow-pass valn all 三:sw8配置 [sw8]vlan 10 [sw8]int eth0/0/2 [sw8-Ethernet0/0/2]undo shutdown [sw8-Ethernet0/0/2]port link-type access [sw8-Ethernet0/0/2]port default vlan 10 [sw8]int eth0/0/1 [sw8-Ethernet0/0/1]port link-type trunk [sw8-Ethernet0/0/1]port trunk allow-pass vlan all 三:sw10配置 [sw10]vlan 40 [sw10-vlan40]int eth0/0/2 [sw10-Ethernet0/0/2]port link-type a [sw10-Ethernet0/0/2]port link-type access [sw10-Ethernet0/0/2]port default vlan 40 [sw10-Ethernet0/0/2]undo shutdown Info: Interface Ethernet0/0/2 is not shutdown. [sw10-Ethernet0/0/2]q [sw10]int eth0/0/3 [sw10-Ethernet0/0/3]undo shutdown [sw10-Ethernet0/0/3]port link-type access [sw10-Ethernet0/0/3]port default vlan 40 [sw10-Ethernet0/0/4]undo shutdown [sw10-Ethernet0/0/4]port link-type access [sw10-Ethernet0/0/4]port default vlan 40 [sw10]int eth0/0/1 [sw10-Ethernet0/0/1]port link-type trunk [sw10-Ethernet0/0/1]port trunk allow-pass vlan all [sw10-Ethernet0/0/1]undo shutdown 四,sw9配置(sw9.10trunk)
[sw9]vlan batch 30 40 50 Info: This operation may take a few seconds. Please wait for a moment...done. [sw9]int vlan 30 [sw9-Vlanif30]undo shutdown Info: Interface Vlanif30 is not shutdown. [sw9-Vlanif30]ip add 192.168.30.254 24 [sw9-Vlanif30]q [sw9]int vlan 50 [sw9-Vlanif50]ip add 192.168.50.2 24 [sw9-Vlanif50]q [sw9]int vlan 40 [sw9-Vlanif40]undo shutdown [sw9-Vlanif40]ip add 192.168.40.254 24 [sw9-Vlanif40]q [sw9]int g0/0/1 [sw9-GigabitEthernet0/0/1]undo shutdown [sw9-GigabitEthernet0/0/1]port link-type trunk [sw9-port-group-trunk]port trunk allow-pass vlan all [sw9-port-group-trunk]q [sw9]int g0/0/2 [sw9-GigabitEthernet0/0/2]port link-type trunk [sw9-GigabitEthernet0/0/2]port trunk allow-pass vlan all [sw9-GigabitEthernet0/0/2]undo shutdown [sw9-GigabitEthernet0/0/2]q [sw9]rip [sw9-rip-1]version 2 [sw9-rip-1]network 192.168.30.0 [sw9-rip-1]network 192.168.40.0 [sw9-rip-1]network 192.168.50.0 五,Sw6配置(sw6.9、6.8、6.7trunk) [sw6]vlan batch 10 20 30 50 [sw6-GigabitEthernet0/0/3]undo shutdown [sw6-GigabitEthernet0/0/3]port link-type trunk [sw6-GigabitEthernet0/0/3]port trunk allow-pass vlan all [sw6-GigabitEthernet0/0/3]q [sw6]int g0/0/4 [sw6-GigabitEthernet0/0/4]port link-type trunk [sw6-GigabitEthernet0/0/4]port trunk allow-pass vlan all [sw6-GigabitEthernet0/0/4]undo shutdown [sw6-GigabitEthernet0/0/4]q [sw6]int vlan 10 [sw6-Vlanif10]ip add 192.168.10.254 24 [sw6-Vlanif10]undo shutdown [sw6-Vlanif10]q [sw6]int vlan 20 [sw6-Vlanif20]und shutdown Info: Interface Vlanif20 is not shutdown. [sw6-Vlanif20]ip add 192.168.20.254 24 [sw6-Vlanif20]q [sw6]int g0/0/5 [sw6-GigabitEthernet0/0/5]port link-type access [sw6-GigabitEthernet0/0/5]port link-type trunk [sw6-GigabitEthernet0/0/5]port trunk allow-pass vlan all [sw6-GigabitEthernet0/0/5]q [sw6-GigabitEthernet0/0/5]undo shutdown [sw6]int g0/0/1 [sw6-GigabitEthernet0/0/1]port link-type access [sw6-GigabitEthernet0/0/1]port default vlan 30 [sw6-GigabitEthernet0/0/1]undo shutdown [sw6-GigabitEthernet0/0/1]q [sw6]int g0/0/2 [sw6-GigabitEthernet0/0/2]undo shutdown [sw6-GigabitEthernet0/0/2]port link-type access [sw6-GigabitEthernet0/0/2]port default vlan 30 [sw6]int vlan 50 [sw6-Vlanif50]undo shutdown [sw6-Vlanif50]ip add 192.168.50.1 255.255.255.0 [sw6]rip [sw6-rip-1]ver [sw6-rip-1]version 2 [sw6-rip-1]network 192.168.10.0 [sw6-rip-1]network 192.168.20.0 [sw6-rip-1]network 192.168.30.0 [sw6-rip-1]network 192.168.50.0 六.全网互通
|
以上是关于华为多交换机不同VLAN间通信全网互通域名解析(详细步骤)的主要内容,如果未能解决你的问题,请参考以下文章