您的位置:首页 > 其它

Cisco 2960 + ROS OSV 划分VLAN 及在VLAN下部署OSV

2013-02-28 18:52 155 查看
Cisco 2960 + ROS OSV 划分VLAN 及在VLAN下部署OSV

因为2960为二层交换机,并没有NAT功能,所以要借助ROS来实现Vlan间的通信,Vlan间的数据会经过ROS处理后,返回到指定的Vlan中。
设置交换机
交换机划分:
上联口:接ROS 的LAN 口

1号口设置为Vlan 10 对应研发部192.168.0.0/24

2号口设置为Vlan 20 对应综合部192.168.1.0/24

3号口设置为Vlan 30 对应工程部192.168.88.0/24

其中上联口“gigabitEthernet”为千M,其他网卡为百M。
配置交换机:
Switch>enable

Switch#configure terminal //特权模式

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10 //新建Vlan ID 为10

Switch(config-vlan)#name vlan10 //设置Vlan 10的名字为Vlan10

Switch(config-vlan)#exit // 退出

Switch(config)#vlan 20

Switch(config-vlan)#name vlan10

Switch(config-vlan)#exit

Switch(config)#vlan 30

Switch(config-vlan)#name vlan10

Switch(config-vlan)#exit

Switch(config)#

Switch(config)#interface fastEthernet 0/1 //进入端口配置模式,配置0/1号口

Switch(config-if)#switchport access vlan 10 //把1号端口加入到Vlan 10

Switch(config-if)#exit //退出

Switch(config)#interface fastEthernet 0/2

Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/3

Switch(config-if)#switchport access vlan 30

Switch(config)#

Switch(config)#interface gigabitEthernet 0/1 //进入端口配置模式,gigabitEthernet 0/1 即:上联口

Switch(config-if)#switchport mode trunk //设置Trunk

Switch(config-if)#switchport trunk allowed all //因为是上联口,要ROS做路由转发Vlan间的数据,所以要允许所有Vlan通过

Switch(config-if)#exit

Switch(config)#interface range f0/1-8 //进入端口批量设置模式

Switch(config-if-range)#spanning-tree portfast //设置portfast模式后,端口会亮的快一些

Switch(config-if)#exit

ROS 设置:
1,ROS中新增Vlan接口
使用Winbox登录,打开interface—Vlan 点击+号进行新建



其中Name 为刚刚Cisco交换机中的Vlan的名字(有些交换机要设置成一样,有些不一定),Vlan ID 要和Cisco 中新建的Vlan ID 一样。Interface 为ROS 连接Cisco 的gigabitEthernet 口的网卡。与交换机中的Vlan ID 对应,在ROS中新增3个Vlan接口.
2,ROS 中给Vlan指定IP
点击ip—address 新增IP,每个Vlan都要给IP。



此时Vlan就新建完成了,在ROS下,Vlan接口可以看成是一个物理接口去操作,包括进行防火墙操作,默认情况下,各Vlan之间是可以直接通信的,如果不想认Vlan间互相通过,可通过ROS的防火墙来实现。

部署OSV

使用ROS的DHCP服务器,指定Nexe Server 至OSV服务器

点击ip—dhcpserver—network 在Next Server中,将IP指定为OSV 的BOOT服务器。



2,使用交换机的DHCP Relay

使用DHCP Relay时,交换机所收到的DHCP广播会被转发至指定的服务器。不同交换机配置不一样,但注意所分配的IP。

除此之外还可以使用OSV BOOT来跨Vlan启动,使用OSV BOOT时,不需要改变用户任何网络配置,只要TCP/IP能通信的地方,都能使用,所使用的端口TCP 7000-7050 UDP 7000-7050

OSV 智能桌面虚拟化本文出自 “桌面虚拟化” 博客,请务必保留此出处http://osvdesktop.blog.51cto.com/4693376/1142690
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: