LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-28-2008, 08:02 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Rep: Reputation: 44
reseting NIC interface settings


If I need to change IP settings on Solaris 10 I need to change following files:
Code:
/etc/inet/ipnodes
/etc/inet/netmasks
/etc/inet/hosts
/etc/defaultrouter
That works for me fine after reboot... but what I wonder: is there anyway to reset NIC without rebooting whole OS ?
I know I can do it with ifconfig command... but there must be some mechanism that uses those files above.


(Like in Slackware - u can change IP in /etc/rc.d/inet1.conf then execute /etc/rc.d/inet1 restart. This will ensure me that changes made in conf. files r OK without rebooting whole OS)
 
Old 01-28-2008, 08:12 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That should be:
Code:
svcadm restart network/physical
 
Old 01-28-2008, 08:14 AM   #3
Necronomicom
Member
 
Registered: Jun 2004
Distribution: Slackware, Solaris
Posts: 127

Rep: Reputation: 15
you are missing /etc/hostname.NIC

NIC being your type of NIC (ce0, qfe0, bge0, etc)

as far as i know ifconfig is the only way to change the ips without a reboot.

but its not hard...

ex:

ifconfig ce0 inet 192.168.0.43 netmask 255.255.255.0 up
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NIC settings jimmy2x Linux - Networking 4 03-18-2005 03:56 PM
Mapping between interface and nic jes Linux - Hardware 1 11-10-2003 09:00 PM
Mapping between interface and nic jes Linux - Networking 1 11-10-2003 05:05 PM
Gnome Interface - Window Preference Settings hiplainsdrifter Linux - Newbie 5 02-12-2003 11:22 AM
Settings for NIC, RH 7.3 brimbleshoes Linux - Networking 3 10-19-2002 03:46 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration