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
因为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
相关文章推荐
- Cisco 2960 初始化及 vlan 划分
- 设置cisco 2960 VLAN间通信
- 两层交换机上划分VLAN借三层交换机路由功能实现跨网段访问(Cisco Packer Tracer 模拟器)
- 基于端口VLAN划分-Cisco模拟软件实现
- Cisco 2960 802.1x动态下发vlan配置(Win Sev 2008 配置请参考以前发过的文章)
- Cisco 特殊VLAN划分之一个VLAN多个网段IP
- 第4章,Cisco Packet Tracer系列之--交换机划分Vlan配置
- Cisco 划分VLAN
- 交换机上VLAN的定义及划分 CiSCO之CCNA篇实验五
- Cisco 三层交换机关于VLAN的划分以及ACL的使用
- cisco-跨交换机的VLAN划分
- Cisco 3750/Cisco 4506 交换机vlan划分
- Cisco基础【交换机】两个实例配置让你掌握交换机VLAN的划分
- CISCO设备-VLAN的划分-单臂路由实例
- 教程:Cisco二层交换机划分VLAN通用教程.
- C-F6. 多VLAN配置DHCP ❀ C3750-E ❀ 思科 (CISCO) 交换机
- 使用二层交换机进行VLAN网络划分
- 华为VLAN划分配置
- CCNA学习笔记--VLAN划分及vlan间通信