From: fredrik.holmberg@telia.com (Fredrik Holmberg) Subject: Re: 1.9.20 Newsgroups: floppyfw.general Date: Mon, 1 Apr 2002 15:19:07 +0000 (UTC) Organization: http://florian-amrhein.de/newsportal/ Thomas Lundquist wrote: > friartek@aurora.debian.org (Jim Murphy) writes: > > I guses I'll try to setup dhcpcd for now. > does this work now? > Thomas. > -- > Life is a beach, surf. To Change to old DHCP client. Download dhcpcd.bz2 to the packages directory. Change in network.ini to old dhcp settings: Orginal: then echo "Booting udhcpc" echo "OUTSIDE_DEVICE=${OUTSIDE_DEV}" > /etc/outside.info if /bin/udhcpc -n -s /etc/udhcpcrenew.sh -H ${HOSTNAME} -i ${OUTSIDE_DEV}; then . /etc/outside.info else echo "duh!" # Or some more useful error handling fi else Replace with Old dhcp settings: then echo "Booting dhcpcd" mv /etc/dhcpc/dhcpcd-ethX.exe /etc/dhcpc/dhcpcd-${OUTSIDE_DEV}.exe 2> /dev/null echo "OUTSIDE_DEVICE=${OUTSIDE_DEV}" > /etc/outside.info if /bin/dhcpcd -d -h ${HOSTNAME} ${OUTSIDE_DEV}; then tmphostname=${HOSTNAME} tmpdomain=${DOMAIN} . /etc/dhcpc/dhcpcd-${OUTSIDE_DEV}.info if [ ! ${tmphostname} = "" ]; then HOSTNAME=${tmphostname} DOMAIN=${tmpdomain} fi OUTSIDE_IP=${IPADDR} else echo "duh!" # Or some more useful error handling fi else Add in firewall.ini to grab IP address because outside.ini is almost empty: ....snip # Firewall setup. # # This is a conversion of the ipchains/ipmasqadm based firewall.ini # Setting up iptables # /etc/config # Getting info from dhcpcd to outside.info /etc/dhcpc/dhcpcd-${OUTSIDE_DEV}.info echo "OUTSIDE_IP=${IPADDR}" >> /etc/outside.info echo "OUTSIDE_GATEWAY=${GATEWAY}" >> /etc/outside.info echo "OUTSIDE_NETMASK=${NETMASK}" >> /etc/outside.info echo "OUTSIDE_NETWORK=${NETWORK}" >> /etc/outside.info echo "OUTSIDE_BROADCAST=${BROADCAST}" >> /etc/outside.info ... snap After this changes it works for me with swedish Comhem ISP. I don't know if renewal works because I get same IP every time. /Fredrik