public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nils Holland <nhg@tisys.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Two local subnets and IPv6
Date: Tue, 8 Mar 2011 00:54:18 +0100	[thread overview]
Message-ID: <20110307235418.GA4330@x7bj.fritz.box> (raw)

Hi folks,

well, this is not a strictly Gentoo-related question, but probably
someone in here has an idea on this anyway.

I currently have the following situation here:

|Internet|
    | (Dynamic public IPv4 address)
DSL-Router
    | (192.168.178.1)
    -
    | (192.168.178.40, via WLAN)
GentooBox1
    | (192.168.0.1, via Ethernet)
    -
    | (192.168.0.2...n, via Ethernet)
GentooBox2...n

The point in this setup is to have one machine with the best WLAN
reception the Internet connection via WLAN, and serve as a router so
that the other machines (many of which have problems receiving the
weak WLAN signal) are connected via Ethernet and can reach the
Internet via GentooBox1 (and communicate with one another at 100
MBit/s or GigE speed). Works fine. Will do the job at least until
I'll finally come around to pulling a cable between the DSL router in
the floor below me and this room, which is the eventually planned
solution.

Now, however, IPv6 has entered the picture and makes things more
difficult. At least I have not yet been able to find a way to make it
work nicely in this scenario. Currently, I'm receiving IPv6 via a 6to4
tunnel established directly by my DSL router. So the above diagram,
with regard to IPv6, would look like this:

|Internet|
    |
DSL-Router
    | (dynamic /48 based on its current public IPv4 address)
    -
    | (/64 address based on prefix and MAC of interface,
    |  assigned magically by the DSL router (I guess) (WLAN))
GentooBox1
    | ??? (Ethernet)
    -
    | ??? (Ethernet)
GentooBox2...n

The ??? are where my problems start. I don't really have a clue what
to do here. I probably shouldn't really manually assign IPv6 addresses
to GentooBox1's and GentooBox2's Ethernet cards, since these wouldn't
be worth much, as the prefix would change any time the IPv4 address
that serves as a basis for the 6to4 address changes. I could also
install radvd on GentooBox1, but the changing prefix would probably be
a problem in that case as well, and I have the feeling that this
wouldn't help me much anyway, as I'd probably have to add some routes
to my DSL router's routing table for things to work - problem is, the
DSL router will only let me manually add IPv4 routes, not IPv6 ones
(at least with its official firmware).

So, any ideas or pointers what I could do here? Of course, if I didn't
have two subnets, things would be simple (then the DSL router could
handle everything), but this just isn't the situation I have here
right now. Bridging the Ethernet interface and the WLAN interface on
GentooBox1 was my first idea actually, but doesn't seem to work with
its WLAN NIC. And of course, any machines "behind" GentooBox2 could
establish their own IPv6 tunnel connections, but ... well ... I the
strong feeling that what I've been trying above should work as well
... somehow! ;-)

Greetings,
Nils


-- 
Nils Holland * Ti Systems, Wunstorf-Luthe (Germany)
Our Gentoo mirror: http://rush.tisys.org/ (IPv4 + IPv6)
Powered by GNU/Linux since 1998



             reply	other threads:[~2011-03-07 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 23:54 Nils Holland [this message]
2011-03-08  7:07 ` [gentoo-user] Two local subnets and IPv6 Mick
2011-03-09 21:21   ` Nils Holland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110307235418.GA4330@x7bj.fritz.box \
    --to=nhg@tisys.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox