1,实验名称:华为三层交换机实现不同vlan间通信
实验目的:pc1/pc2/pc3实现通信
实验拓扑:
2,配置三层交换机
system-view
[huawei]sysname gateway
[gateway]vlan batch 10 20 30
[gateway]interface vlanif 10
[gateway-Vlanif10]undo shutdown
[gateway-Vlanif10]ip address 192.168.10.254 255.255.255.0
[gateway-Vlanif10]quit
[gateway]interface vlanif 20
[gateway-Vlanif20]undo shutdown
[gateway-Vlanif20]ip address 192.168.20.254 255.255.255.0
[gateway-Vlanif20]quit
[gateway]interface vlanif30
[gateway-Vlanif30]undo shutdown
[gateway-Vlanif30]ip address 192.168.30.254 255.255.255.0
[gateway-Vlanif30]quit
[gateway]
[gateway]interface GigabitEthernet 0/0/1
[gateway-GigabitEthernet0/0/1]port link-type access
[gateway-GigabitEthernet0/0/1]port default vlan 10
[gateway-GigabitEthernet0/0/1]quit
[gateway]interface GigabitEthernet 0/0/2
[gateway-GigabitEthernet0/0/2]port link-type access
[gateway-GigabitEthernet0/0/2]port default vlan 20
[gateway-GigabitEthernet0/0/2]quit
[gateway]interface GigabitEthernet 0/0/3
[gateway-GigabitEthernet0/0/1]port link-type access
[gateway-GigabitEthernet0/0/1]port default vlan 30
[gateway-GigabitEthernet0/0/1]quit

3,验证与测试



4,实验总结:
三层交换机配置思路:
1.vlan需要配置网关
2.三层交换机上创建vlan
3.为每个vlan创建相应的虚拟vlan(SVI)
4.给每个vlan配置IP地址
5.配置三层交换机的动态路由或者静态路由
实验结论:华为三层交换机可以通过创建虚拟vlan实现不同vlan通信,即实现vlan路由的功能。