Re: Network config easy question
On Mon, Dec 25, 2000 at 02:27:53PM -0800, Robin Rowe wrote:
> Dumb question, how do I set the IP address, netmask, gateway, and dns host
> on Debian? The docs say that I should edit a file named 'network' but I
> don't find any such file.
/etc/network/interfaces is where you may want to look. Here's mine as
an example (with one ethernet card):
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian
# installation
# (network, broadcast and gateway are optional)
iface eth0 inet static
address 172.16.0.2
netmask 255.255.255.0
network 172.16.0.0
broadcast 172.16.0.255
# gateway 172.16.0.1
As an earlier respondent said, "man interfaces" is useful.
DNS hosts are specified in /etc/resolv.conf. "man resolv.conf" is
useful here.
--
Terry Boon, Hertfordshire, UK
terry@counterfactual.org
Reply to: