vlan实验

一.实验拓扑图

二.实验步骤

 LSW1

  1. vlan batch 2 to 6

LSW2

  1. vlan batch 2 to 6

LSW1


int Ethernet0/0/1    -------pc1
port link-type access 
port default vlan 2
 
interface Ethernet0/0/2-------pc2
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3 4 5 6
 
interface Ethernet0/0/3------pc3    
port link-type access 
[LSW1-Ethernet0/0/3]port default vlan 2
 
interface Ethernet0/0/4-----pc4
port link-type hybrid     
port hybrid pvid vlan 4
port hybrid untagged vlan 3 4
 
interface Ethernet0/0/6   
port link-type hybrid     
port hybrid untagged vlan 3 4 5 6    
port hybrid tagged vlan 2

LSW2


interface Ethernet0/0/2----pc5
port link-type hybrid 
port hybrid pvid vlan 5    
port hybrid untagged vlan 3 5
 
interface Ethernet0/0/3----pc6    
port link-type hybrid 
port hybrid pvid vlan 6    
port hybrid untagged vlan 3 6

LSW1

interface Ethernet0/0/5    
port link-type trunk 
port trunk allow-pass vlan all
 
interface Ethernet0/0/1    
port link-type trunk 
port trunk allow-pass vlan all

R1


int g0/0/0
ip add 192.168.1.1 24
int g0/0/0.1
ip add 192.168.2.1 24
dot1q termination vid 2
arp broadcast enable 
 ip pool 1    
network 192.168.1.0 mask 24    
gateway-list 192.168.1.1
dns-list 114.114.114.114
q
ip pool 2
network 192.168.2.0 mask 24
gateway-list 192.168.2.1
dns-list 114.114.114.114
q
int g0/0/0
dhcp select global 
int g0/0/0.1
dhcp select global

pc 端ip配置

pc1:192.168.2.254

pc2:192.168.1.254

pc3:192.168.2.253

pc4:192.168.1.253

pc5:192.168.1.252

pc6:192.168.1.251

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值