configure interface as down during startup

Hi,

I have struggled now for a while with the interface configuration on Solaris 10. I want to configure a logical interface with IP address and netmask, but not have it set to "up". I merely want to prepare it for failover, handled by a seperate program.

After finding out that the startup script will overrule some of my commands in the /etc/hostname.* file if I only have one line, I added a second one with the "addif" statement to add the virtual interface and set it explicitly to down. That still does not work though, because this line in the "net-physical" script:

# Configure the rest of the IPv4 interfaces automatically, quietly.

/sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up

will bring all interfaces up. The only workaround I found, is to comment out that line (I don't have any other interfaces which would require that one). I cannot believe that this is the only way to achieve what I want. So maybe somebody could help me out what I am missing....?

Thanks,

iMax

[1041 byte] By [iMaxa] at [2007-11-27 8:32:19]
# 1

> Hi,

>

> I have struggled now for a while with the interface

> configuration on Solaris 10.

What release?

> I want to configure a

> logical interface with IP address and netmask, but

> not have it set to "up". I merely want to prepare it

> for failover, handled by a seperate program.

> After finding out that the startup script will

> overrule some of my commands in the /etc/hostname.*

> file if I only have one line, I added a second one

> with the "addif" statement to add the virtual

> interface and set it explicitly to down. That still

> does not work though, because this line in the

> "net-physical" script:

>

> # Configure the rest of the IPv4 interfaces

> automatically, quietly.

> /sbin/ifconfig -adD4 auto-revarp netmask + broadcast

> + up

Where do you see that line? In my copy that is in a conditional that is true only when the hostname is not set. Whatever is going on shouldn't be in that line.

In addition, I can't find that comment in my script.

# grep quiet /lib/svc/method/net-physical

#

Perhaps your release has some changes?

I just made the following change to my test machine.

# echo >> /etc/hostname.hme0

# wc -l /etc/hostname.hme0

2 /etc/hostname.hme0

# init 6

[wait for reboot]

[ login ]

# ifconfig hme0 | grep RUN

hme0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

#

Not up. Further inspection will reveal that broadcast/netmask is also not configured, so you'd need to do that as well.

--

Darren

Darren_Dunhama at 2007-7-12 20:28:08 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Hi Darren,

Thanks for looking into this.

My install version is 3/05, but I have installed some recommended patch clusters. Kernel patch level is 125101-03.

grep -n quiet /lib/svc/method/net-physical

271:# Configure the rest of the IPv4 interfaces automatically, quietly.

The header of the script shows the following:

# ident "@(#)net-physical1.2304/11/19 SMI"

I have now quickly looked at a production server here with the 11/06 release and that one has version 1.25 of the net-physical script, with the changes you described. That probably means I just have to find out which patch I need to apply... ;-)

Regards,

iMax

iMaxa at 2007-7-12 20:28:08 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
ok, patch 120990-02 fixed this...thanks again.
iMaxa at 2007-7-12 20:28:08 > top of Java-index,Solaris Operating System,Solaris 10 Features...