|
UPDATED December 9, 2002
SEARCH
GUIDES FOR
Students
Prospective Students
Faculty/Staff
ITS Staff Info
GET CONNECTED
Account Activation
Computer Labs
Connect Your Computer
Site-Licensed Software
Software Center
NETWORK RESOURCES
Back Up your System
Blackboard
Creating Web Pages
Student Printing
Network Status
Network User's Guide
GETTING HELP
ITS Help Desk
PC/Mac Support
Unix Support
Technology Training
Instructional Technology
ITS E-STORE
ITS DEPARTMENTS
ITS Help Desk
Customer Service
Administrative Applications
Cable Services
Phone Services
Infrastructure Services
Program Management
Security and Policies
Strategic Partnerships
Technical Support
Web Development Support
FEEDBACK
|
|
DHCP configuration instructions for Solaris
December 2000
If you have any questions or problems configuring DHCP, contact Workstation User Support.
These instructions are written for Solaris 7, but they will probably also work for Solaris 8. For help configuring earlier versions of Solaris, contact Workstation User Support.
- Log in as root at the console. Use a command-line login if possible, rather than a graphical one. (CDE allows you to do this from the "Options" menu button on the login screen.)
- Determine the name of your workstation's network interface.
/usr/sbin/ifconfig -a
The output will resemble the two examples below:
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863 mtu 1500
inet 129.22.88.177 netmask ffff0000 broadcast 129.22.255.255
or
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=4843 mtu 1500
inet 129.22.88.7 netmask ffff0000 broadcast 129.22.255.255
ether 8:0:20:1b:38:2d
As you can see in each example, the ifconfig program lists two network interfaces. The first interface (showing the IP address "127.0.0.1") is called the "loopback" interface, and isn't important for configuring DHCP.
The second interface is the one of interest for configuring DHCP, and its name varies depending on the model of your computer. In the first example, taken from a UltraSparc 5, the interface is named "hme0". In the second example, taken from a Sparc 10, it's named "le0". Make a note of the name of your workstation's network interface.
NOTE: If the ifconfig program lists more than two interfaces, your computer has additional physical or virtual network interfaces. Contact Workstation User Support for assistance.
- Create an empty file named "/etc/dhcp.[interface name]". For an interface named "hme0", the command would be
touch /etc/dhcp.hme0
- Similarly, create the two empty files /etc/notrouter and /etc/default/dhcp.
touch /etc/notrouter
touch /etc/default/dhcp
- Delete the contents of the /etc/hostname.[interface name] file using a text editor (such as vi) or using a command such as
> /etc/hostname.hme0
- Similarly, delete the contents of /etc/defaultrouter and /etc/resolv.conf.
> /etc/defaultrouter
> /etc/resolv.conf
- Delete all the entries in the /etc/hosts file except the one for
127.0.0.1 localhost
- Reboot the computer.
/sbin/init 6
These instructions were adapted from a posting on the Sun Managers mailing list.
Back to the Workstation User Support or User Support main pages.
|