H3C S系列交换机不同网段之间的VLAN互访问题

2024年11月02日 03:05
有1个网友回答
网友(1):

假设S3600 1.2.3接口分别接S3100的1口,2.3口接电脑,都采用C类地址
S3600:
VLAN 10
ip address 192.168.1.0 255.255.255.0
VLAN 20
ip address 172.1.1.0 255.255.255.0
VLAN 30
ip address 10.1.1.0 255.255.255.0
interface f0/1
port link-type trunk
port trunk permit vlan all
interface f0/2
port link-type trunk
port trunk permit vlan all
interface f0/3
port link-type trunk
port trunk permit vlan all

S3100-1:
interface f0/1
port link-type trunk
port trunk permit vlan all
interface f0/2
port access vlan 10
interface f0/3
port access vlan 10

S3100-2:
interface f0/1
port link-type trunk
port trunk permit vlan all
interface f0/2
port access vlan 20
interface f0/3
port access vlan 20

S3100-3:
interface f0/1
port link-type trunk
port trunk permit vlan all
interface f0/2
port access vlan 30
interface f0/3
port access vlan 30

现在所有的机器是互通的,你只需要在vlan10.20.30加上访问访问控制列表就行了,比如服务器放在S3600上,属于VLAN 40,就行了,就可以访问。