1,实验名称:华为三层交换机实现不同vlan间通信
实验目的:pc1/pc2/pc3实现通信
实验拓扑:
2,配置三层交换机
<huawei>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路由的功能。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。