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)
|