I'm helping a friend to set up a media server for his new house. I've installed Debian 7.2.0 and I'm trying to get the network up and running.The physical set-up is like this:         Other wireless devices                    ^                   |                        Server:Internet <---> Wireless Router <---------> eth0 (built-in motherboard)                                   UTP     eth1 (extra card) <-----> PC conn. to TV                                                               UTPI would like the server to have a static IP address so it can easily be found. Furthermore, the server should share it's internet connection to the PC connected to the TV (running Windows 8).I got it working yesterday using one of the built-in GUI configuration tools. However it stopped working today (possibly due to a restart or plugging in/out the cables) after moving the server to the attic.I've read and tried a lot of tutorials, but get stuck because I do not understand them or because they are meant for different distributions.What steps should I take to:Reset or get rid of any settings I made in the GUI/iptables/etc.?Give the server a static IP?And make it share it's internet connection to the PC on eth1?Make it all permanent?
How to set up server networking on Debian?
debian;networking
Start by apt-get uninstall networkmanager on the server. Possibly you need to install the bridge-utils package, but I am not sure if it is needed (can't hurt).Then set up bridging to make the two network server interfaces act like one (and forward everything), by editing the /etc/network/interfaces file (assuming your wireless router's IP is 192.168.1.1):  auto br0iface br0 inet static  bridge_ports eth0 eth1  address 192.168.1.5  netmask 255.255.255.0  network 192.168.1.0  gateway 192.168.1.1Now that the server isn't using DHCP to get network information, you need to configure the nameserver manually in the /etc/resolv.conf file:nameserver 8.8.8.8The PC conn. to TV should then be able to get an IP address via DHCP from your router.(You can tweak the setup on the server to use DHCP too, if you configure the wireless router to always give your server's MAC address the same IP address. Then the nameserver will also be configured automatically via DHCP.)