Syntax: esxcfg-vswif
Options:
-a | Add vswif, requires IP parameters. Automatically enables interface. | ||
-d | Delete vswif. | ||
-l | List configured vswifs. | ||
-e | Enable this vswif interface. | ||
-s | Disable this vswif interface. | ||
-p | Set the portgroup name of the vswif. | ||
-i | The IP address for this vswif or specify DHCP to use DHCP for this address. | ||
-n | The IP netmask for this vswif. | ||
-b | The IP broadcast address for this vswif. (not required if netmask and ip are set) | ||
-c | Check to see if a virtual NIC exists. Program outputs a 1 if the given vswif exists, 0 otherwise. | ||
-D | Disable all vswif interfaces. (WARNING: This may result in a loss of network connectivity to the Service Console) | ||
-E | Enable all vswif interfaces and bring them up. | ||
-r | Restore all vswifs from the configuration file. (Internal use only) | ||
-h | Displays command help. |
Note: You can set the Service Console default gateway by editing the /etc/sysconfig/network file or through the VI Client under Configuration, DNS & Routing.
esxcfg-vswif examples:
Change your Service Console (vswif0) IP and Subnet Mask:
esxcfg-vswif -i 172.20.20.5 -n 255.255.255.0 vswif0
Add a Service Console (vswif0):
esxcfg-vswif -a vswif0 -p "Service Console" -i 172.20.20.40 -n 255.255.255.0
Keine Kommentare:
Kommentar veröffentlichen