Click to See Complete Forum and Search --> : How to set IP using pump?
redss
01-22-2005, 07:36 PM
In slackware I know I can set my box to a specific IP (instead of requesting one via DHCP) by adding the IP to /etc/rc.d/rc.inet1
What is the corresponding way for a Debian box (which uses pump) to decide its own IP?
teeitup
01-22-2005, 08:36 PM
Edit the file /etc/network/interfaces
Should say:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
Using your own numbers make "# The primary network interface" look something like this:
auto eth0
iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
Add your nameservers or your router IP address to /etc/resolv.conf
If you're currently using DHCP to get this information save the information from the
/sbin/ifconfig command and the output of cat /etc/resolv.conf they should give all the information you need.
For more information check out chapter 10 of this document:
Debian Reference Document (http://qref.sourceforge.net/Debian/reference/reference.en.html)
Good Luck,
redss
01-25-2005, 02:48 PM
That worked fine, thank you!
The only thing is, now after a period of inactivity, my ssh connection goes inactive until I ping the ssh client from the server. It seems that pinging from the server "reminds" the server of the IP its supposed to have.
Maybe there is a dhcp daemon running that is resetting the IP? But ps -ef doesn't reveal anything running like dhcpd or pump.
Any ideas?