Networknet.nl Blog

Stay Connected

VMWare ESX: Service Console IP address

with 5 comments

There are couple command line tools that VMWare ESX offers when the server has been installed with the “Service Console” mode (without i). In the following example I will explain and show how to create new vSwitch; link a physical network interface and assign a IP address for your “Service Console” management interface.

[root@LAB-ESX-01 root]# esxcfg-vswitch -a vSwitch0 –> This will create new virtual switch

[root@LAB-ESX-01 root]# esxcfg-vswitch -L vmnic0 vSwitch0 –> This will link my first physical network interface to vSwitch0

Result of the two commands:

image

As you can see vmnic0 with 1000Mbps has been associated with vSwitch0. Now I would like to have a “Service Console” port group sitting on this virtual switch.

[root@LAB-ESX-01 root]# esxcfg-vswitch -A Service\ Console vSwitch0 –> This will create new port group named Service Console. Creating new port group on a virtual switch is nothing more than assigning or defining a interface on a switch. Now I would like to assign a L3 IP address on this interface/portgroup.

[root@LAB-ESX-01 root]# esxcfg-vswif -a vswif2 -p “Service Console” -i 192.168.1.2 -n 255.255.255.0 -b 192.168.1.255 –> This will create new L3 interface which is linked to the Service Console port group with an static IP address. ESX server will generate new L2 mac address and assign this to the vswif2 interface.

[2008-09-12 13:22:21 'Vnic' warning] Generated New MAC address, 00:50:56:40:49:f4 for vswif2

Target result:

image

Just using two built-in esx configuration command line tools I was able to create and assign new service console ip address on a special physical management network interface.

Summary:

  • esxcfg-vswitch -a switch_name
  • esxcfg-vswitch -L physical_nic switch_name
  • esxcfg-vswitch -A Service\ Console switch_name
  • esxcfg-vswif -a vswif2 -p “Service Console” -i 192.168.1.2 -n 255.255.255.0 -b 192.168.1.255

Related links:

Written by Ivan Versluis

September 12th, 2008 at 8:33 pm

Posted in ESX

Tagged with , , , , ,

5 Responses to 'VMWare ESX: Service Console IP address'

Subscribe to comments with RSS or TrackBack to 'VMWare ESX: Service Console IP address'.

  1. that is a great post, it really helped me. thanks

    ekke85

    ekke85

    12 Oct 08 at 2:11 pm

  2. It a great post,
    is there a way to connect a service console to a vswitch without use a physical nic? I can do it with no problem from the VC

    Nimrod

    3 Feb 09 at 11:21 am

  3. Great post.. Thanks

    saravanan r

    2 Mar 09 at 1:59 pm

  4. Thanks where helpful one..

    Santosh

    12 Jul 09 at 11:56 am

  5. I love this site! Thank you sooo much for all your posts!

    club penguin

    30 Dec 09 at 9:50 pm

Leave a Reply