| 0 comments ]

By creating interface configuration, ip address, and gateway configuration will remain when machine reboot.  In Debian, this configuration can be writen in configuration file name "interfaces" in directory "/etc/network/".  The configuration file will have like this:


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 10.10.10.10
        netmask 255.255.255.0
        network 10.10.10.0
        broadcast 10.10.10.255
        gateway 10.10.10.1

Fill address, netmask, network, broadcast, and gateway with your IP Address.  Also, if you want browse, you need add DNS configuration by creating file "/etc/resolv.conf", with configuration like this:

nameserver 10.10.10.2
nameserver 10.10.10.5

0 comments

Post a Comment