Setting IP on Solaris 10 help


 
Thread Tools Search this Thread
Operating Systems Solaris Setting IP on Solaris 10 help
# 1  
Old 09-26-2012
Setting IP on Solaris 10 help

Hi all,

So, I need to change the IP/netmask on 2 sun v240's running solaris 10. I seem to have done it correctly on one, it's holding the ip after a init 6 reboot. The other does not want to keep ip using same commands. I'm guessing I have to change some files I haven't yet, but have no idea how to enter info correctly into the files.

Commands I used were
Code:
#ifconfig bge0 plumb
#ifconfig bge0 <ip address> netmask 255.255.255.0 broadcast + up
#ifconfig -a (just to check it went in)
#init 6
#ifconfig -a (verified it stayed) <--stayed on one, not on the other
#netstat -rn

So, with running these, do I need to update /etc/hostname.bge0 and etc/hosts ? If so, what is the format to input?

Thanks much!

~KSmilie

Last edited by fpmurphy; 09-26-2012 at 04:53 PM..
# 2  
Old 09-26-2012
post a output of your /etc/netmasks file, there must be a entry like:
Code:
192.168.1.0 255.255.255.0

changing the ip configuration with the ifconfig command is not permanent!
# 3  
Old 09-26-2012
"netmasks" [Read only] 15 lines, 382 characters
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
10.10.173.0 255.255.255.0

---------- Post updated at 11:42 AM ---------- Previous update was at 11:31 AM ----------

How does one make the changes stay?
# 4  
Old 09-26-2012
and? is the ip and netmask in this file correct?
you need to edit this file if you need to make some changes permantent.
# 5  
Old 09-26-2012
do I need to make any changes to the hostname.bge0 or hosts files?

And no, they aren't.
# 6  
Old 09-26-2012
depends on what is in the hostname.X file... usually you'll find a "hostname" and this "hostname" should be in the /etc/hosts file where he goes and read the ip...

here a example:
Code:
[root@unix] /etc/inet => more /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
192.168.1.100      test123      test123.unix.com        loghost

Code:
[root@unix] /etc/inet => more /etc/hostname.e1000g0
test123

Code:
[root@unix] /etc/inet => more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.1.0       255.255.255.0

This User Gave Thanks to beta17 For This Post:
# 7  
Old 09-26-2012
Excellent. It works now. Thank you!

~K
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Printer setting in Solaris

I have Solaris-10 server and want to change default printer setting to Simplex (Instead of duplex, which is set currently). I am not able to see anything in conf file related to this setting. Please help (2 Replies)
Discussion started by: solaris_1977
2 Replies

2. Solaris

setting up NAGIOS on solaris SPARC 10

Hi All Does anybody have configured successfully nagios on a solaris 10 system? I am having issues when running gmake all, I am having the following error: cp: includes/rss/extlib: is a directory *** Error code 2 make: Fatal error: Command failed for target `install' Current working... (0 Replies)
Discussion started by: fretagi
0 Replies

3. Solaris

Time setting on Solaris 10

Hi all, Any idea please how to: -Change Time format from 24h format to 12h format (AM and PM) -Turn off DST: Daylight Save Time on a Solaris10 server Thanks in advance (1 Reply)
Discussion started by: rafikrafik09
1 Replies

4. Solaris

arabic setting in solaris

Hi, i have a file which show text on window like, insert into test values('اسيل للخدمات عبر الأثير'); but when i open this file in solaris it don't show like insert into test values('اسيل للخدمات عبر الأثير'); i also want to see the line same as it is on windows kindly help me (3 Replies)
Discussion started by: malikshahid85
3 Replies

5. Solaris

Alias setting in Solaris

Hi All, I need some information on 'Alias' setting in SUN SOLARIS.:confused: Q1. I want to know how can i set my alias here. Q2. How to view all set 'ALIAS' for me. (say /home/jdash user) Q3. Can i modify the set 'Alias' for me or for whole environment. Q4. Is Alias setting can be change... (2 Replies)
Discussion started by: jdash.ps
2 Replies

6. Solaris

Setting up a Solaris training

Hi, i'm about to hold a training (Solaris 10) for my colleagues. I've to plan for two days. There is a day for basics and a day (some weeks later) for advanced topics. All of them are regular solaris users (but mostly only installing + patching). What do you guys think are interesting topics... (22 Replies)
Discussion started by: DukeNuke2
22 Replies

7. Solaris

Setting DHCP on Solaris 8

I am trying to set up a DHCP on Sunblade 100. I have Dlink router that connects me to the net with my other computers. I can't seem to let my DHCP server to give out IP addresses instead of my router. I have been working on this for the last three days. I had an issue with Unknown name but i have... (4 Replies)
Discussion started by: aliban83
4 Replies

8. UNIX for Dummies Questions & Answers

Setting a HP printer under Solaris 9

Hello. I am trying to make work HP printer Deskjet 692C. I have Solaris 9 x86. I tried to use admintool: I choosed 'HP-printer' and 'Postscript filter' options. When I want to print something, instead of the text, the printer prints many pages of some kind of code or whatever... ... (1 Reply)
Discussion started by: Peter123456789
1 Replies

9. Solaris

setting a route in Solaris

I am having problems getting this to work, though it seems like it would be simple. I have a host with 2 interfaces, hme0 (192.168.0.132) for the primary interface, and hme1 (192.168.0.16) for backups. I want it to talk to the backup host, which is 192.168.0.21, across the hme1 interface. Thanks (2 Replies)
Discussion started by: 98_1LE
2 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 locale setting

Hello does anybody know how to change the LC_TIME locale on solaris 8 to dd/mm/YYYY currently it is set to. #locale -ck LC_TIME d_fmt="%m/%d/%y" Thanks (1 Reply)
Discussion started by: thangorn
1 Replies
Login or Register to Ask a Question