zhaowei
积分
帖子
主题
使用道具 举报
你看看这个配置,用24口和路由器相连,就实现你的目的
sysname s2026 # radius scheme system server-type huawei primary authentication 127.0.0.1 1645 primary accounting 127.0.0.1 1646 user-name-format without-domain # domain system radius-scheme system access-limit disable state active idle-cut disable
domain default enable system # local-server nas-ip 127.0.0.1 key huawei
local-user admin password simple admin service-type telnet level 3 # vlan 1 # vlan 101 # vlan 102 # vlan 103 # interface Vlan-interface103 description manager-vlan ip address 10.21.203.173 255.255.255.248 # interface Aux0/0 # interface Ethernet0/1 port access vlan 102 # interface Ethernet0/2 port access vlan 102 # interface Ethernet0/3 port access vlan 102 # interface Ethernet0/4 port access vlan 102 # interface Ethernet0/5 port access vlan 102 # interface Ethernet0/6 port access vlan 102 # interface Ethernet0/7 port access vlan 102 # interface Ethernet0/8 port access vlan 102 # interface Ethernet0/9 port access vlan 101 # interface Ethernet0/10 port access vlan 101 # interface Ethernet0/11 port access vlan 101 # interface Ethernet0/12 port access vlan 101 # interface Ethernet0/13 port access vlan 101 # interface Ethernet0/14 port access vlan 101 # interface Ethernet0/15 port access vlan 101 # interface Ethernet0/16 port access vlan 101 # interface Ethernet0/17 # interface Ethernet0/18 # interface Ethernet0/19 # interface Ethernet0/20 # interface Ethernet0/21 # interface Ethernet0/22 # interface Ethernet0/23 port access vlan 103 # interface Ethernet0/24 port link-type trunk port trunk permit vlan 101 to 103 # interface NULL0 # user-interface aux 0 user-interface vty 0 4 user privilege level 3 set authentication password simple admin #
以上所说的均不正确,因为如果做交换机到路由器的trunk,也就是这5个VLAN的网关都必须做到路由器上,因此这5个网关的IP地址属于同一台路由器,因此他们仍然可以互相访问。如果这5个VLAN均不互相访问,那么必须在路由器上做策略,也就是说,在每个网关端口上屏蔽掉来自其他4个VLAN的地址。我说的策略是在路由器上面做。
你好我想问一个问题,我的情况是一个24口的D-link3326s交换机
划vlan,前10个口和后14分开,想让两个Vlan之间不能互相访问.两个
vlan在同一网段,我用浏览器登入交换机,在802.1Qvlans划了两个组,
vlan1和vlan2可还能访问,我不知道还要设那里,在vlan里的默认配置改
不了,我一改就说以创建过.
本版积分规则 提交评论 回帖并转播 回帖后跳转到最后一页