[SLL] Router config help needed
Chuck Wolber
chuckw at quantumlinux.com
Tue Jun 19 10:36:09 PDT 2007
On Tue, 19 Jun 2007, Ralph Sims wrote:
> I have set up a simple Linux router that I want to use to help test some
> applications. Is there a simple way to assign a full private address
> block (176.16.0 /16) to eth0?
<CaptainObvious>
That's 65,535 IP addresses...
</>
Without knowing more about what you're trying to do, my instinct says that
by looking at the problem in a different way, you'll probably find a
better way to do what you need to do.
But... in the MythBuster spirit of wanting to blow stuff up for the sake
of making shiny things go boom...
You *COULD* brute force it with virtual interfaces. It wouldn't be that
hard assuming you had a dedicated box to do it with and the box didn't
melt down due to some internal limitation.
A couple of nested "for loops" with this as the meat and potatoes:
ifconfig eth0:$i_num 176.16.$i.$j netmask 255.255.0.0
Where $i_num is a simple counter and $i is the counter from one for loop
and $j is the counter from another (extra points if you can find the
hidden potential bug).
> I need to be able to ping and traceroute to these addresses. I can
> break the /16 into subnets to get around any limitation to the number of
> addresses I don't need to "route" these beyond the test box nor make
> them publicly available beyond the lab.
Google doesn't seem to show any virtual interface limits, but then again,
my google-foo may be a bit lacking...
..Chuck..
--
http://www.quantumlinux.com
Quantum Linux Laboratories, LLC.
ACCELERATING Business with Open Technology
"The measure of the restoration lies in the extent to which we apply
social values more noble than mere monetary profit." - FDR
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
More information about the linux-list
mailing list