[lug] DHCP whining...
Carl Wagner
carl.wagner at level3.com
Wed Apr 12 10:22:54 MDT 2000
A friend of mine helped me set up my HP OmniBook 4150 laptop. What we did was
to create/change the /etc/pcmcia/network.opts file. I made one for a fixed ip
address and one for DHCP. See included files.
Give this a try (for the fixed IP one you will need to edit to match your
addresses).
Just rename whatever one your want to "network.opts" and copy to /etc/pcmcia
This may not be an optimal solution but it works. If any one has a better
solution
I would like to hear about it.
Carl.
Ralf Mattes wrote:
>
> On Wed, 12 Apr 2000, Alan Robertson wrote:
>
> > Ralf Mattes wrote:
> > >
> > > [...]
> > >
> > > > >
> > > > > DHCP needs to send out his request to 255.255.255.255 (as the
> > > > > message tells you). Is this address reachable via eth0 (you didn't
> > > > > show us the routing). You need at least a host route to this
> > > > > address.
> > > > >
> > > > > Ralf
> > > >
> > > > I don't remember any routes like that at that time, but dhcp *has to* to
> > > > do it's magic on an interface basis, so it shouldn't *need* a route.
> > > > And, if that were the problem wouldn't it give "no route to host"?
> > >
> > > Well, dhcp is somehow 'between' the layers. I remember this
> > > route from the docs for dhcpd. AFAIK it's not possible to
> > > send (and receive) pakets unless an interface is configured
> > > (correct me if i'm wrong). I had the same problem recently
> > > (during the GNOME conference in Paris); my 'quick hack'
> > > solution was to give my eth0 a temporary ip-address and then
> > > run 'dhclient' -- pretty ugly but it worked.
> > >
> > > > sudo /sbin/route add -host 255.255.255.255 eth0
> > > > SIOCADDRT: No such device
> > > >
> > > > This is what happens when I tried this...
> > >
> > > Works for me :-/ What Kernel are you running?
> > >
> >
> >
> > Linux kathyamy 2.2.13 #1 Mon Nov 8 15:37:25 CET 1999 i686 unknown
>
> Interesting! I just tried it on a 2.2.7 box and indeed it
> doesn't work (the box it works on is a 2.0.38). Strange ...
>
> Ralf
>
> *-------------------------------------------------------------------*
> | | |==
> | Ralf Mattes | rm at schauinsland.com |==
> | Programming, Administration | rm at ns.aura.de |==
> | | |==
> *-------------------------------------------------------------------*==
> ====================================================================
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
-------------- next part --------------
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO. In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
# Transceiver selection, for some cards -- see 'man ifport'
IF_PORT=""
# Use BOOTP (via /sbin/bootpc)? [y/n]
BOOTP="n"
# Use DHCP (via /sbin/dhcpcd)? [y/n]
DHCP="y"
# Use /sbin/pump for BOOTP/DHCP? [y/n]
PUMP="n"
# Host's IP address, netmask, network address, broadcast address
IPADDR=""
NETMASK=""
#NETMASK="255.255.255.0"
NETWORK=""
#NETWORK="1.2.0.0"
BROADCAST=""
#BROADCAST="1.2.255.255"
# Gateway address for static routing
GATEWAY=""
#GATEWAY="1.2.0.1"
# Things to add to /etc/resolv.conf for this interface
DOMAIN=""
SEARCH=""
DNS_1=""
DNS_2=""
DNS_3=""
# NFS mounts, should be listed in /etc/fstab
MOUNTS=""
# For IPX interfaces, the frame type and network number
IPX_FRAME=""
IPX_NETNUM=""
# Extra stuff to do after setting up the interface
start_fn () { return; }
# Extra stuff to do before shutting down the interface
stop_fn () { return; }
;;
esac
-------------- next part --------------
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO. In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
# Transceiver selection, for some cards -- see 'man ifport'
IF_PORT=""
# Use BOOTP (via /sbin/bootpc)? [y/n]
BOOTP="n"
# Use DHCP (via /sbin/dhcpcd)? [y/n]
DHCP="n"
# Use /sbin/pump for BOOTP/DHCP? [y/n]
PUMP="n"
# Host's IP address, netmask, network address, broadcast address
IPADDR="10.1.73.20"
NETMASK="255.255.254.0"
#NETMASK="255.255.255.0"
NETWORK="10.1.72.0"
#NETWORK="1.2.0.0"
BROADCAST="10.1.73.255"
#BROADCAST="1.2.255.255"
# Gateway address for static routing
GATEWAY="10.1.72.1"
#GATEWAY="1.2.0.1"
# Things to add to /etc/resolv.conf for this interface
DOMAIN="l3.com"
SEARCH=""
DNS_1="10.1.19.253"
DNS_2="10.5.0.10"
DNS_3=""
# NFS mounts, should be listed in /etc/fstab
MOUNTS=""
# For IPX interfaces, the frame type and network number
IPX_FRAME=""
IPX_NETNUM=""
# Extra stuff to do after setting up the interface
start_fn () { return; }
# Extra stuff to do before shutting down the interface
stop_fn () { return; }
;;
esac
More information about the LUG
mailing list