I can't get my linux box access to the internet

jddancks

Reputable
Jul 23, 2014
4
0
4,510
this is debian 7.6

so I edited /etc/network/interfaces, added a static ip:
auto eth0
iface eth0 inet static
address 192.168.0.145
netmask 255.255.255.0
gateway 192.168.0.1

add "eth0=eth0" to /run/network/ifstate to use the ethernet card

its meant to be a webserver so it has a static IP. It runs the Gnome desktop because some really advanced tools require a GUI.

I believe everything is set up like it should be. I can ping it. I can ssh into it from my primary computer.

I think the culprit is my router: linksys E1200. But damn if I should know what to do about it. I did have previous linux box that could use the internet but I didn't do anything special with it. Once the proper configuration was set up it did everything it was supposed to. I upgraded the firmware from 1.0.3 to 1.0.4, the only version that appears to want to work with it. I'm at my last ropes here IDK what else to try or do.

It will access the internet if I configure DHCP. I will double check but that much I believe is true.

I just need to update or install a bunch of packages.
 

jddancks

Reputable
Jul 23, 2014
4
0
4,510
Little whiny linksys doesn't let you have a statically configured box

instead you register a MAC address with an ip, (click DHCP registration on the basic setup tab) and it gets assigned to it when your box sends a DHCP request.