LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   reseting NIC interface settings (https://www.linuxquestions.org/questions/solaris-opensolaris-20/reseting-nic-interface-settings-616854/)

czezz 01-28-2008 08:02 AM

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)

jlliagre 01-28-2008 08:12 AM

That should be:
Code:

svcadm restart network/physical

Necronomicom 01-28-2008 08:14 AM

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


All times are GMT -5. The time now is 07:56 PM.