Debian Network Setup

From Edgar BV Wiki
Revision as of 06:58, 1 April 2019 by Red (talk | contribs) (Created page with "pdnsd - use resolvconf configuration Set up networking in /etc/network/interfaces <pre> # The loopback network interface auto lo iface lo inet loopback # The primary network...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

pdnsd - use resolvconf configuration

Set up networking in /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#auto eth0
iface eth0 inet static
        address 192.168.0.112
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
#       gateway 192.168.0.1
        dns-nameservers 213.75.63.36 213.75.63.70 192.168.0.1
#       dns-nameservers 192.168.0.1 192.168.0.2
#       dns-search mynet.int internal.mynet.int ops.mynet.int

auto eth1
iface eth1 inet static
        address 188.204.140.195
        netmask 255.255.255.224
        network 188.204.140.192
        broadcast 188.204.140.223
        gateway 188.204.140.193
        dns-nameservers 213.75.63.36 213.75.63.70 192.168.0.1

NB for dns-search or dns-domain lines to work in the above stanzas you need to have the resolvconf package installed. Otherwise you will have to add the following to /etc/resolve.conf

search mynet.int
search internal.mynet.int
...

Debian NetworkConfiguration wiki page

Debian reference manual Chapter 5. Network setup