Chinaunix首页 | 论坛 | 博客
  • 博客访问: 661834
  • 博文数量: 291
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2400
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-04 12:04
文章分类

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类: LINUX

2007-07-16 13:23:28

不小心把VCMS所在的VM设置了VLAN 105, 马上就不能与其联系了。
方法1:
使用CLI.

[root@BI-ESX1 root]# esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch0       32          4           32                vmnic0

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  Service Console     portgroup0     0        1           vmnic0
  VMotion             portgroup2     111      1           vmnic0

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch1       64          6           64                vmnic2,vmnic1

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  VM Network          portgroup13    105      1           vmnic1,vmnic2
  Service Console 2   portgroup14    0        1           vmnic1,vmnic2
  IP Storage          portgroup15    0        1           vmnic1,vmnic2

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch2       64          0           64

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  VM Network Internal portgroup16    0        0
以上的命令显示"VM Network"的VLAN ID为105.使用以下的命令后:
esxcfg-vswitch -p "VM Network" -v 0 vSwitch1

[root@BI-ESX1 root]# esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch0       32          4           32                vmnic0

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  Service Console     portgroup0     0        1           vmnic0
  VMotion             portgroup2     111      1           vmnic0

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch1       64          6           64                vmnic2,vmnic1

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  VM Network          portgroup13    0        1           vmnic1,vmnic2
  Service Console 2   portgroup14    0        1           vmnic1,vmnic2
  IP Storage          portgroup15    0        1           vmnic1,vmnic2

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks
vSwitch2       64          0           64

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks
  VM Network Internal portgroup16    0        0

方法2:
使用VI client直接连接到ESX
阅读(1224) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~