
H3C S系列交换机不同网段之间的VLAN互访问题
设备清单:ZR3200路由器1台、S3600核心交换机1台、S3100二层交换机3台(S3100-1、S3100-2、S3100-3)、6台PC机(PC1、PC2、PC3...
设备清单:ZR3200 路由器 1台、S3600 核心交换机 1台、S3100 二层交换机3台(S3100-1、S3100-2、S3100-3)、6台PC机(PC1、PC2、PC3、PC4、PC5、PC6)和1台服务器
要求:1、PC1、2为VLAN10接在3100-1上,PC3、4为VLAN20接在3100-2上,PC5、6为VLAN30接在3100-3上;
2、PC1、2的网段是192.168.1.0;PC3、4的网段是172.1.1.0;PC5、6的网段是10.1.1.0;
3、PC1、2与PC3、4与PC5、6之间不能访问,也就是不同网段之间的PC机不能访问,但是不同网段之间的PC机都可以访问到服务器。
大家看看如何配置! 展开
要求:1、PC1、2为VLAN10接在3100-1上,PC3、4为VLAN20接在3100-2上,PC5、6为VLAN30接在3100-3上;
2、PC1、2的网段是192.168.1.0;PC3、4的网段是172.1.1.0;PC5、6的网段是10.1.1.0;
3、PC1、2与PC3、4与PC5、6之间不能访问,也就是不同网段之间的PC机不能访问,但是不同网段之间的PC机都可以访问到服务器。
大家看看如何配置! 展开
展开全部
假设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,就行了,就可以访问。
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,就行了,就可以访问。

2023-05-25 广告
StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询