VMware Cloud Community
guitounet
Contributor
Contributor
Jump to solution

ping throug vmnic interface

Hello guys,

is there a way to test/ping throug a specific vmnic to test network layer and vlan configuration. Or I have to play with passive/active interfaces on a port group ?

I know there is a way to specify vmkernel to use with vmkping command. But it is not what I want to achieve, this way do not use a specific vmnic interface.

thanks for your help !

Reply
0 Kudos
1 Solution

Accepted Solutions
hussainbte
Expert
Expert
Jump to solution

There is no way to send the ICMP request through a particular nic if the vSwitch has more than 1 vmnic

you will have to play with active/passive nics.

If you are looking to check the vLANs available on a particular nic you can use below command and check.

its pretty helpful.

vim-cmd hostsvc/net/query_networkhint | less

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/

View solution in original post

Reply
0 Kudos
4 Replies
hussainbte
Expert
Expert
Jump to solution

There is no way to send the ICMP request through a particular nic if the vSwitch has more than 1 vmnic

you will have to play with active/passive nics.

If you are looking to check the vLANs available on a particular nic you can use below command and check.

its pretty helpful.

vim-cmd hostsvc/net/query_networkhint | less

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
Reply
0 Kudos
guitounet
Contributor
Contributor
Jump to solution

thank you for this command, it show usefull informations on connected switches.

But this is not providing a way to check the network-flow/vlan communication. So i'll play with active/passive ifaces.

Bye.

Reply
0 Kudos
SterlingHealthc
Contributor
Contributor
Jump to solution

If you create a VMKernel Port on the Switch with a vnic.  You can use ping -I vmk3 10.10.10.2.  -I specifies the outgoing interface to use.  So if the VMKernel Port is vmk2 that you want to test.. Specify vmk2.

Of course you'll need to enable the SSH service and log in to the ESXI host to do this from.

aweichenhain
Contributor
Contributor
Jump to solution

that's for the virtual vmkernel interface.

NOT for a specific physical adaptor.

A vmk can have multiple physical interfaces and afaik there is no way to tell the esx which path to go...

Reply
0 Kudos