Networking Forums

Networking Forums > Computer Networking > Linux Networking > HELP: Debian PCMCIA DHCP configuration

Reply
Thread Tools Display Modes

HELP: Debian PCMCIA DHCP configuration

 
 
cpmbfilms@yahoo.com
Guest
Posts: n/a

 
      01-19-2005, 02:59 AM
I have a pcmcia laptop that I am trying to network and cant get dhcp
working.



I have the following hardware

|
cable/modem
|
linksys router
dhcp 192.168.1.x
|
dlink hub
|
*-------------------*
| |
Laptop Windows
pcmcia (192.168.1.101) dhcp



dkpg -l dhcp-client reports:

Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==============-==============-==============================
ii dhcp-client 2.0pl5-11 DHCP Client



I can set up a static ip 192.168.1.xxx and ping either machine and the
router so connections work.

When I set up /etc/pcmcia/network.opts I set everything to null except
DHCP="y"


case "$ADDRESS" in
*,*,*,*)
INFO="Sample private network setup"
# Transceiver selection, for some cards -- see 'man ifport'
IF_PORT=""
# Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
BOOTP="n"
# Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
DHCP="y"
# If you need to explicitly specify a hostname for DHCP requests
DHCP_HOSTNAME=""
# Use PPP over Ethernet (via the pppoe package)? [y/n]
PPPOE="n"
# Use WHEREAMI (via the whereami package)? [y/n]
WHEREAMI="n"
# Host's IP address, netmask, network address, broadcast address
IPADDR=""
NETMASK=""
NETWORK=""
BROADCAST=""
# Gateway address for static routing
GATEWAY=""
# Things to add to /etc/resolv.conf for this interface
DOMAIN=""
SEARCH=""
# The nameserver IP addresses specified here complement the
# nameservers already defined in /etc/resolv.conf. These
nameservers
# will be added to /etc/resolv.conf automatically when the PCMCIA
# network connection is established and removed from this file when
# the connection is broken.
DNS_1=""
DNS_2=""
DNS_3=""
# NFS mounts, should be listed in /etc/fstab
MOUNTS=""
# If you need to override the interface's MTU...
MTU=""
# For IPX interfaces, the frame type and network number
IPX_FRAME=""
IPX_NETNUM=""
# Run ipmasq? [y/n] (see the Debian ipmasq package)
IPMASQ="n"
# Extra stuff to do after setting up the interface
start_fn () { return; }
# Extra stuff to do before shutting down the interface
stop_fn () { return; }
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac



On reboot ifconfig reports:


eth0 Link encap:Ethernet HWaddr 00:80:C7:6E:58:C4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)



Obviously the DHCP client isn't working because I can't ping anything
except "lo" and I don't have any IP for eth0.

I use "cardctl eject 1", then edit /etc/pcmcia/network.opts and set
DHCP="n" and add the line DHCPCLIENT="y". Next I "cardctl insert 1" and
ifconfig and get nothing on eth0. If I reboot I still get nothing. In
fact with the DHCPCLIENT line I lose eth0 alltogether.


Other files I've looked at include:



/etc/hosts:

127.0.0.1 localhost laptop

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts



/etc/resolve.conf: (tried it with and without comment)

#domain vc.shawcable.net
#nameserver 192.168.1.1



/etc/interfaces:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback



I am under the impression I'm supposed to get an IP address from the
router, but that is not happening. I haven't had a lot of luck with
searching the web etc. Any suggestions? Reading material?
Thanks,
Arnie Fufkin (aka)

 
Reply With Quote
 
 
 
 
arniefufkin
Guest
Posts: n/a

 
      01-27-2005, 09:08 PM
I got it figured out...finally!

I stumbled around in the google site for hours, nay...days, then came
across this thing call um, a "syslog"????

Jeez, the things you don't get when you start from scratch!

So, long story short, I looked over the syslog and found:

Jan 26 22:40:23 localhost cardmgr[187]: + ...dhclient
Jan 26 22:40:23 localhost kernel: eth0: media 10BaseT, silicon revision
1
Jan 26 22:40:25 localhost modprobe: modprobe: Can't locate module
net-pf-17
Jan 26 22:40:25 localhost cardmgr[187]: + /sbin/dhclient eth0
>/dev/null 2>&1

Jan 26 22:40:25 localhost dhclient-2.2.x: socket: Address family not
supported by protocol
Jan 26 22:40:25 localhost dhclient-2.2.x: Make sure to set
CONFIG_PACKET=y and CONFIG_FILTER=y in your kernel configuration!
Jan 26 22:40:25 localhost dhclient-2.2.x: exiting.

Yup, my kernel configuration was wrong. Oh, but that was only half of
it. I use "make menuconfig" It was pretty easy to find the setting for
CONFIG_PACKET, set "Packet socket" to "M" under network options. But
the CONFIG_FILTER wasn't what I expected. The 2.4.20 debian kernel has
a "Network packet filtering (replaces ipchains)" setting....that's not
it. The correct one is "Socket Filtering" and should be set to "*". But
in the ".config" file in /usr/src/linux, you can also set them
manually.

So, rebuild kernel, rebuild pcmcia-modules, install them, reboot....all
good. I get 192.168.1.4

Major milestone.

Cheers,
Arnie

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian: eth0 loses network configuration Björn Marschollek Linux Networking 2 03-19-2007 07:53 AM
More lan configuration under Debian Sarge Robert Murr Linux Networking 2 10-10-2004 07:11 PM
LAN configuration - Debian Sarge Robert Murr Linux Networking 15 10-08-2004 05:12 PM
Debian DHCP problem? Chris Linux Networking 5 12-07-2003 03:50 PM
dhcp in Debian Jim Pharis Linux Networking 1 10-30-2003 05:55 PM



1 2 3 4 5 6 7 8 9 10 11