Monday, June 11, 2012

Solaris 10, IPV4, changed Hostname and IP but after reboot IP/default route won't stick. Ideas?

olaris 10, IPV4, changed Hostname and IP but after reboot IP/default route won't stick. Ideas? 


/etc/defaultrouter is still populated correctly (same gateway as before) 
# ifconfig eri0 xxx.xxx.xxx.xxx netmask 255.255.255.0 up 
can't ping out of interface, destination unreachable
Put address in /etc/defaultrouter. 

Tim Sanko | UNIX ENGINEER | ECC FEDERAL 
Unisys | 11493 Sunset Hills Road | Reston, VA 20190 | 703.579.2671 UNISYS 
Fax 703.579.2243 | Cell 703-576-2665 imagine it. done.
You may find the man page for 'sys-unconfig' useful, depending on what 
exactly you're trying to achieve
Put a file in /etc/rc2.d/ with name: S76static-routes 

Next, give permissions "chmod 744" 

Put the entry: 

route add default (ip from gateway) 

So: 

route add default 10.0.1.2 

And, it's only, restart you Solaris and try it! 

Bye guys! 
Been a while for Solaris, but don't you have to plumb the IP to the interface? 
Did you change /etc/hostname.eri0? 

What do you see from netstat -rn
Put a file in /etc/rc2.d/ with name: S76static-routes 

Next, give permissions "chmod 744" 

Put the entry: 

route add default (ip from gateway) 

So: 

route add default 10.0.1.2 

And, it's only, restart you Solaris and try it! 

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM