首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 网络管理 >> VLan >> 正文

用VLAN解决宿舍网络安全问题

     解决:PVLAN配置案例

     这是一所外国语大学的网络拓扑图,由于考虑到安全的原因,我们只分隔出本案例中需要说明的部分,参见下图。
     
    


     
     在这个案例中,需要交换机Sw-access1的端口1和2配置成了受保护的端口,它们都在VLAN 10里,Sw-core1上的VLAN 10服务器(VLAN10 Server)也在VLAN 10里。这就让PC只能连接到这台服务器,而不会连接到其它服务器。在汇集交换机上还创建了私用VLAN 90,它包括一次community VLAN 901和一个isolated VLAN 900,端口3/46的服务器2和端口3/48服务器3都在community VLAN 901内,而连接到端口3/1和3/2的服务器在isolated VLAN 900内。使10.10.90.5和10.10.90.6之间不能通讯,10.10.90.7和10.10.90.8能够互相通讯,但这四台主机都可以和10.10.90.2通讯。所有这些设备都被映射到连接在端口1/2上的路由器。

     1.核心交换机Sw-core1的设置清单
     Sw-core1#vlan database
     Sw-core1(vlan)#vtp transparent
     Sw-core1(vlan)#exit

     Sw-core1#conf t
     Sw-core1(config)#vlan 90
     Sw-core1(config-vlan)#private-vlan primary
     Sw-core1(config-vlan)#vlan 900
     Sw-core1(config-vlan)#private-vlan isolated
     Sw-core1(config-vlan)#vlan 901
     Sw-core1(config-vlan)#private-vlan community
     Sw-core1(config-vlan)#vlan 90
     Sw-core1(config-vlan)#private-vlan association 900,901
     Sw-core1(config-vlan)#interface range fastethernet 3/1 – 2
     Sw-core1(config-if)#switchport mode private-vlan host
     Sw-core1(config-if)#switchport mode private-vlan host-association 90 900
     Sw-core1(config-if)#no shut
     Sw-core1(config-if)#interface range fastethernet 3/46 , 3/48
     Sw-core1(config-if)#switchport
     Sw-core1(config-if)#switchport mode private-vlan host
     Sw-core1(config-if)#switchport mode private-vlan host-association 90 901
     Sw-core1(config-if)#no shut
     Sw-core1(config-if)#interface gigabitethernet 1/2
     Sw-core1(config-if)#switchport
     Sw-core1(config-if)#switchport mode private-vlan promiscuous
     Sw-core1(config-if)#switchport mode private-vlan mapping 90 900,901
     Sw-core1(config-if)#no shut
     Sw-core1(config-if)#interface vlan 90
     Sw-core1(config-if)#ip address 10.10.90.1 255.255.255.0
     Sw-core1(config-if)#private-vlan mapping 90 900,901
     Sw-core1(config-if)#no shut
     Sw-core1(config-if)#end
     Sw-core1#copy running-config startup-config

    (2)负责宿舍里面接入的交换机配置清单

     Sw-access1# configure terminal
     Sw-access1(config)#interface fastethernet 0/1
     Sw-access1(config-if)#switchport access vlan 10
     Sw-access1(config-if)#port protected
     Sw-access1(config-if)#interface fastethernet 0/1
     Sw-access1(config-if)#switchport access vlan 10
     Sw-access1(config-if)#port protected
     Sw-access1(config-if)#interface gigabitethernet 0/1
     Sw-access1(config-if)#switchport mode trunk
     Sw-access1(config-if)#switchport trunk encapsulation dot1q
     Sw-access1(config-if)#end
     Sw-access1# copy running-config startup-config


 

上一页  [1] [2] [3] [4] 

【责编:Zenghui】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航