Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: ADSL DHCP

Wesley Terpstra
Sat, 17 Oct 1998 13:24:40 -0700 (PDT)

> I just got my ADSL installed but I am having problems getting a connection.
> I am able to obtain an IP address from the DHCP server and I get a netmask
> of 255.255.0.0 but I don't get a gateway address or DNS.

On my system (debian slink), I had to make a startup script to make DHCP
use the router as a default route. My dhcpcd is:

]iota:~# dhcpcd -v
]dhcpcd 0.70-karn

My startup script is:
]#!/bin/sh
]
]# Delay to allow resolv.conf to finish
]sleep 1
]
]# Fix my hostname
]hostname -F /etc/hostname
]
]# Fill in the resolv.conf
]rm -f /etc/resolv.conf
]cp /etc/resolv.conf.correct /etc/resolv.conf
]grep nameserver /etc/dhcpc/resolv.conf >> /etc/resolv.conf
]
]# Correct my hosts file
]cp /etc/hosts.correct /etc/hosts
]echo $IPADDR iota.ml.org iota >> /etc/hosts
]
]# Setup my router
]route add default gw $ROUTER

The whole hostname mess you probably don't need. The last line is probably
what cocerns you. Incidently, if you know how to tell the DHCP server a
hostname so it doesn't change it, I'd love to know. (-h doesn't work)

My dhcpcd is invoked with:
]dhcpcd -c <above script> eth0

If you run debian you'll have to change your /etc/init.d/dhcpcd to do
this.

---
Primary e-mail: 


, alternate: terpstra@unixg.ubc.ca Residence: 204 Cariboo, Place Vanier, UBC, Canada Company page: www.singularity.home.ml.org, personal: www.iota.ml.org