分类:
2006-11-24 22:02:21
本文讲述的是如何将Service Console port group由vSwitch1移动到vSwitch0的过程,这个过程用CLI完成是比较合适的, 也许是唯一的方法。由于只有1个Service 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
[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
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
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:
Nothing to flush.
# service mgmt-vmware restart