[TUT] Setting a static internal IP (Windows and Linux) - Printable Version +- howtothings.co.uk (https://www.howtothings.co.uk) +-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4) +--- Forum: Hardware, Networking and Wireless (https://www.howtothings.co.uk/forumdisplay.php?fid=11) +--- Thread: [TUT] Setting a static internal IP (Windows and Linux) (/showthread.php?tid=207) |
[TUT] Setting a static internal IP (Windows and Linux) - Mark - 08-07-2010 This is how to set an internal static IP on your home network. This is of use when you're port forwarding on a DHCP network. Windows XP Start Control Panel Network and Internet Connections Network Connections Right click "Local Area Connection" and click properties In the "This connection uses the following items:" box, double click "Internet Protocol (TCP/IP). Then select, "Use the following IP address:" IP address: 192.168.2.100 Subnet mask: 255.255.255.0 Default gateway: 192.168.2.1 To find your DNS servers, open cmd and type "ipconfig /all" "Use the following DNS server addresses:" Preferred DNS server: Alternate DNS server: Click OK, OK then you're good to go. Linux Running as root Code: sudo su Your main network configuration file is /etc/network/interfaces Code: nano /etc/network/interfaces Find and remove the dhcp entry Code: iface eth0 inet dhcp Add the new network settings Code: iface eth0 inet static Save and close the file, then restart the network Code: sudo /etc/init.d/networking restart Defining new DNS servers Code: sudo nano /etc/resolv.conf You need to remove old DNS server assigned by DHCP server: Code: search Belkin Save and close the file. I recommend keeping a backup of the files incase something goes horribly wrong. |