您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
实验目的:不同vlan间通信
实验步骤:1)在二层交换机SW1和SW2上配置VLAN
[SW1]vlan 2
[SW1]vlan 3
[SW1]interface Ethernet0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 1
[SW1]interface Ethernet0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 2
[SW1]interface Ethernet0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 3
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW2]vlan 4
[SW2]vlan 5
[SW2]interface Ethernet0/0/1
[SW2-Ethernet0/0/1]port link-type access
[SW2-Ethernet0/0/1]port default vlan 4
[SW2]interface Ethernet0/0/2
[SW2-Ethernet0/0/2]port link-type access
[SW2-Ethernet0/0/2]port default vlan 5
[SW2]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
2)配置三层交换机
[SW3]vlan batch 1 to 5
[SW3]int g0/0/1
[SW3-GigabitEthernet0/0/1]port link-type trunk
[SW3-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW3]int g0/0/2
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[SW3]int Vlanif 1
[SW3-Vlanif1]ip add 192.168.1.254 24
[SW3]int Vlanif 2
[SW3-Vlanif2]ip add 192.168.2.254 24
[SW3]int Vlanif 3
[SW3-Vlanif3]ip add 192.168.3.254 24
[SW3]int Vlanif 4
[SW3-Vlanif1]ip add 192.168.4.254 24
[SW3]int Vlanif 5
[SW3-Vlanif2]ip add 192.168.5.254 24
3)测试PC间互通
4)sw 1上建立vlan 6
将 gi 0/0/1 加入vlan 6
设置VLAN6 网关
路由gi 0/0/1设置192.168.6.1
Pc 设置192.168.7.1 路由gi 0/0/0 设置192.168.7.254/24
5)测试PC间互通
完成配置,验证、保存
谢谢大家 QQ:3297333814
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。