Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2005 10:24:50 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Paul Schenkeveld <fb-net@psconsult.nl>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Routing problem (sort of)
Message-ID:  <200509021024.58621.doconnor@gsoft.com.au>
In-Reply-To: <20050830121325.GA56752@psconsult.nl>
References:  <200508301041.52092.doconnor@gsoft.com.au> <20050830121325.GA56752@psconsult.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4139502.G6vqTvlqcn
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 30 August 2005 21:43, Paul Schenkeveld wrote:
> > I am wondering what the "right" solution is here - I guess I could assi=
gn
> > an IP to the tunnel but it seems like a bit of a waste..
>
> You could assign the same IP address as dc1 to your gif0 interface but
> with a /32 netmask.

Hmm, I tried this but I can't work out the magic incantation to get it to d=
o=20
it..

Here is what it currently is set to

metatron# ifconfig gif0
gif0: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1452
        tunnel inet 150.101.23.134 --> 203.16.215.227
        inet6 fe80::240:c7ff:fe99:3a7c%gif0 prefixlen 64 scopeid 0x6
metatron# ifconfig dc1
dc1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 150.101.23.134 netmask 0xfffffffc broadcast 150.101.23.135
        inet6 fe80::240:c7ff:fe9a:1420%dc1 prefixlen 64 scopeid 0x2
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:40:c7:9a:14:20
        media: Ethernet autoselect (10baseT/UTP)
        status: active

If I try and assign an IP to the tunnel I get..
metatron# ifconfig gif0 alias 150.101.23.134 netmask 255.255.255.255
ifconfig: ioctl (SIOCAIFADDR): Destination address required
metatron# ifconfig gif0 150.101.23.134 netmask 255.255.255.255
ifconfig: ioctl (SIOCAIFADDR): Destination address required
metatron# ifconfig gif0 150.101.23.134/32 203.16.215.227
ifconfig: ioctl (SIOCAIFADDR): File exists
metatron# ifconfig gif0 alias 150.101.23.134/32 203.16.215.227
ifconfig: ioctl (SIOCAIFADDR): File exists

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart4139502.G6vqTvlqcn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBDF6Li5ZPcIHs/zowRAn5qAJ9IunYDY3hFRggarsJn+lsOU1GQLgCglPUT
BwrPuTWXC8cAtJO74MXecuA=
=f7cw
-----END PGP SIGNATURE-----

--nextPart4139502.G6vqTvlqcn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509021024.58621.doconnor>