ESXi Static IP setup with gateway on different subnet
Posted
by
Erik Nelson
on Server Fault
See other posts from Server Fault
or by Erik Nelson
Published on 2011-01-13T16:53:24Z
Indexed on
2011/01/13
17:55 UTC
Read the original article
Hit count: 290
I've got an ESXi server that I'm trying to assign a static IP to. I'm having trouble setting the gateway because (I presume) the gateway is on a different subnet.
I've been able to accomplish this task on normal Linux servers by doing the following:
route add 172.50.99.254 eth0
route add -net default gw 172.50.99.254 eth0
Now using the GUI config tools for ESXi I've tried setting the following
IP: 172.50.5.151
Netmask: 255.255.252.0
Gateway: 172.50.99.254
The gateway does not stick, and when I try to add the gateway manually using esxcfg-route it says it has no route to the gateway IP. How can I get this static IP set correctly? (I don't have any control over the network setup).
© Server Fault or respective owner