Unix Technical Forum

default IPv6 route

This is a discussion on default IPv6 route within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi, I just noticed that in OpenBSD 3.9 is't possible to have two lines in /etc/mygate with the default ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:24 AM
Maurice Janssen
 
Posts: n/a
Default default IPv6 route

Hi,

I just noticed that in OpenBSD 3.9 is't possible to have two lines in
/etc/mygate with the default gateway for both IPv4 and IPv6.
Until now, I usually added a line in /etc/rc.local with a 'route add'
command for IPv6.

For the machines on my network with a static IPv6 address configured on
the physical interface, the new approach seems to work fine.

But on my firewall/router, the default route goes over a gif tunnel, not
a physical interface.
When I add the other side of the tunnel to /etc/mygate, there's no
default IPv6 route after a fresh boot. When I add the line
route add -inet6 default <gw>
to /etc/rc.local or append the line to hostname.gif0, it works.
When in /etc/mygate, it doesn't. It's not a big problem, but I'm
curious what the problem might be. I don't see any error messages and I
can't pinpoint the problem when looking at /etc/netstart.

Any ideas?

--
Maurice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:24 AM
Marco S Hyman
 
Posts: n/a
Default Re: default IPv6 route

Maurice Janssen <mauricej@xs4all.nl> writes:

> But on my firewall/router, the default route goes over a gif tunnel, not
> a physical interface.


From my /etc/hostname.gif0:

tunnel 208.201.244.209 208.201.234.221
inet6 alias 2001:05a8:0:1::0123 128
dest 2001:05a8:0:1::0122
! route add -inet6 default ::1
! route change -inet6 default -ifp gif0

I forget why ::1 is added as the default then changed to -ifp gif0, but
in any case it works great.

// marc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:24 AM
Maurice Janssen
 
Posts: n/a
Default Re: default IPv6 route

On 03 Aug 2006 16:54:29 -0700, Marco S Hyman wrote:
>Maurice Janssen <mauricej@xs4all.nl> writes:
>
>> But on my firewall/router, the default route goes over a gif tunnel, not
>> a physical interface.

>
>From my /etc/hostname.gif0:
>
> tunnel 208.201.244.209 208.201.234.221
> inet6 alias 2001:05a8:0:1::0123 128
> dest 2001:05a8:0:1::0122
> ! route add -inet6 default ::1
> ! route change -inet6 default -ifp gif0
>
>I forget why ::1 is added as the default then changed to -ifp gif0, but
>in any case it works great.


I have something similar in /etc/hostname.gif0 :

up giftunnel 82.94.107.210 194.109.5.241
up inet6 2001:888:10:9a8::2 2001:888:10:9a8::1 prefixlen 128
!route -qn add -host -inet6 default 2001:888:10:9a8::1

Works great too. But I was just wondering what goes wrong when I
remove the last line and put 2001:888:10:9a8::1 in /etc/mygate.
In that case I don't have a default IPv6 route after a fresh boot.
It works for my other machines, but not for this one with the tunnel.

Am I doing something wrong, is it a bug, or is the /etc/mygate sollution
just not intended to work with giftunnels?

It's not a problem, I'm just curious.

--
Maurice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com