让VMwareESXi虚拟交换机支持VLAN(2)
VLAN2006
172.18.96.0/255.255.255.0
172.18.96.254
三层交换机的主要配置参数如下:
<3526b>disp curr
#
sysname 3526b
#
dhcp-server 1 ip 172.18.96.1 172.18.96.5
#
vlan 2001
vlan 2002
vlan 2003
vlan 2004
vlan 2005
vlan 2006
interface Vlan-interface2001
ip address 172.18.91.254 255.255.255.0
dhcp-server 1
#
interface Vlan-interface2002
ip address 172.18.92.254 255.255.255.0
dhcp-server 1
#
interface Vlan-interface2003
ip address 172.18.93.254 255.255.255.0
dhcp-server 1
#
interface Vlan-interface2004
ip address 172.18.94.254 255.255.255.0
dhcp-server 2
#
interface Vlan-interface2005
ip address 172.18.95.254 255.255.255.0
dhcp-server 1
#
interface Vlan-interface2006
ip address 172.18.96.254 255.255.255.0
dhcp-server 2
#
interface Ethernet0/1
port access vlan 2001
#
interface Ethernet0/2
port access vlan 2001
#
interface Ethernet0/3
port access vlan 2002
#
interface Ethernet0/4
port access vlan 2002
#
interface Ethernet0/5
port access vlan 2003
#
interface Ethernet0/6
port access vlan 2003
#
interface Ethernet0/7
port access vlan 2004
#
interface Ethernet0/8
port access vlan 2004
#
interface Ethernet0/9
port access vlan 2005
#
#
interface Ethernet0/14
port access vlan 2006
#
interface Ethernet0/15
port access vlan 2006
#
interface Ethernet0/16
port access vlan 2006
#
interface Ethernet0/23
port link-type trunk
port trunk permit vlan all
interface Ethernet0/24
port link-type trunk
port trunk permit vlan all
interface GigabitEthernet1/1
#
在这台服务器上安装了VMware ESXi 5.1,这台服务器的第一个网卡连接到一个Access端口,该端口划分为VLAN2006,同时这个网卡设置了管理地址172.18.96.11;另一个网卡连接到交换机的Trunk端口(连接到交换机的23或24端口)。
接下来我们看一下,怎样为虚拟交换机启用VLAN功能,并将其分配给虚拟机使用。
2 为连接到Trunk端口的网卡添加虚拟交换机
使用vSphere Client连接到VMware ESXi Server,在“配置→网络”中,可以看到,当前只有一个虚拟交换机,并且为该虚拟交换机分配了管理地址172.18.96.11,如图1-2所示。
图1-2 当前网络<喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+CqOoMaOp1NrNvDEtMtbQo6y1pbv3obDM7bzTzfjC56GxwbS906OsvfjI66GwzO280834wufP8rW8obG21Luwv/KjrNTaobDBrL3TwODQzaGx1tDRodTxobDQ6cTiu/qhsaGjPC9wPgo8cD4Ko6gyo6nU2qGw0OnE4rv6Lc34wue3w87KobG21Luwv/KjrNGh1PGhsLS0vah2U3BoZXJlserXvL27u7u7+qGxo6yyotGh1PG12rb+v+nN+L+oo6i8tMGsvdO1vb27u7u7+lRydW5rtsu/2rXEzfi/qKOpo6zI5828MS00y/nKvqGjPC9wPgo8cD4KPGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20141010/2014101009210085.jpg" alt="\">
相关新闻>>
- 发表评论
-
- 最新评论 更多>>
今日头条
更多>>您可能感兴趣的文章
- 虚拟机Virtual Box内Linux无法ping通网址解决(unknown host XXX
- Virtual machine 'win7' has terminated unexpectedly during st
- VMware之ovftool用法简析
- vmware虚拟机无法secureCRT远程登陆SSH的解决办法
- 为VMware增加虚拟硬盘
- 扩展VirtualBox虚拟机磁盘容量
- VMware vSphere Management Assistant Guide
- VMware 5.5 Red Hat 9屏幕分辨率调节详细方
- ubuntu 12.04云:virtualbox启动的问题
- VMware Workstation 8密钥序列号