Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2001 05:32:48 +0900 (JST)
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        wvhemel@vub.ac.be
Cc:        ume@mahoroba.org
Subject:   Re: ipv6 route configuration
Message-ID:  <20010830.053248.115984750.ume@mahoroba.org>
In-Reply-To: <Pine.LNX.4.33.0108292142010.136-100000@cocaine.cryolabs.net>
References:  <20010830.034358.39231250.ume@mahoroba.org> <Pine.LNX.4.33.0108292142010.136-100000@cocaine.cryolabs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Wed, 29 Aug 2001 21:55:56 +0200 (CEST)
>>>>> Wouter Van Hemel <wvhemel@vub.ac.be> said:

> wvhemel> route add -inet6 3ffe:0b80:01c8:: -prefixlen 48 -interface lo0
>   (--> why lo0 ?? shouldn't this subnet be send to ed1, the internal net?)
>
> It should be better to add -reject.

wvhemel> For security's sake, you mean? Well, first I want to make it work, if it
wvhemel> doesn't work, there isn't anything to secure, is there :)

No, it for safety.

> wvhemel> 3) does rtadvd have to run on all machines, or just the router?
>
> Just on the router.

wvhemel> Ok, that seems logical.

It seems you don't want to use Play&Play of IPv6.  In this case, you
don't need to run rtadvd at all.  It is a server for providing
Plag&Play.

> wvhemel> Anybody with a better understanding of routing, please enlighten me, or
> wvhemel> point me to good resources... thanks :)
>
> Basically, if you use /etc/rc.conf, you can set something like:
>
> gif_interfaces="gif0"
> gifconfig_gif0="real_ip tunnel_end_point"
> ipv6_enable="YES"
> ipv6_network_interfaces="ed1"
> ipv6_prefix_ed1="3ffe:b80:1c8:1"
> ipv6_gateway_enable="YES"
> ipv6_router_enable="YES"
> ipv6_router_flags="-A 3ffe:b80:1c8::/48,gif0 -O 3ffe:b80:1c8::/48,gif0"
> rtadvd_enable="YES"
> rtadvd_interfaces="ed1"

wvhemel> This is what the script does, first I want to make everything work before
wvhemel> I put it in my rc-files.

I see.

wvhemel> How would you go about if you would make a static route for each host?

Yes, if you don't use Plag&Play of IPv6, you need to install static
route to each host.

wvhemel> That would be possible, no?

Yes, you can with something like:

    route add -inet6 default link-local-address-of-router%interface-of-the-host

When you use rc.conf, you can put something like:

    ipv6_defaultrouter="fe80::220:afff:fef8:7c44%de0"

I you choose to use Plag&Play, default route will be installed
automatically by invoking rtsol for end host.

wvhemel> Allow me to explain what I want (if possible) and don't know how to
wvhemel> achieve. I'd like to make the ip as short as possible, and appoint
wvhemel> 3ffe:b80:1c8::1 to 192.168.196.1, 3ffe:b80:1c8::2 to 192.168.196.2, and so
wvhemel> on.

I understand your needs.

wvhemel> Just to make sure, for the other machines, I just add something like
wvhemel> '3ffe:b80:1c8::2' to ed1 with ifconfig?

Yes, you can.  However, you cannot use Plug&Play of IPv6 in this case.
When you use rc.conf, you can put ipv6_ifconfig_* instead of
ipv6_prefix_*.

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010830.053248.115984750.ume>