mikepolniak wrote:
On 17:32 Thu 10 Nov , kamaraju kusumanchi wrote:
My computer is behind a router (linksys BEFSR41). The computer and the
router are connected by ethernet cable (ie no wireless). Every time I
run, 'sudo dhclient', the IP address assigned to the computer is
different. For example, sometimes I get 192.168.1.101, 192.168.1.100,
192.168.1.102 etc., Is there any way to always get the same IP address
assigned when I run dhclient? If dhclient cannot do this, are there any
other alternatives?
Just set up /etc/dhclient.conf with a line to set the address, then it
will always create an alias for the dhcp address that is 192.168.1.101
alias {
interface "eth0";
fixed-address 192.168.1.101;
option subnet-mask 255.255.255.255;
}
Thanks. That worked perfectly. This is a much better & elegant solution.
raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]