marou
asked on
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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,RUN NING,MULTI CAST> 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?
ifconfig hme0:1 180.30.60.25 netmask 255.255.0.0
OUTPUT IS:
hme0:1: flags=843<UP,BROADCAST,RUN
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?
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
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
ASKER
It is clear now. Thank you very much.
IFF_POINTOPOINT
might be a variable that needs to be set.
IFF_POINTOPOINT=whatever ; export IFF_POINTOPOINT
i don't know what yet