Mon
02 Jun

Setting Static IP on Debian

Written by Brad on 9:50 am | Permalink |

To configure a static IP (an IP that will never change) in debian you must edit the file
/etc/networking/interfaces and put the following:

CODE

# /etc/network/interfaces — configuration file for ifup(8), ifdown(8)# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0

iface eth0 inet static
       address 192.168.1.10
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255
       gateway 192.168.1.1

Filed under Documents, General

Leave a Reply

You must be logged in to post a comment.