Google Answers Logo
View Question
 
Q: Assignment of multiple IP addresses to a Solaris network interface ( No Answer,   1 Comment )
Question  
Subject: Assignment of multiple IP addresses to a Solaris network interface
Category: Computers
Asked by: upandaway-ga
List Price: $25.00
Posted: 30 Jul 2003 00:32 PDT
Expires: 29 Aug 2003 00:32 PDT
Question ID: 236834
How can I speed up the assignment of multiple IP addresses to the
network interface of a Solaris machine? I am assigning 8000 IP
addresses to a Sun Ultra 10 machine running the Solaris 8 OS. I run a
script file with commands like "ifconfig hme0 addif 172.16.60.0
netmask 255.255.0.0 up". While the assignment of the first 2000
addresses takes less than 2 minutes, the next 2000 addresses take
almost 15 minutes and it gets worse for the next 2000 addresses. A few
notes. All the IP addresses are within a single subnet. Once the IP
addresses are assigned I open a couple of UDP ports on each IP
address. I am willing to add more RAM or use several physical
interfaces if it will help to speed the assignment process
significantly.

Clarification of Question by upandaway-ga on 30 Jul 2003 01:01 PDT
In order to increase the number of IP addresses that can be assigned
to the physical interface I first issued the command "ndd -set /dev/ip
ip_addrs_per_if 1-8192".
Answer  
There is no answer at this time.

Comments  
Subject: Re: Assignment of multiple IP addresses to a Solaris network interface
From: goninzo-ga on 14 Aug 2003 07:57 PDT
 
I would recommend trying several qfe cards at the same time.  You
should be able to add an interface to each interface of the qfe
independantly of the others.  Hence, if you have the default hme0,
plus two qfe cards, you end up with 9 interfaces to add virtual ones
onto.  This should speed up the process by a factor of 9.  Make sure
you turn off 'local-mac-address?' in your prom though.

The other way to investigate is to look into doing multiple additions
in the same command.  For instance, putting in a ksh script:
ifconfig hme0 addif 172.16.60.0 netmask 255.255.0.0 up \
addif 172.16.61.0 netmask 255.255.0.0 up \
addif 172.16.62.0 -depreciated netmask 255.255.0.0 up

(etc)  I have not tried this myself, but a scripted approach would be
quick to do.  Different flags on the ifconfig might speed up the
process.  Also, making sure you have /etc/notrouter touched will
prevent the RIP traffic generated.

You might also want to explain why you want to do this, as there are
sometimes easier methods to solve a particular problem.  For instance,
you don't need 8000 unique IPs to load test a website.  Or, you could
just use your router to redirect traffic if that's the problem.  Let
me know if you have further questions/clarifications.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy