HOME > > Specify default gateway

Specify default gateway

Anup - Tuesday, October 4, 2022

specifying the default gateway to some dummy ip address (same subnet) in both virtual machines. 

$ vi /etc/defaultrouter and add the IPADDRESS of your router. 

EXAMPLE: 

vi /etc/defaultrouter 
192.168.157.100
 
reboot to test. or netstat -r  (This will show the current routing table) 
 
Another Example: route add destination gateway 
Example:

# route add default 192.168.157.100 
 
netstat –r (This will now show your 'new' default gateway).


Contact me

Get in Touch

Need to get touch with me? Please fill out the form with your enquiry.

Name
Anup Srivastav
Address
Lucknow - Utter Pradesh
Email
myindiandba@gmail.com
Message me