Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options]

2008-03-23 Thread Malcolm Clarke

Hi

Does anyone know the IPv6 vesion of the command that would be of the form

gifconfig_gif0=fec0::1 fec0::2

that would set up the two physical ends of a tunnel?

Sadly the above does not works as it does not recognise the IPv6 address 
as there is no


ipv6_gifconfig_gif0=fec0::1 fec0::2

to correspond to the command

ifconfig gif0 inet6 tunnel src-addr dst_addr

Regards

Malcolm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options]

2008-03-23 Thread Kevin Downey
On Sun, Mar 23, 2008 at 5:35 AM, Malcolm Clarke
[EMAIL PROTECTED] wrote:
 Hi

  Does anyone know the IPv6 vesion of the command that would be of the form

  gifconfig_gif0=fec0::1 fec0::2

  that would set up the two physical ends of a tunnel?

  Sadly the above does not works as it does not recognise the IPv6 address
  as there is no

  ipv6_gifconfig_gif0=fec0::1 fec0::2

  to correspond to the command

  ifconfig gif0 inet6 tunnel src-addr dst_addr

  Regards

  Malcolm


sorry for the duplicate mail Malcolm, forgot to reply to the list as well.

the attached patch should let use the inet6 keyword.
example:

gifconfig_gif0=inet6 fec0::1 fec0::2






--- /etc/network.subr   2008-03-23 09:50:35.0 -0700
+++ /tmp/network.subr   2008-03-23 10:06:51.0 -0700
@@ -470,7 +470,6 @@
fi
done
 }
-
 gif_up() {
# The following must be removed once RELENG_7 is branched.
case ${gif_interfaces} in
@@ -486,6 +485,11 @@
'')
continue
;;
+   *inet6*)
+   ifconfig $i create /dev/null 21
+   ifconfig $i inet6 tunnel `echo ${peers} | cut -d \  -f 
2-`
+   ifconfig $i up
+   ;;
*)
ifconfig $i create /dev/null 21
ifconfig $i tunnel ${peers}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options]

2008-03-23 Thread Malcolm Clarke

Dear Kevin

Many thanks.

Maybe this can make it to the next release to fill a gap.

Regards

Malcolm


Kevin Downey wrote:


On Sun, Mar 23, 2008 at 5:35 AM, Malcolm Clarke
[EMAIL PROTECTED] wrote:
 


Hi

Does anyone know the IPv6 vesion of the command that would be of the form

gifconfig_gif0=fec0::1 fec0::2

that would set up the two physical ends of a tunnel?

Sadly the above does not works as it does not recognise the IPv6 address
as there is no

ipv6_gifconfig_gif0=fec0::1 fec0::2

to correspond to the command

ifconfig gif0 inet6 tunnel src-addr dst_addr

Regards

Malcolm

   



sorry for the duplicate mail Malcolm, forgot to reply to the list as well.

the attached patch should let use the inet6 keyword.
example:

gifconfig_gif0=inet6 fec0::1 fec0::2






--- /etc/network.subr   2008-03-23 09:50:35.0 -0700
+++ /tmp/network.subr   2008-03-23 10:06:51.0 -0700
@@ -470,7 +470,6 @@
fi
done
}
-
gif_up() {
# The following must be removed once RELENG_7 is branched.
case ${gif_interfaces} in
@@ -486,6 +485,11 @@
'')
continue
;;
+   *inet6*)
+   ifconfig $i create /dev/null 21
+   ifconfig $i inet6 tunnel `echo ${peers} | cut -d \  -f 
2-`
+   ifconfig $i up
+   ;;
*)
ifconfig $i create /dev/null 21
ifconfig $i tunnel ${peers}

 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options]

2008-03-22 Thread Bruce Cran

Malcolm Clarke wrote:

We are trying to configure an IPv6 tunnel for IPSec, ie IPv6 in IPv6.

The command line would be

ifconfig gif0 inet6 tunnel src-addr dst_addr (IPv6 addresses)

There appears to be no equivalent line for rc.conf.

Regards

Malcolm


To configure an if_gif interface for IPv6 use:

ipv6_ifconfig_gif0=src-addr dst_addr

--
Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options]

2008-03-22 Thread Malcolm Clarke

Dear Bruce

Thank you for a prompt response.

The command you give will set the two ends of the GIF connection and we 
are using it, but it is not the command that sets the physical ends of 
the tunnel.


We would expect something of the form

gifconfig_gif0=fec0::1 fec0::2

but there appears to be no ipv6 form

Regards

Malcolm


Bruce Cran wrote:


Malcolm Clarke wrote:


We are trying to configure an IPv6 tunnel for IPSec, ie IPv6 in IPv6.

The command line would be

ifconfig gif0 inet6 tunnel src-addr dst_addr (IPv6 addresses)

There appears to be no equivalent line for rc.conf.

Regards

Malcolm



To configure an if_gif interface for IPv6 use:

ipv6_ifconfig_gif0=src-addr dst_addr

--
Bruce



--
---
Dr Malcolm Clarke
Senior Lecturer in Data Communication Systems and Telemedicine
Department of Information Systems and Computing
Brunel University
Uxbridge
Middlesex
UB8 3PH
UK

Tel: +44 1895 265053
Fax: +44 1895 251686
http://www.brunel.ac.uk/about/acad/siscm/research/themes/is/groups/bright/people



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]