我们即将在我们的环境中实施 PVLAN,但是对于任何有生产经验的人,我有几个问题。
网络将设置如下:
Hosts Hosts
| |
SW1 (N) SW2 (S)
\ /
SW3 (Core SW)
|
Firewall
|
Internet
我的问题是 IP 地址会在哪个 VLAN 上运行?首要的?如果是这样,所有其他交换机都具有相同的主 VLAN 但不同的 IP 地址,这不会造成冲突吗?
谢谢你们的帮助!
这是我当前配置的一个想法:
11 N 3560x 的 PVLAN 配置
conf t
vtp mode transparent
feature private-vlan
vlan 2
private-vlan primary
exit
vlan 3
private-vlan isolated
exit
vlan 2
private-vlan associated add 3
exit
int gi0/1 - gi0/23
switchport mode private-vlan host
switchport private-vlan host-association 2 3
spanning-tree portfast
int gi0/24
description to core switch
switchport mode private-vlan promiscuous
switchport private-vlan mapping 2 add 3
spanning-tree portfast
end
显示 vlan 主
显示int gi0/1 - gi0/23 开关| 私下求
11 S 3560x 的 PVLAN 配置
conf t
vtp mode transparent
feature private-vlan
vlan 2
private-vlan primary
exit
vlan 5
private-vlan isolated
exit
vlan 2
private-vlan associated add 5
exit
int gi0/1 - gi0/23
switchport mode private-vlan host
switchport private-vlan host-association 2 5
spanning-tree portfast
int gi0/24
description to core switch
switchport mode private-valn promiscuous
switchport private-vlan mapping 2 add 5
spanning-tree portfast
end
显示 vlan 主
核心交换机的 PVLAN 配置
conf t
vtp mode transparent
feature private-vlan
vlan 2
private-vlan primary
exit
vlan 7
private-vlan isolated
exit
vlan 2
private-vlan associated add 7
exit
int gi0/1 - gi0/23
switchport mode private-vlan host
switchport private-vlan host-association 2 7
spanning-tree portfast
int gi0/24
description to fortinet
switchport mode private-valn promiscuous
switchport private-vlan mapping 2 add 7
spanning-tree portfast
end
显示 vlan 主
显示 vlan 私有 vlan 类型
配置中继端口一台设备不知道 pvlan
int gi0/24
switchport mode private-vlan trunk secondary
switchport private-vlan trunk native vlan 3
switchport private-vlan trunk allowed 3, 7
switchport private-vlan association trunk 2 3 #primary, secondary
显示 int gi0/24 开关端口
配置两个设备都知道 pvlan 的中继端口
int gi0/24
switchport mode private-vlan trunk promiscuous
switchport private-vlan trunk native vlan 3
switchport private-vlan trunk allowed vlan 3, 7 #core switch vlan
switchport private-vlan mapping trunk 2 add 3, 7