|
| Network Accounts | FAQ's | MHC Labs | Virus Information | Software Support | Terms of Use | Email Tips | MHC ResNet | MHC Home |
|
|
Linux / Unix DHCP Client Setup GuideNotes:
Step 1 From a shell type ifconfig. It will list all Ethernet adapters which are configured and up(turned on or enabled). There will almost always be an adapter listed as lo, for the loopback device. There may also be other adapters which are configured and running. If so, for each listed adapter perform ifconfig ADAPTER_NAME down. This will turn off all network functionality so settings may be changed. It will not be necessary to turn off the lo adapter ![]() Step 2 On Unix and Linux, it is necessary to start a DHCP client. Some of the most common clients are dhcpcd, pump, and dhclient. You can determine which client is installed on your computer by typing whereis clientname, such as "whereis dhcpcd". If a client is installed it will return the clientname followed by the directory it is installed in.
![]() Step 3 Performing ifconfig -a with no options will show the interface's new settings and should list it's new IP address as assigned by DHCP. If it appears that the computer has gotten an IP address, you may wish to place the command you used in step 2 into a startup file such as rc.local so that the interface gets an IP address every time the computer is started. Otherwise you will have to type the command each time the computer restarts. If the computer did not get a new and valid IP address, it may be necessary to change options used for the dhcp client. This is beyond the scope of this document and can be found in the man pages of the specific client. ![]() Step 4 Upon bringing up the interface, several routes should automatically have been added to the routing table, and a default gateway should be present. Check this by typing netstat -rn.You should see a default route listed, it will either say default or the destination will be 0.0.0.0 If the default route has not been added , check the troubleshooting guide under the Routes section. ![]() Step 5 The /etc/resolv.conf file contains information which is used to specify DNS server information. DNS is necessary to provide name to IP address mappings for the Internet. After bringing up the interface with DHCP, the file should contain information similar to the picture. You can check the contents of the file by typing cat /etc/resolv.conf. If the file contains information different from the picture, see the section under troubleshooting entitled DNS. ![]() Step 6 After registering your computer on ResNet, you can check that DNS is functioning properly and that the routes are configured correctly by typing host erau.edu. It should return the IP address of the erau.edu server as shown.If you've registered your computer and gotten an IP address, but you can't seem to browse the web, see the section under troubleshooting entitled DNS. ![]() Once you have received an IP you will need to follow the directions in the ResNet Welcome Screen. Not working? Try Troubleshooting How do I know if I'm connected to ResNet?
Once the network card is installed and verified that it is installed
properly, launch a web browser which should direct you to the ResNet
Welcome Screen. You have to logon and your system must be verified
before you can use the Internet. If you cannot access the ResNet Welcome
Screen, you may not have a completed Ethernet connection. This could be
caused by:
|
|
|
||
|
||
|
|