The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change HostName nalina UNIX for Dummies Questions & Answers 9 03-25-2008 03:41 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 07:52 PM
change hostname fishman2001 UNIX for Dummies Questions & Answers 2 01-12-2006 06:39 AM
Change IP and Hostname catwomen HP-UX 3 12-12-2005 07:14 PM
Change of Hostname gelbvonn UNIX for Advanced & Expert Users 4 09-20-2004 07:12 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 10-16-2002
Registered User
 

Join Date: Apr 2002
Location: New Jersey
Posts: 31
This is for a small network I've got at home, so I am the network administrator.

This is all because, I can't seem to forward ports to static IP addresses with my Linksys router.
Forum Sponsor
  #9  
Old 10-17-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
From Sunsolve:

Solaris systems try to set their hostname through the "dhcpinfo" command
when they are booted as DHCP clients. The "dhcpinfo" command tries to
obtain the hostname for the client from a DHCP server by matching the
client's MAC address with a hostname entry in the DHCP server's network
client table. A Windows NT DHCP server usually does not have a network
client table since the hostname of a Windows client is stored locally.
Hence, a Solaris DHCP client will get no reply from the Windows NT DHCP
server to it's "dhcpinfo" command. If the Solaris client is configured
to use DHCP and the DHCP server fails to respond to the "dhcpinfo"
command, the client's hostname is set to "unknown" by the startup scripts.

We may work around this problem by making some modifications in the
system startup scripts as shown below:

1. For Solaris 2.6 and Solaris 7 Systems.

Edit the file /etc/init.d/rootusr and change the line that reads

hostname=`/sbin/dhcpinfo Hostname`

to

# hostname=`/sbin/dhcpinfo Hostname`
hostname=`shcat /etc/nodename`
uname -S $hostname

Save the file and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.

2. For Solaris 8 systems.

Edit the file /etc/init.d/network and change the line that reads

"dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;

to

# "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
"dhcp") hostname=`shcat /etc/nodename` ;;

Then, edit the file /etc/init.d/inetsvc and change the line that reads

hostname=`/sbin/dhcpinfo Hostname`

to

# hostname=`/sbin/dhcpinfo Hostname`
hostname=`/usr/bin/cat /etc/nodename`

Save the files and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.
  #10  
Old 10-21-2002
Registered User
 

Join Date: Apr 2002
Location: New Jersey
Posts: 31
Thanks RTM,
That worked.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0