PDA

查看完整版本 : 【求助】T16C的路由设置!!


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。
应该如何设定路由表?

anlqtao
2005-06-07, 12:51
默认路由表设置如下表:
zte#ip show routes
Destination Gateway Owner Netif
127.0.0.1 127.0.0.1 lo
192.168.1.0/24 directly connected -- int1
192.168.2.0/24 directly connected -- int2
192.168.2.0/24 directly connected -- int3
192.168.2.0/24 directly connected -- int4
192.168.2.0/24 directly connected -- int5
192.168.2.0/24 directly connected -- int6

原子蛋
2005-06-13, 08:24
设置acl1
permit ip any 192.168.5.0/24 any any
deny ip any any
然后apply到interface v1/v2/v3的input方向,此时V1/V2/V3各自只能访问V5。

V4设置设置一个ACL2
permit ip any 192.168.6.0/24 any any
deny ip any any
apply 到v4 的input,只能访问V6。

V5设置ACL3
deny ip any 192。168。4。0、24 any any
permit ip any any
应用到v5的input;

因为有了上面的设置,V6可以不设置,123肯定不能访问,45可以。