ifconfig problem?

I am configuring Network Interface Card of Solaris 2.x using ifconfig in creating logical IP Addresses.

ifconfig IF:N ip-addr netmask

ifconfig hme0:1 180.30.60.25 255.255.0.0
     .
     .
ifconfig hme0:9 180.30.60.26 255.255.0.0
             
Everytime i use to execute the command above, i always get this message:

SIOCSIFDSTADDR: IFF_POINTOPOINT not set

What is the meaning of this message? How can i prevent it? Does this message cause the kernel to panic?

Your answers and suggestions are very welcome.
marouAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

milamber_2000Commented:
It looks like
  IFF_POINTOPOINT
might be a variable that needs to be set.

IFF_POINTOPOINT=whatever ; export IFF_POINTOPOINT

i don't know what yet

0
jammannCommented:
What you are doing is setting up the interface as point-to-point. See ifconfig(1m)

It says

ifconfig <interf> <addr> [<dest addr>] ....

What you actually want to do is

ifconfig <interf> <addr> [netmask <netmask>]

So in your case

ifconfig hme0:1 180.30.60.25 netmask 255.255.0.0

if you don't put the "netmask", the second address is interpreted as the destination address of a point-to-pint interface, hence the error message.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marouAuthor Commented:
I need some clarifications regarding this matter.

ifconfig hme0:1 180.30.60.25 netmask 255.255.0.0

OUTPUT IS:

hme0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 180.30.60.25 netmask ffff0000 broadcast 180.30.255.255            


How come that the FLAG appeared is BROADCAST when I configured it as POINTOPOINT? One more thing if I configured 100 Virtual assigned IP addresses at one time, does the configured Virtual IP addresses cause the kernel to panic?
0
jammannCommented:
No, I was not clear in my answer. When you tried to do

ifconfig hme0:1 a.b.c.d     x.y.z.u

you (unknowingly) selected the form of the ifconfig command that tries to setup a point-to-point interface. You give 2 IP adresses, so ifconfig thinks you want to set up a ptp link. But this can not be done on a virtual ethernet interface!

With my proposed command

ifconfig hme0:1 a.b.c.d netmask n.m.o.p

you select the form of the ifconfig command that sets up a regular (among others, broadcast capable) interface with IP addr a.b.c.d and netmask n.m.o.p. So yes, now after this command, the interface will have set the broadcast (and multicast) flags because that's the normal way.

Is this clear now?

And about the number of virtual interfaces. IIRC, in Solaris 2.6 the maximum is 128 virtual address per interface. But no, even if you try to go over this limit, the kernel will still not panic. The number of possible virtual interfaces has been increased in Solaris 7&8, standard being 8192, configurable via a kernel tunable.

Please keep in mind that when you allow such a high numbe of virtual interfaces, you should probably also tune a little bit the TCP acccept queues for higher values. See Adrian Cockroft's tuning tips in SunWorld online

Somewhere on www.sunworld.com, seems to be down at the moment so i can't give exact URL

HTH

0
marouAuthor Commented:
It is clear now. Thank you very much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.