| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| virtualization:vmware:67:netw_cli_01 [2019/10/25 05:11] – rplecko | virtualization:vmware:67:netw_cli_01 [2019/10/25 05:14] (current) – rplecko |
|---|
| === Managing Networking from ESXy CLI === | === Managing Networking from ESXi CLI === |
| |
| Vmkernel ip interfaces | ==Vmkernel IP interfaces== |
| <code>esxcli network ip interface list</code> | <code>esxcli network ip interface list</code> |
| Remove /add vmk0 interface | ==Remove /add vmk0 interface== |
| <code>esxcli network ip interface remove --interface-name=vmk0</code> | <code>esxcli network ip interface remove --interface-name=vmk0</code> |
| <code>esxcli network ip interface add --interface-name=vmk0 --dvs-name=DVSWITCHNAME --dvport-id=PORT_ID</code> | <code>esxcli network ip interface add --interface-name=vmk0 --dvs-name=DVSWITCHNAME --dvport-id=PORT_ID</code> |
| |
| Switches | ==Switches== |
| <code>esxcli network vswitch standard list</code> | <code>esxcli network vswitch standard list</code> |
| Switch remove / add | ==Switch remove / add== |
| <code>esxcli network vswitch standard remove --vswitch-name=vSwitch0</code> | <code>esxcli network vswitch standard remove --vswitch-name=vSwitch0</code> |
| <code>esxcli network vswitch standard add --vswitch-name=sw0</code> | <code>esxcli network vswitch standard add --vswitch-name=sw0</code> |
| |
| Portgroups | ==Portgroups== |
| <code>esxcli network vswitch standard portgroup list</code> | <code>esxcli network vswitch standard portgroup list</code> |
| | |
| Portgroup remove / add | ==Portgroup remove / add== |
| <code>esxcli network vswitch standard portgroup add --portgroup-name=vmn_10 -v=sw0</code> | <code>esxcli network vswitch standard portgroup add --portgroup-name=vmn_10 -v=sw0</code> |
| <code>esxcli network vswitch standard portgroup remove --portgroup-name=vmn_10 -v=sw0</code> | <code>esxcli network vswitch standard portgroup remove --portgroup-name=vmn_10 -v=sw0</code> |
| |
| Network Adapters | ==Network Adapters== |
| <code>esxcli network nic list</code> | <code>esxcli network nic list</code> |
| |
| |