The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
On the Internet, No-one Knows you're a Hog... iBot IT Security RSS 0 05-30-2008 11:50 AM
internet varsha.shastri UNIX for Dummies Questions & Answers 0 02-14-2008 12:27 PM
internet dondecap UNIX for Dummies Questions & Answers 2 02-03-2007 12:56 AM
problem with comming out on internet steffa UNIX for Advanced & Expert Users 1 09-13-2004 08:30 AM
i can't get on the internet mipsy UNIX for Dummies Questions & Answers 7 07-25-2001 10:16 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2004
Peter123456789 Peter123456789 is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 3
Setting a DHCP client under Solaris

I have Solaris 9 x86. I would like to use DHCP to connect to the internet. How can I make it work. A lot of tutorials say about editing files - Is there any easier way? (I am a newbie to UNIX).

Please Help
  #2 (permalink)  
Old 07-05-2004
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
login as root
check what interfaces you would like use (ifconfig -a)..

to enable the interface for dhcp do this as root

cat /dev/null > /etc/hostname.XXX
cat /dev/null > /etc/dhcp.XXX

where XXX is the name of the network interface like hme0, qfe0, eri0, ce0, bge0 or something like that..

after you are done with that simple reboot or issue the following command to make the change right away if you cant reboot

ifconfig XXX dhcp start

The following commands can be used to display the DHCP lease information and release the DHCP lease, respectively:

ifconfig XXX dhcp status
ifconfig XXX dhcp release

/Peter
  #3 (permalink)  
Old 08-25-2004
Peter123456789 Peter123456789 is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 3
Problem with internet - PLEASE HELP!

I have a trouble with connecting to the internet from the Solaris UNIX.

I posted once a thred "Setting a DHCP client under Solaris" and got the following answear:
--------------------------------------------------------------------------------
cat /dev/null > /etc/hostname.XXX
cat /dev/null > /etc/dhcp.XXX
where XXX is the name of the network interface like hme0, qfe0, eri0, ce0, bge0 or something like that..
after you are done with that simple reboot or issue the following command to make the change right away if you cant reboot
ifconfig XXX dhcp start
---------------------------------------------------------------------------------
I tried that and:

-My Hostname changed to 'Unknown'!
-I can't view any website with wy browser (Netscape)

Here is what the computer says:
(My network interface = rf0)
-----------------------------------------------------------------------------------
Sun Microsystems Inc. SunOS 5.9 Generic January 2003
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rf0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 80.83.34.2 netmask fffff800 broadcast 80.83.39.255
ether 0:40:f4:54:9b:b4
# ifconfig rf0 dhcp status
Interface State Sent Recv Declined Flags
rf0 BOUND 2 1 0 [PRIMARY]
(Began, Expires, Renew) = (08/24/2004 18:59, 08/24/2004 20:34, 08/24/2004 19:46)
#
------------------------------------------------------------------------------------

How can I connect to internet from Solaris 9 x86. (I used Windows to post this thred...)?
How to change my hostname. It sets itself to 'unknown' every time I start the system?

If you know the answear please help!
  #4 (permalink)  
Old 08-25-2004
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Peter,

I merged your posts... please avoid double posts in the future.

Review the FAQs again for this site as well.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0