最佳答案
核心上需要放通各自的vlan即可
(1) 配置L3 switch的接口
# 创建VLAN 100和VLAN 400,并配置IP地址,用于转发AC和AP间的CAPWAP隧道内的流量。
<L3 switch> system-view
[L3 switch] vlan 100
[L3 switch-vlan100] quit
[L3 switch] interface vlan-interface 100
[L3 switch-Vlan-interface100] ip address 192.168.10.83 255.255.255.0
[L3 switch-Vlan-interface100] quit
[L3 switch] vlan 400
[L3 switch-vlan400] quit
[L3 switch] interface vlan-interface 400
[L3 switch-Vlan-interface400] ip address 192.168.40.1 255.255.255.0
[L3 switch-Vlan-interface400] quit
# 创建VLAN 200,并为该接口配置IP地址。Client使用该VLAN接入无线网络。
[L3 switch] vlan 200
[L3 switch-vlan200] quit
[L3 switch] interface vlan-interface 200
[L3 switch-Vlan-interface200] ip address 192.168.20.1 255.255.255.0
[L3 switch-Vlan-interface200] quit
# 创建VLAN 300,并为该接口配置IP地址。Host使用该VLAN与AC建立连接。
[L3 switch] vlan 300
[L3 switch-vlan300] quit
[L3 switch] interface vlan-interface 300
[L3 switch-Vlan-interface300] ip address 192.168.30.1 255.255.255.0
[L3 switch-Vlan-interface300] quit
# 配置L3 switch和AC相连的接口GigabitEthernet1/0/1为Trunk类型,允许VLAN100和VLAN 200通过。
[L3 switch] interface gigabitEthernet 1/0/1
[L3 switch-GigabitEthernet1/0/1] port link-type trunk
[L3 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[L3 switch-GigabitEthernet1/0/1] quit
# 配置L3 switch和L2 switch1和相连的接口GigabitEthernet1/0/2为Trunk类型,禁止VLAN 1报文通过,允许VLAN 400通过。
[L3 switch] interface gigabitEthernet 1/0/2
[L3 switch-GigabitEthernet1/0/2] port link-type trunk
[L3 switch-GigabitEthernet1/0/2] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/2] port trunk permit vlan 400
[L3 switch-GigabitEthernet1/0/2] quit
# 配置L3 switch和L2 switch2相连的接口GigabitEthernet1/0/3为Trunk类型,禁止VLAN 1报文通过,允许VLAN 300通过。
[L3 switch] interfac gigabitEthernet 1/0/3
[L3 switch-GigabitEthernet1/0/3] port link-type trunk
[L3 switch-GigabitEthernet1/0/3] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/3] port trunk permit vlan 300
[L3 switch-GigabitEthernet1/0/3] quit
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论