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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|