Discussion:
[netbsd4.0.1] how to setup a static route on netbsd4.0.1
(too old to reply)
wang_jiabo
2009-02-24 02:48:05 UTC
Permalink
Hi, all :
I have been changed netbsd4.0.1 to a router.
but how to setup a static route on my netbsd router
Thanks
regards
jiabo

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
wang_jiabo
2009-02-24 03:13:37 UTC
Permalink
I have changed netbsd4.0.1 to a router.
but how to setup a static route on my netbsd router
Thanks
regards
jiabo
sorry, I need ipv6 static route.
thanks
jiabo

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
wang_jiabo
2009-02-24 05:28:48 UTC
Permalink
Post by wang_jiabo
I have changed netbsd4.0.1 to a router.
but how to setup a static route on my netbsd router
Thanks
regards
jiabo
sorry, I need ipv6 static route.
thanks
jiabo
the follow is my netbsd router configuration,
thanks everyone
regards
jiabo

1.

in the rc.conf file:

ip6mode=”router”

rtsol=”NO”

rtadvd=”YES”

rtadvd_flags=”nfe0 nfe1” # nfe0 and nfe1 are your NIC card name

2. create /etc/ifconfig.nfe0

up

inet6 3ffe:501:ffff:104::2 prefixlen 64

3. create /etc/ifconfig.nfe1

up

inet6 3ffe:501:ffff:100::1 prefixlen 64


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
basteon
2009-02-24 12:53:12 UTC
Permalink
hi,
look at that...
man route
HISTORY
The route command appeared in 4.2BSD. IPv6 support was added by
WIDE/KAME project

__
Have a nice day.
Post by wang_jiabo
Post by wang_jiabo
I have changed netbsd4.0.1 to a router.
but how to setup a static route on my netbsd router
Thanks
regards
jiabo
sorry, I need ipv6 static route.
thanks
jiabo
the follow is my netbsd router configuration,
thanks everyone
regards
jiabo
1.
ip6mode=”router”
rtsol=”NO”
rtadvd=”YES”
rtadvd_flags=”nfe0 nfe1” # nfe0 and nfe1 are your NIC card name
2. create /etc/ifconfig.nfe0
up
inet6 3ffe:501:ffff:104::2 prefixlen 64
3. create /etc/ifconfig.nfe1
up
inet6 3ffe:501:ffff:100::1 prefixlen 64
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Ignatios Souvatzis
2009-02-24 13:32:41 UTC
Permalink
ip6mode=?router?
rtsol=?NO?
rtadvd=?YES?
rtadvd_flags=?nfe0 nfe1? # nfe0 and nfe1 are your NIC card name
1. You should replace the question marks with real ASCII " (hex 22), in
those files!

2. You're aware that these addresses
inet6 3ffe:501:ffff:104::2 prefixlen 64
inet6 3ffe:501:ffff:100::1 prefixlen 64
belong to the old experimental overlay network 6BONE, that has been
switched off since 2006/6/6? Other than that, the syntax is like
for IPv4 (only replace -inet by -inet6),

route add (network) (gateway)

e.g.

route add -inet6 2001:db8:1200::/40 2001:db8:1234:5678::27

-is
--
seal your e-mail: http://www.gnupg.org/

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Manuel Bouyer
2009-02-24 21:23:56 UTC
Permalink
Post by wang_jiabo
I have been changed netbsd4.0.1 to a router.
but how to setup a static route on my netbsd router
With the route(8) command.
To make it persistent across reboot you can add the ipv6 address of the
gateway to /etc/mygate6, or to the defaultroute6 variable in /etc/rc.conf
--
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
wang_jiabo
2009-02-25 01:18:31 UTC
Permalink
Post by Ignatios Souvatzis
ip6mode=?router?
rtsol=?NO?
rtadvd=?YES?
rtadvd_flags=?nfe0 nfe1? # nfe0 and nfe1 are your NIC card name
1. You should replace the question marks with real ASCII " (hex 22), in
those files!
2. You're aware that these addresses
inet6 3ffe:501:ffff:104::2 prefixlen 64
inet6 3ffe:501:ffff:100::1 prefixlen 64
belong to the old experimental overlay network 6BONE, that has been
switched off since 2006/6/6? Other than that, the syntax is like
for IPv4 (only replace -inet by -inet6),
route add (network) (gateway)
e.g.
route add -inet6 2001:db8:1200::/40 2001:db8:1234:5678::27
-is
thanks your infomation.
you are correct.
I just used:
route add -inet6 3ffe:501:ffff:103:: -prefixlen 64
3ffe:501:ffff:104::1

we used the 3ffe address , just internal test, so thanks your help

best regards
jiabo

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...