Debian - Network Configuration

Directory configuration files container  is /etc/network, here you find all file used by ifup and ifdown command to manage the network interfaces.
A single file /etc/network/interfaces to setting up all interfaces, follow a example:
eva:/etc/network# cat interfaces
Configuration options for loopback
auto lo
iface lo inet loopback
Configuration options for eth0
auto eth0
iface eth0 inet dhcp

File/etc/network/options contain configuration string to enable/disable network parameters at kernel runtime as ip_forward or syncookies,Example:
eva:/etc/network# cat options
ip_forward=no
spoofprotect=yes
syncookies=no

You can manage network with /etc/inet.d/networking script  or ifup / ifdown commands and current state of network interfaces are stored in /etc/network/ifstate.
You can setting up hostname editing the /etc/hostname file and mapping ip and hostname with  /etc/hosts, if you want setting a DNS, how in all UNIX  system, edit /etc/resolv.conf.

Privacy Policy