> > Hi,
> > I need to recompile my 2.1.117 kernel and assign a range of ip address to an
> > interface.
Why do you think this?
> > How can I do that ? What's the kernel hack ?
> > Example: eth0: 10.0.0.1 to 10.0.0.254
> > Thank you to answer me also by email
> "Network Aliasing" and see also in linux source:
No don't do that! Not for more than a handfull of addresses. This is
a 2.1.x kernel. You can assign address ranges to the "lo" device
simply by routing to it because it behaves promiscuously with respect
to IP addresses.
route add -net 10.0.0.0 netmask 255.255.255.0 dev lo
In theory you also need to add a proxy ARP
arp -Ds 10.0.0.0 eth0 netmask 255.255.255.0 pub
However some kernel versions seem to do this automagically.
Of course in 2.1 there are even simpler ways to do proxy ARP but
that's another story.
. _\\__[oo faeces from | Phones: +44 121 471 3789 (home)
. l___\\ /~~) /~~[ / [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
# ll l\\ ~~~~ ~ ~ ~ ~ | http://www.wcl.bham.ac.uk/~bam/
###LL LL\\ (Brian McCauley) |