воскресенье, 25 января 2015 г.

VMware ESXi 5.5 Networkin TroubleShooting

To initiate a vmkping test from the console of an ESX Server host:

Connect to the ESX/ESXi host using an SSH session. For information see Tech Support Mode for Emergency Support (1003677) and Using Tech Support Mode in ESXi 4.1 and 5.0 (1017910).

In the command shell, run the command:

# vmkping x.x.x.x

where x.x.x.x is the hostname or IP address of the server that you want to ping.

If you have Jumbo Frames configured in your environment, run the vmkping command with the -s and -d options.

# vmkping -d -s 8972 x.x.x.x

Note: If you have more then one vmkernel port on the same network (such as a heartbeat vmkernel port for iSCSI) then all vmkernel ports on the host on the network would need to be configured with Jumbo Frames (MTU: 9000) too. If there are other vmkernel ports on the same network with a lower MTU then the vmkping command will fail with the -s 8972 option. Here in the command -d option sets DF (Don't Fragment) bit on the IPv4 packet.

In ESXi 5.1 and later, you can specify which vmkernel port to use for outgoing ICMP traffic with the -I option:

# vmkping -I vmkX x.x.x.x

ICMP response behavior has changed in ESXi 5.1. For more information, see Change to ICMP ping response behavior in ESXi 5.1 (2042189).
In releases prior to ESXi 5.1, the host will automatically select the vmkernel port based on the host's vmkernel routing/forwarding table. To display the host's vmkernel routing table, use the esxcfg-route -l command.
Verification of your MTU size can be obtained from a SSH session by using
esxcfg-nics -l

Output should be similar to:

# esxcfg-nics -l
Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description
vmnic0  0000:02:00.00 e1000       Up   1000Mbps  Full   00:50:56:17:0a:60 9000   Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
vmnic1  0000:02:01.00 e1000       Up   1000Mbps  Full   00:50:56:17:0a:65 9000   Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

esxcfg-vmknic -l

Output should be similar to:

# esxcfg-vmknic -l

Interface  Port Group/DVPort   IP Family IP Address                    Netmask         Broadcast   MAC Address          MTU     TSO     MSS       Enabled Type

vmk1       iSCSI  IPv4                       00:50:56:XX:XX:64    9000    65535     true    STATIC

A successful ping response is similar to:

# vmkping
PING server( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=10.245 ms
64 bytes from icmp_seq=1 ttl=64 time=0.935 ms
64 bytes from icmp_seq=2 ttl=64 time=0.926 ms
--- server ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.926/4.035/10.245 ms

Комментариев нет:

Отправить комментарий