This is a premium alert message you can set from Layout! Get Now!

Specify default gateway

Anup
0

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).


Post a Comment

0 Comments

Please Select Embedded Mode To show the Comment System.*

Post a Comment
To Top