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

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类:

2006-11-24 22:02:21

本文讲述的是如何将Service Console port groupvSwitch1移动到vSwitch0的过程,这个过程用CLI完成是比较合适的, 也许是唯一的方法。由于只有1Service Console时是无法更改的,因此我们首先建立了Service Console 2.

# esxcfg-vswitch -l

Switch Name    Num Ports   Used Ports  Configured Ports Uplinks

vSwitch0       32        4        32           vmnic1,vmnic0

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  VM Network          portgroup1     0          1          vmnic0,vmnic1

 

Switch Name    Num Ports   Used Ports  Configured Ports Uplinks

vSwitch1       64        4        64           vmnic2

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  Service Console 2   portgroup7     0           0          vmnic2

  Service Console     portgroup8     0           1          vmnic2

  NFS Access           portgroup4     0          1          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 portgroup6     0          0

 

# esxcfg-vswif -l

Name    Port Group      IP Address        Netmask          Broadcast Enabled   DHCP

vswif1   Service Console     192.168.0.231    255.255.255.0    192.168.0.255 true        false

# esxcfg-vswitch -D "Service Console 2" vSwitch1

# esxcfg-vswitch -l

Switch Name    Num Ports   Used Ports  Configured Ports Uplinks

vSwitch0       32        4        32           vmnic1,vmnic0

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  VM Network          portgroup1     0          1          vmnic0,vmnic1

 

Switch Name    Num Ports   Used Ports  Configured Ports Uplinks

vSwitch1       64        4        64           vmnic2

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  Service Console     portgroup8     0           1          vmnic2

  NFS Access           portgroup4     0          1          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 portgroup6     0          0

 

# esxcfg-vswitch -A "Service Console 2" vSwitch1 # 建立port group Service Console 2

# esxcfg-vswif -a vswif0 -p "Service Console 2” –i 10.0.1.231 –n 255.255.255.0 # 建立vswif0并与Service Console 2绑定

 

[2006-11-24 16:00:45 'Vnic' warning] Generated New MAC address, 00:50:56:47:36:e4 for vswif0

Nothing to flush.

# esxcfg-vswif -l

Name    Port Group      IP Address        Netmask          Broadcast Enabled   DHCP

vswif0   Service Console 2   10.0.1.231        255.255.255.0    10.0.1.255     true        false

vswif1   Service Console     192.168.0.231    255.255.255.0    192.168.0.255 true        false

# esxcfg-vswitch -l

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks

vSwitch0       32          4           32                vmnic1,vmnic0

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  VM Network          portgroup1     0        1           vmnic0,vmnic1

 

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks

vSwitch1       64          5           64                vmnic2

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  Service Console 2   portgroup9     0        1           vmnic2

  Service Console     portgroup8     0        1           vmnic2

  NFS Access          portgroup4     0        1           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 portgroup6     0        0

 

# esxcfg-vswif -d vswif1 # delete Service Console NIC vswif1

Nothing to flush.

# esxcfg-vswitch -D "Service Console" vSwitch1 # delete port group Service Console

# esxcfg-vswif -l

Name     Port Group          IP Address       Netmask          Broadcast

Enabled   DHCP

vswif0   Service Console 2   10.0.1.231       255.255.255.0    10.0.1.255

true      false

# esxcfg-vswitch  -l

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks

vSwitch0       32          4           32                vmnic1,vmnic0

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  VM Network          portgroup1     0        1           vmnic0,vmnic1

 

Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks

vSwitch1       64          4           64                vmnic2

 

  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks

  Service Console 2   portgroup9     0        1           vmnic2

  NFS Access          portgroup4     0        1           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 portgroup6     0        0

# esxcfg-vswitch -A "Service Console" vSwitch0 # vSwitch0上建立port group Service Console

# esxcfg-vswif -a vswif1 -p "Service Console" -i 192.168.0.2 -n 255.255.255.0 # add a new Service Console NIC in

[2006-11-24 16:21:21 'Vnic' warning] Generated New MAC address, 00:50:56:4f:18:29 for vswif1

Nothing to flush.

# service mgmt-vmware restart

阅读(1039) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~