User Tools

Site Tools


virtualization:vmware:67:netw_cli_01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
virtualization:vmware:67:netw_cli_01 [2019/10/25 05:05] rpleckovirtualization:vmware:67:netw_cli_01 [2019/10/25 05:14] (current) rplecko
Line 1: Line 1:
-=== Managing Networking from ESXy CLI ===+=== Managing Networking from ESXi CLI ===
  
-List port groups currently associated with a virtual switch.+==Vmkernel IP interfaces== 
 +<code>esxcli network ip interface list</code> 
 +==Remove /add vmk0 interface== 
 +<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> +==Switches== 
-esxcli <conn_options> network vswitch standard portgroup list +<code>esxcli network vswitch standard list</code> 
-</code>+==Switch remove / add== 
 +<code>esxcli network vswitch standard remove --vswitch-name=vSwitch0</code> 
 +<code>esxcli network vswitch standard add --vswitch-name=sw0</code>
  
-The command lists the port group name, associated virtual switch, active clients, and VLAN ID. +==Portgroups== 
- +<code>esxcli network vswitch standard portgroup list</code>
-Add a port group. +
- +
-<code> +
-esxcli <conn_options> network vswitch standard portgroup add --portgroup-name=<name> --vswitch-name=vSwitch1 +
-</code> +
- +
-Delete one of the existing port groups. +
- +
-<code> +
-esxcli <conn_options> network vswitch standard portgroup remove --portgroup-name=<name> --vswitch-name=vSwitch1 +
-</code> +
- +
-Vmkernel ip interfaces  +
-  esxcli network ip interface list +
-Remove /add vmk0 interface +
-  esxcli network ip interface remove --interface-name=vmk0 +
-  esxcli network ip interface add --interface-name=vmk0 --dvs-name=DVSWITCHNAME --dvport-id=PORT_ID +
- +
-Switches +
-  esxcli network vswitch standard list +
-Switch remove / add +
-  esxcli network vswitch standard remove --vswitch-name=vSwitch0 +
-  esxcli network vswitch standard add --vswitch-name=sw0 +
- +
-Portgroups +
-  * List port groups currently associated with a virtual switch. +
-  esxcli network vswitch standard portgroup list+
      
-Portgroup remove / add +==Portgroup remove / add== 
-  esxcli network vswitch standard portgroup add --portgroup-name=vmn_10 -v=sw0 +<code>esxcli network vswitch standard portgroup add --portgroup-name=vmn_10 -v=sw0</code> 
-  esxcli network vswitch standard portgroup remove --portgroup-name=vmn_10 -v=sw0+<code>esxcli network vswitch standard portgroup remove --portgroup-name=vmn_10 -v=sw0</code>
  
-Network Sdapters +==Network Adapters== 
-  esxcli network nic list+<code>esxcli network nic list</code>
  
  
virtualization/vmware/67/netw_cli_01.1571979953.txt.gz · Last modified: 2019/10/25 05:05 by rplecko