Routing problem (sort of)

Daniel O'Connor doconnor at gsoft.com.au
Fri Sep 2 00:55:23 GMT 2005


On Tuesday 30 August 2005 21:43, Paul Schenkeveld wrote:
> > I am wondering what the "right" solution is here - I guess I could assign
> > 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 do 
it..

Here is what it currently is set to

metatron# ifconfig gif0
gif0: flags=8051<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=8843<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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050902/d0cbdfcc/attachment.bin


More information about the freebsd-net mailing list