Re: two public ip addresses on one interface
- From: "Wilkinson, Alex" <alex.wilkinson@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 May 2007 16:01:32 +0800
0n Mon, May 28, 2007 at 11:43:21AM +0400, Eygene Ryabinkin wrote:
>Alex, good day.
>
>Sun, May 27, 2007 at 07:07:41PM +0800, Wilkinson, Alex wrote:
>> > If your aliases are part of the same subnet as the "primary" or first configured IP, then you want to
>> > use the all-1's netmask. In your case, however, the second IP is part of a completely different subnet,
>> > and you can (and should) use a /24 netmask....
>>
>> I have always wondered why we need to use the "all-1's" netmask. Why is this ?
>
>Because if you're stuffing two addresses from the same subnet to
>one interface it will not work: there can be only one route to the
>specified network in the FreeBSD routing table. And adding IP to
>the interface creates the entry in the routing table. So you should
>specify the different mask and most probably 0xffffffff will be the
>best choice, but your mileage may vary with your routing needs.
mmm ... it looks like you can actually get around this on OpenBSD 4.1
with their new "multiple routing table" code.
"Multiple routing tables. What does it mean for PF?
Henning Brauer:
The kernel used to have one routing table per address
family--one for inet, one for inet6, one for IPsec, usually. Now it can have
multiple tables. From within PF, you can select which routing table should be
used for the route lookup later--you can implement policy routing with this. But
much more could be done--this is really only the groundwork. It could be
possible, in future, to have overlapping address ranges on interfaces and place
interfaces into different routing tables, forming a kind of virtual routers. And
of course, the routing daemons will learn to make more use of alternate
tables."
[http://www.onlamp.com/pub/a/bsd/2007/05/03/openbsd-41-puffy-strikes-again.html?page=2]
-aW
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: two public ip addresses on one interface
- From: Julian Elischer
- Re: two public ip addresses on one interface
- References:
- two public ip addresses on one interface
- From: Andrei Manescu
- Re: two public ip addresses on one interface
- From: Chuck Swiger
- Re: two public ip addresses on one interface
- From: Wilkinson, Alex
- Re: two public ip addresses on one interface
- From: Eygene Ryabinkin
- two public ip addresses on one interface
- Prev by Date: Re: ng_pptpgre + netmask_change results to lock
- Next by Date: Re: ng_pptpgre + netmask_change results to lock
- Previous by thread: Re: two public ip addresses on one interface
- Next by thread: Re: two public ip addresses on one interface
- Index(es):
Relevant Pages
- Re: Traffic NOT moving through the correct network interface?
... Kernel IP routing table ... loopback interface, but that's not part of
this problem. ... Everything is done by the kernel. ... Policy based routing
requires you ... (alt.os.linux) - Re: Fedora as Router - cannot get past gateway
... >> command so much, I am suprised any routing works at all. ... Are you
using dhcp or is all config manual? ... > This is your interface to ISP? ...
we all have that feeling when we can't get routing set up. ... (comp.os.linux.networking) - Re: Bind Problem - with multihomed
... You must add an entry to the routing table. ... See this excerpt under the "Multihoming"
section from "Microsoft ... Stack Components and the TDI Interface" at ... to disjoint
networks (networks that are separate from and unaware of ... (microsoft.public.win32.programmer.networks) - intervlan routing and policy routing C3750 or C 4948
... routing) and for some vlans i need different gateways. ... interface Vlan10
... route-map, 2) routing table. ... the packet will be routed according
to the routing table (standard IOS ... (comp.dcom.sys.cisco) - Re: problems pinging between FastEthernet and Ethernet interfaces
... I'm having some problems with a link between two Cisco routers. ... Ethernet
interface. ... routing protocol will not matter. ... The best thing is to post
the config of the relevant interfaces. ... (comp.dcom.sys.cisco)