[H-GEN] dhcp issues
Christian -Vic- Bullow
vicomte at optusnet.com.au
Fri Dec 20 19:57:14 EST 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
----- Original Message -----
From: "Sandra Milne" <silne at optusnet.com.au>
To: <general at lists.humbug.org.au>
Sent: Saturday, December 21, 2002 9:33 AM
> From /etc/dhclient.conf (slightly mangled to remove sensitive information)
>
> send host-name "foobar";
Is this needed any more, since september I have not included this or any
client ID or similar in my dh configurations. I am also using pump quite
happily.
> alias {
> interface "eth0";
> }
> lease {
> interface "eth0";
> }
>
> From /etc/dhcpd.conf (don't care all that much about my hostnames and mac
> addresses)
>
> option domain-name "localhost";
Bad bad bad. So very bad. *shudder*
> option domain-name-servers 192.168.0.1;
> option subnet-mask 255.255.255.0;
> default-lease-time 6000;
> max-lease-time 72000;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.150 192.168.0.170;
> option broadcast-address 192.168.0.255;
> option routers 192.168.0.1; }
>
> # The other subnet that shares this physical network (OptusNet Cable)
> subnet 211.28.173.0 netmask 255.255.255.0 {
> option broadcast-address 211.28.173.255; }
Personally and correct me if I am wrong guys, I would trim this line to:
subnet 211.28.173.0 netmask 255.255.255.0 { }
> host trousers {
> hardware ethernet 00:e0:29:9d:b4:11;
> fixed-address 192.168.0.69; }
> host thor {
> hardware ethernet 00:10:5a:7a:87:77;
> fixed-address 192.168.0.68; }
I know it sounds silly, but check your MAC address's. Its amazing what a few
changes and swaps of NIC's can do to a network which relies on MAC related
IP assignments.
>
> From /etc/network/interfaces
>
> auto lo
> iface lo inet loopback
>
> auto eth1
> iface eth1 inet dhcp
>
> auto eth0
> iface eth0 inet static
> address 192.168.0.1
> netmask 255.255.255.0
>
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet static
address 192.168.103.10
netmask 255.255.255.0
iface eth1 inet dhcp
hostname hermes
Try putting the static ip's before any DHCP, some configurations I have seen
have been fickle this way. I don't for the life of me know why.
> It's probably something really dumb that I've done,
Doubt it.
> but I can't for the life of me figure it out. I had a look at man pages
and still came away
> mystified.
SOP afaik.
Though one question. Why does DHclient list Eth0 as the ethernet you wish
you gain an IP for, and in /interfaces you have Eth0 as your static IP and
Eth1 as your dynamic ? Drop dhclient, use pump. My recommendation. Or change
your client conf.
Vic
--
* 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