Changing ipaddress under Solaris 10

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Sat Dec 02 2006 - 14:20:44 EST


Dear managers,

> this seems to be a longburner. I configured a 490 with two nics and
> later changed my mind regarding the second ipaddress and net. I changed
> the usual files
>
> /etc/hosts
> /etc/netmasks
> /etc/hostname.ce1
>
> but after a reboot netstat -rn shows only one interface. When I do
> "ifconfig -a" I see the second interface with the new ipaddress but
> with a wrong netmask. I doublechecked my entry in /etc/netmasks.
>
> and am sure that this is correct. Settingthe values with ifconfig ...
> works but I want this to survive a reboot. What else has to be changed?
> This is Solaris 10 06/06!

I was recommended to check /etc/inet/ipnodes as well which i did and
rebooted again. Same effect. The interface does not appear in "netstat
-rn" and it appears with a wrong netmasks in "ifconfig -a".

-bash-3.00# netstat -rn
Routing Table: IPv4
   Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.0.0.0 10.0.0.202 U 1 1 ce0
224.0.0.0 10.0.0.202 U 1 0 ce0
127.0.0.1 127.0.0.1 UH 4 77 lo0
-bash-3.00#

-bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
         inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 10.0.0.202 netmask ffffff00 broadcast 10.0.0.255
         ether 0:14:4f:1e:84:c9
ce1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
         inet 62.154.134.78 netmask ff000000 broadcast 62.255.255.255
         ether 0:14:4f:1e:84:c9

Here is my config:

/etc/hosts:
127.0.0.1 localhost
10.0.0.202 SF490 loghost
62.154.134.78 SF490_ce1

  /etc/inet/ipnodes:
::1 localhost
127.0.0.1 localhost
10.0.0.202 SF490 loghost
62.154.134.78 SF490_ce1

/etc/netmasks:
10.0.0.0 255.255.255.0
62.154.134.72 255.255.255.248

/etc/hostname.ce1:
SF490_ce1

This should work in my opinion. Any ideas?

Regards,

     Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:17 EDT