default gateway on different subnet
Hello list and net gurus,
I am in a big confusion and searching an answer to calm down my mind.
I have my eth0 has following configuration
` ` `
IP 192.168.1.100
mask 255.255.255.0
gateway 192.168.1.1
` ` `
There is also another gateway 192.168.2.1 which provides a different ISP connection. Both the gateways are connected to same HUB. I have changed mask as 255.255.0.0 to access 192.168.2.1 and also set it as default gateway by route command. So now my configuration is
` ` `
IP 192.168.1.100
mask 255.255.0.0
gateway 192.168.2.1
` ` `
I can now access the net (through 192.168.2.1) as well as the PC under the subnet 192.168.2.0 as well as the PCs under 192.168.1.0 "route -n" shows that default gateway is now 192.168.2.1 Every thing is fine and I have the liberty to change the gateway as required. But a question in mind. Is there any wrong effect to set the mask as 255.255.0.0 ? Kindly explain a little.
Thanks
|