Re: best place to specify ipv6 default route

2006-07-19 Thread Eric Pancer
On Wed, 2006-07-19 at 00:05:25 +0200, Paul de Weerd wrote...

 You should a) use grep -C and b) check out 3.9 or -current ;)

Yea I'm on 3.7-RELEASE still. ugh.

 [1]: http://marc.theaimsgroup.com/?l=openbsd-cvsm=112930507105045w=2

Aw damn, that's nice! Thanks todd@

- Eric



best place to specify ipv6 default route

2006-07-18 Thread Will H. Backman
The man page for mygate says that one can add an IPv6 gateway address to 
/etc/mygate, but it doesn't seem to add an entry to the routing table 
upon reboot.  I'm not using rtsol anywhere.
Most of my searching on the internet shows people adding a line to the 
/etc/hostname.gif0 file, i.e:


!route -n add -host -inet6 default 2001:470:1f00:::244

Adding the line to the hostname.if file does work, but putting the gateway IPv6 
address in /etc/mygate doesn't.
What is the suggested way to do this?
This is on 3.9-RELEASE.

Thanks in advance.

-- Will



Re: best place to specify ipv6 default route

2006-07-18 Thread Darrin Chandler
On Tue, Jul 18, 2006 at 04:37:23PM -0400, Will H. Backman wrote:
 The man page for mygate says that one can add an IPv6 gateway address to 
 /etc/mygate, but it doesn't seem to add an entry to the routing table 
 upon reboot.  I'm not using rtsol anywhere.
 Most of my searching on the internet shows people adding a line to the 
 /etc/hostname.gif0 file, i.e:
 
 !route -n add -host -inet6 default 2001:470:1f00:::244
 
 Adding the line to the hostname.if file does work, but putting the gateway 
 IPv6 address in /etc/mygate doesn't.
 What is the suggested way to do this?
 This is on 3.9-RELEASE.

Are you using *any* dhcp, by chance?

-- 
Darrin Chandler|  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |



Re: best place to specify ipv6 default route

2006-07-18 Thread Eric Pancer
On Tue, 2006-07-18 at 16:37:23 -0400, Will H. Backman wrote...

 The man page for mygate says that one can add an IPv6 gateway address to 
 /etc/mygate, but it doesn't seem to add an entry to the routing table 
 upon reboot.  I'm not using rtsol anywhere.
 Most of my searching on the internet shows people adding a line to the 
 /etc/hostname.gif0 file, i.e:
 
 !route -n add -host -inet6 default 2001:470:1f00:::244
 
 Adding the line to the hostname.if file does work, but putting the gateway 
 IPv6 address in /etc/mygate doesn't.
 What is the suggested way to do this?
 This is on 3.9-RELEASE.

Put it in /etc/hostname.gifX.

Such as this..

$ cat /etc/hostname.gif0
giftunnel 207.227.243.193 205.234.148.199
!ifconfig gif0 inet6 2001:4830:e5:6::2 2001:4830:e5:6::1 prefixlen 128 mtu 1480
!route -n add -inet6 default 2001:4830:e5:6::1

Then you'll be all set to go.



Re: best place to specify ipv6 default route

2006-07-18 Thread Will H. Backman

Darrin Chandler wrote:


On Tue, Jul 18, 2006 at 04:37:23PM -0400, Will H. Backman wrote:
 The man page for mygate says that one can add an IPv6 gateway address to
 /etc/mygate, but it doesn't seem to add an entry to the routing table
 upon reboot.  I'm not using rtsol anywhere.
 Most of my searching on the internet shows people adding a line to the
 /etc/hostname.gif0 file, i.e:

 !route -n add -host -inet6 default 2001:470:1f00:::244

 Adding the line to the hostname.if file does work, but putting the 
gateway

 IPv6 address in /etc/mygate doesn't.
 What is the suggested way to do this?
 This is on 3.9-RELEASE.

Are you using *any* dhcp, by chance?

--
Darrin Chandler|  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |

It did have dhcp when I installed, but then I changed the 
/etc/hostname.xl0 to contain only

inet IP NETMASK.



Re: best place to specify ipv6 default route

2006-07-18 Thread Eric Pancer
On Tue, 2006-07-18 at 17:13:30 -0400, Will H. Backman wrote...

 Yes, that does work, but I'm curious if /etc/mygate should work.  I 
 usually use /etc/mygate for IPv4, so I'm inclined to use it for IPv6 also.

Send a patch if you really want the behavior, but I'm pretty sure that's
only intended for IPv4.

$ grep -A 2 -B 2 mygate /etc/netstart
done

# /etc/mygate, if it exists, contains the name of my gateway host
# that name must be in /etc/hosts.
if [ -f /etc/mygate ]; then
route -qn delete default  /dev/null 21
route -qn add -host default `stripcom /etc/mygate`
fi

- Eric



Re: best place to specify ipv6 default route

2006-07-18 Thread Darrin Chandler
On Tue, Jul 18, 2006 at 05:10:11PM -0400, Will H. Backman wrote:
 It did have dhcp when I installed, but then I changed the 
 /etc/hostname.xl0 to contain only
 inet IP NETMASK.

There's a comment in /etc/netstart that says the gateway *must* exist in
/etc/hosts. I just checked my machine using ip4 in mygate, and I do NOT
have a hosts entry, and it's been working. Hmm.

The script in netstart is simple and clean. You might try running bits
of it and see what's not working. Looks to me like it should work fine,
though I can't see the reason for an entry in /etc/hosts so I might be
missing something.

-- 
Darrin Chandler|  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |



Re: best place to specify ipv6 default route

2006-07-18 Thread Darrin Chandler
On Tue, Jul 18, 2006 at 04:33:36PM -0500, Eric Pancer wrote:
 $ grep -A 2 -B 2 mygate /etc/netstart
 done
 
 # /etc/mygate, if it exists, contains the name of my gateway host
 # that name must be in /etc/hosts.
 if [ -f /etc/mygate ]; then
 route -qn delete default  /dev/null 21
 route -qn add -host default `stripcom /etc/mygate`
 fi

Ahhh. That's not what's in my 3.9-stable. The netstart in -stable has
two similar sections, one for ip4 and one for ip6.

-- 
Darrin Chandler|  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |



Re: best place to specify ipv6 default route

2006-07-18 Thread Paul de Weerd
On Tue, Jul 18, 2006 at 04:33:36PM -0500, Eric Pancer wrote:
| Send a patch if you really want the behavior, but I'm pretty sure that's
| only intended for IPv4.

The patch is already there .. check [1]

| $ grep -A 2 -B 2 mygate /etc/netstart
| done
|
| # /etc/mygate, if it exists, contains the name of my gateway host
| # that name must be in /etc/hosts.
| if [ -f /etc/mygate ]; then
| route -qn delete default  /dev/null 21
| route -qn add -host default `stripcom /etc/mygate`
| fi

You should a) use grep -C and b) check out 3.9 or -current ;)

Cheers,

Paul 'WEiRD' de Weerd

[1]: http://marc.theaimsgroup.com/?l=openbsd-cvsm=112930507105045w=2

--
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/

[demime 1.01d removed an attachment of type application/pgp-signature]