Before you begin:
Before your computer will connect to the campus network through your Ethernet connection, you must register your NIC's hardware address with ResNet. Information on registration can be obtained from: ResNet: Getting Connected.
To Determine Your Ethernet Address:
At a shell prompt, type 'ifconfig xl0'. Look for the field labeled "HWaddr". The long series of hex digits separated by colons beside "HWaddr" is your hardware address. Use this number when registering for ResNet services. Please note that your ethernet device may have a different name, such as ep0, eth0, etc. If you don't know your NIC's name, you can find it in /var/log/messages in the section where your card is initialized.
To Register For ResNet Service:
You can register for ResNet services via the ResNet: Getting Connected website from a lab computer, or another residence hall computer that is already connected. Along with your hardare address, you will need the following information:
To use the DHCP client dhclient(8) included with OpenBSD, edit /etc/hostname.xl0 (this is assuming your main ethernet interface is xl0. Yours might be ep0 or fxp0 or something else!) All you need to put in this hostname file is 'dhcp'
# echo dhcp >/etc/hostname.xl0This will cause OpenBSD to automatically start the DHCP client on boot. OpenBSD will gather its IP address, default gateway, and DNS servers from the DHCP server.
If you want to start a dhcp client from the command line, make sure /etc/dhclient.conf exists, then try:
# dhclient fxp0Where fxp0 is the interface that you want to receive dhcp on.
No matter how you start the dhclient, you can edit the /etc/dhclient.conf file to not update your DNS according to the dhcp server's idea of DNS by first uncommenting the 'requre' lines in it (they are examples of the default settings, but you need to uncomment them to override dhclient's defaults.)
request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, lpr-servers, ntp-servers;and then remove domain-name-servers. Of course, you may want to remove hostname, or other settings too.