VMware Cloud Community
Ravi1987
Contributor
Contributor

secondry default gateway address for esx server

hi ,

i currenlty i m using vcms server ip address as default gateway address in my both esx server for getting HA .because on my permanent default gateway address icmp is blocked hence they will not reply on ping request.

so i m using vcms ip as default gateway and getting HA functional...now from different subnet /vlan my esx is not accessible hence i neet to add route on bot esx server's .

if i add secondry gateway address on both esx then will they create some issue on HA .

Ravi
Tags (1)
0 Kudos
7 Replies
kjb007
Immortal
Immortal

You can not have multiple default gateways. You can only have one default gateway. What you want is to add an additional route for other traffic. That can be done using the route command.

-KjB

VMware vExpert

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
Ravi1987
Contributor
Contributor

Thanks for your reply.

please tell me the command and where i need to put that command.

Ravi
0 Kudos
kjb007
Immortal
Immortal

On the ESX service console, you can use 'route add -net 10.0.0.0 netmask 255.255.255.0 dev vswif0'

-KjB

VMware vExpert

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
Ravi1987
Contributor
Contributor

thanks for reply.

do i need to change any directory like cd /etc/rc.d.......

or just login to sc and run the command.

Ravi
0 Kudos
kjb007
Immortal
Immortal

As long as you're root, you do not need to change anywhere.

-KjB

VMware vExpert

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
Ravi1987
Contributor
Contributor

thanks for helping me

i use below syntax and things are working

route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.168.72

Ravi
0 Kudos
kjb007
Immortal
Immortal

You're welcome. Don't forget to leave points for helpful / correct posts!

-KjB

VMware vExpert

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos