[H-GEN] Static IP address

Patrick Nichols pat at mutton.dyndns.org
Wed Oct 30 16:45:58 EST 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Paul Clarke said:

> All my servers have a static IP, My new (first) Debian box has been
> setup with a dynamic IP. How do I change it?

edit /etc/network/interfaces

> The trick is obviously to edit the interfaces file, but I can't find the
> syntax for the line. My interfaces file says:
>
> Auto eth0
> Iface eth0 inet dhcp

"man interfaces" reveals all.

Maybe something like this is the answer:

iface eth1 inet static
     address 192.168.0.1
     network 192.168.0.0
     netmask 255.255.255.0
     broadcast 192.168.0.255

-- 
Regards,
Patrick Nichols



--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list