First you can add a route with putty or console:
route add -net 172.16.254.0 netmask 255.255.255.0 gw 10.20.1.222
After restart your route is gone, so you need to add a static route.
Add the following line to /etc/rc.local so that route is set on boot:
/sbin/route add -net 172.16.254.0 netmask 255.255.255.0 gw 10.20.1.222
Route settings:
Source: VMware KB
Change the ip address from the ESX 4.0 server it’s possible but not without danger. Make sure you’ve got ILO configured or can access directly to the server console.
Follow the next steps to change the ip address from mij vSphere hosts:
1. Put your ESX host in Maintenance Mode and disconect it from Virtual Center.
2. Give the following command:
esxcfg-vswif -a vswif0 -p Service\ Console -i 172.16.254.203 -n 255.255.255.0 -b 172.16.254.253
-i is the new IP adresse
-n is your new subnet
-b is your broadcast

Read more…
Tijdens het toevoegen van een route op Windows 2008 (Vista) kan je de volgende foutmelding krijgen;
“The requested operation requires elevation.”
Deze melding wordt veroorzaakt wanneer het zeer geliefde fenomeen User Account Control ingeschakeld is.
Dit kan uitgeschakeld worden onder:
Control Panel > User Accounts > Turn User Account Control On or Off
Na uitschakelen dient het systeem herstart te worden. Vervolgens kan de route worden toegevoegd.
The following scenario describes requirements for multiple subnets:
- You have separate subnets and for each subnet there is service console.
- You use each subnet for file copying or other purposes.
- The network consists of three subnets. Each subnet has its own gateway.
For example, VMware Converter can access ESX to store newly converted virtual machines.
If routes are added in rc.local as per Adding static route to ESX host for extra Service Console when service network restart is executed, all added routes disappear.
To create a route file for multiple subnets on the service console network TCP/IP stack:
1. Log in to the ESX host command line as root.
2. Run the following command to generate and edit the route file:
nano /etc/sysconfig/network-scripts/ route-vswifX
Where X represent interface number.
3. Input the entries as per the following sample:
GATEWAY0=10.21.51.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.55.0
GATEWAY1=10.21.51.2
NETMASK1=255.255.255.0
ADDRESS1=192.168.50.0
GATEWAY2=10.21.51.3
NETMASK2=255.255.255.0
ADDRESS2=10.10.40.0
4. If gateway does not provide proper connectivity as expected, replace GATEWAY X with GATEWAY X=0.0.0.0.
Restart the network and new routes are added.
Check out the complete knowledge base article after the jump