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
lan setting mightypp.nits UNIX for Dummies Questions & Answers 1 11-11-2007 12:00 PM
ssh setting kwliew999 AIX 11 07-10-2007 08:57 AM
Setting the FS in awk 2reperry Shell Programming and Scripting 4 11-03-2006 09:22 AM
Setting the UID in Mac OS X noahcowan OS X (Apple) 1 06-07-2004 07:41 PM
setting env alsande SUN Solaris 3 03-29-2004 09:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2005
Registered User
 

Join Date: Sep 2004
Location: The Hague, Netherlands
Posts: 24
Stumble this Post!
New ip setting

I want to change the IPsetting and the broadcast setting.
With ipconfig I get this:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xx.17x.18x.xx netmask fffffff0 broadcast xx.17x.18x.xx
ether yy:0:yy:b6:yy:xx

What command(squence) do I use to change the inet and broadcast? Or where do I find that sequence?

Does changing this automatcally change the telnet IP as well?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-29-2005
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,288
Stumble this Post!
Quote:
Originally Posted by kuultak
I want to change the IPsetting and the broadcast setting.
With ipconfig I get this:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xx.17x.18x.xx netmask fffffff0 broadcast xx.17x.18x.xx
ether yy:0:yy:b6:yy:xx

What command(squence) do I use to change the inet and broadcast? Or where do I find that sequence?

Does changing this automatcally change the telnet IP as well?
Yes, it does.

The command you need is ifconfig. Depending on the OS you are using, there may a startup script or file that will set this information for you. You need to find that script and make your changes there.
Reply With Quote
  #3 (permalink)  
Old 01-29-2005
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
Stumble this Post!
Based on the interface (hme0) I am assuming Solaris.

To do this command line:
# ifconfig hme0 xx.17x.18x.xx netmask 255.255.255.0 broadcast xxx.xxx.xxx.xxx up

Under Solaris I am not sure where you set the broadcast (and no longer have a Solaris box at home to check). I *think* it is simply the highest IP is the subnet as defined by the netmask. If the netmask is wrong, it can be changed in /ete/netmasks

The sledge hammer way to do this is with sysunconfig
BE warned that this puts the system back to "as new" with regards to network info, root password, etc., and will reboot the box. If the box is using NIS, NIS+, LDAP, and assuming you are not familiar with configuring these, I would suggest not using sysunconfig.
__________________
[url=http://chuckb.1le.net/]My website[/url]
Reply With Quote
  #4 (permalink)  
Old 01-29-2005
Registered User
 

Join Date: Sep 2004
Location: The Hague, Netherlands
Posts: 24
Stumble this Post!
OK thanks.

It's Solaris 8.

Where do I find the mentioned script?

I'll have a look in the Solaris guide monday to see whether I cann get everything straight.
Reply With Quote
  #5 (permalink)  
Old 01-29-2005
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 712
Stumble this Post!
...

well, it's not done by a script in solaris... just edit your /etc/hostname.hme0, and make sure there is the right entry in your /etc/hosts
# cat /etc/hostname.hme0
server
# grep server /etc/hosts
10.0.x.x server server.unix.com

gP
Reply With Quote
  #6 (permalink)  
Old 01-30-2005
Registered User
 

Join Date: Sep 2004
Location: The Hague, Netherlands
Posts: 24
Stumble this Post!
Thanks.

I'll have a look first.
Reply With Quote
  #7 (permalink)  
Old 01-30-2005
Registered User
 

Join Date: Jan 2005
Location: Albuquerque, NM
Posts: 1
Stumble this Post!
1010101010

Last edited by smigen; 01-30-2005 at 09:20 PM. Reason: fixed the problem
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:34 PM.


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

Content Relevant URLs by vBSEO 3.2.0