• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1314
  • Last Modified:

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.
0
marou
Asked:
marou
  • 2
  • 2
1 Solution
 
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
 
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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now