Friends, I'm stuck up with problem regarding to network configuration to make my Ubuntu 14.04 server machine as internet gateway in a LAN, and I am a relatively newbie in this regard.
My scenario is as follows.
ISP Address 59.X.X.10
ISP Gateway 59.X.X.1 (as seen from modem router)
Netmask 255.255.255.255 ( " )
Modem Address : 192.168.1.1
I edited the /etc/network/interface
file as:
auto eth0 iface eth0 inet static address 59.X.X.10 netmask 255.255.255.255 gateway 59.X.X.1 network 59.X.X.0 broadcast 59.X.X.255 dns-nameservers 8.8.8.8 4.4.4.4 auto eth1 iface eth1 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255
Now when I save and restart the service, I cannot even ping to 192.168.1.1 or get internet connection from this server machine itself. I also tried to change gateway of eth0 to 192.168.1.1 , but no good.
Where am I wrong,? Do I have to make any particular changes to my broadband modem router?
eth0
is wrong, it should be255.255.255.0
. Also, you don't really need to definenetwork
andbroadcast
, they're calculated automatically, so just don't put them. Lesser points of failure. Also, what's the output ofifconfig -a
? You can edit your question by clicking on the smalledit
link right underneath it.