Cisco 2960 + ROS OSV 划分VLAN 及在VLAN下部署OSV
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> 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 点击+号进行新建
http://www.os-v.com/blog/wp-content/uploads/ckfinder/images/111.png
其中Name 为刚刚Cisco交换机中的Vlan的名字(有些交换机要设置成一样,有些不一定),Vlan> 2,ROS 中给Vlan指定IP
点击ip—address 新增IP,每个Vlan都要给IP。
http://www.os-v.com/blog/wp-content/uploads/ckfinder/images/222.png
此时Vlan就新建完成了,在ROS下,Vlan接口可以看成是一个物理接口去操作,包括进行防火墙操作,默认情况下,各Vlan之间是可以直接通信的,如果不想认Vlan间互相通过,可通过ROS的防火墙来实现。
部署OSV
使用ROS的DHCP服务器,指定Nexe Server 至OSV服务器
点击ip—dhcpserver—network 在Next Server中,将IP指定为OSV 的BOOT服务器。
http://www.os-v.com/blog/wp-content/uploads/ckfinder/images/333.png
2,使用交换机的DHCP>
使用DHCP> 除此之外还可以使用OSV BOOT来跨Vlan启动,使用OSV BOOT时,不需要改变用户任何网络配置,只要TCP/IP能通信的地方,都能使用,所使用的端口TCP 7000-7050 UDP 7000-7050
OSV 智能桌面虚拟化
页:
[1]