anlqtao
2005-06-07, 12:51
我公司刚购置一个中兴T16C交换机,并作了如下设置,
vlan create v1 id 2
vlan create v2 id 3
vlan create v3 id 4
vlan create v4 id 5
vlan create v5 id 6
vlan create v6 id 7
vlan add ports et.1.(1-8) to v1
vlan add ports et.1.(9-16) to v2
vlan add ports et.2.(1-4) to v3
vlan add ports et.2.(5-8) to v4
vlan add ports et.2.(9-12) to v5
vlan add ports et.2.(13-16) to v6
interface create ip int1 address-netmask 192.168.1.1/24 vlan v1
interface create ip int2 address-netmask 192.168.2.1/24 vlan v2
interface create ip int3 address-netmask 192.168.3.1/24 vlan v3
interface create ip int4 address-netmask 192.168.4.1/24 vlan v4
interface create ip int5 address-netmask 192.168.5.1/24 vlan v5
interface create ip int6 address-netmask 192.168.6.1/24 vlan v6
划分了6个VLAN ,分别是V1-V6,并为其配置了接口,分别是192.168.1.1/24--192.168.6.1/24
现想做如下路由策略规则:
V1,V2,V3只能与V5互访,不能访问其它VLAN。
V4只能与V6互访,不能访问其它VLAN。
V5不能与V4互访,其它都可访问。
V6只可访问V4,V5。
应该如何设定路由表?
vlan create v1 id 2
vlan create v2 id 3
vlan create v3 id 4
vlan create v4 id 5
vlan create v5 id 6
vlan create v6 id 7
vlan add ports et.1.(1-8) to v1
vlan add ports et.1.(9-16) to v2
vlan add ports et.2.(1-4) to v3
vlan add ports et.2.(5-8) to v4
vlan add ports et.2.(9-12) to v5
vlan add ports et.2.(13-16) to v6
interface create ip int1 address-netmask 192.168.1.1/24 vlan v1
interface create ip int2 address-netmask 192.168.2.1/24 vlan v2
interface create ip int3 address-netmask 192.168.3.1/24 vlan v3
interface create ip int4 address-netmask 192.168.4.1/24 vlan v4
interface create ip int5 address-netmask 192.168.5.1/24 vlan v5
interface create ip int6 address-netmask 192.168.6.1/24 vlan v6
划分了6个VLAN ,分别是V1-V6,并为其配置了接口,分别是192.168.1.1/24--192.168.6.1/24
现想做如下路由策略规则:
V1,V2,V3只能与V5互访,不能访问其它VLAN。
V4只能与V6互访,不能访问其它VLAN。
V5不能与V4互访,其它都可访问。
V6只可访问V4,V5。
应该如何设定路由表?