Route Commands on ESXi, VCSA, Linux & Windows

August 28, 2019 Jordansphere Linux

Sample route commands 

 

Windows

Show routing table

route print

Add a persistent route

ROUTE -p ADD 10.10.129.0 MASK 255.255.255.0 10.5.72.254

 

ESXi

Show routing table

esxcfg-route -l 

Show routing table for specific stack

esxcfg-route -l -N (stack name)

Add route

esxcli network ip route ipv4 add --gateway 10.5.72.254 --network 10.10.129.0/24

 

VCSA

Show routing table

ip route show

Add route

route add -net 10.10.129.0 netmask 255.255.255.0 gw 10.5.72.254

 

Linux (CentOS)

Show routing table

route -n

Add a temporary static route

ip route add 10.10.129.0/24 via 10.5.72.254 [dev eth0]

Add permenant static route

vi /etc/sysconfig/network-scripts/route-{interface}
eg
vi /etc/sysconfig/network-scripts/route-eth0
Add Command:
ip route add 10.10.129.0/24 via 10.5.72.254 [dev eth0]

 

routing table ESxi, routing table Linux, routing table VCSA, routing table Windows, static route Centos,

Powered by WordPress. Designed by elogi.