Skip site navigation (1)Skip section navigation (2)
Date:      08 Nov 2002 11:49:26 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: IP aliasing with ppp
Message-ID:  <44u1is3t2h.fsf@be-well.ilk.org>
In-Reply-To: <E18A05V-000Axt-00@laurie.sux.org.uk>
References:  <E18A05V-000Axt-00@laurie.sux.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
krad <krad@krad.org.uk> writes:

> hi,
>  
> I currently have a /29 assigned by my isp for my dsl. I have got my bsd box connecting fine and natd is working off one off the ips. I would like to bind the remaining 5 ips to the tun0 interface on the bsd box and enable static nating to certain boxes behind the firewall. I am however having problems as when I use ifconfig i get strange results e.g.
>  
> tun0: flags=8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1500
>         inet 123.54.67.94 --> 65.4.32.1 netmask 0xffffff00 
>         Opened by PID 6896
> root on gateway# ifconfig tun0 alias inet 123.54.67.93
> root on gateway# ifconfig tun0
> tun0: flags=8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1500
>         inet 123.54.67.94 --> 65.4.32.1 netmask 0xffffff00 
>         inet 192.168.0.254 --> 123.54.67.93. netmask 0xffffff00 
>         Opened by PID 6896
> root on gateway# 
>  
> im not sure whats going on here but it certainly isnt correct. I have also tried playing around with ifalias commands in ppp with no problems. Am I going about this in completely the wrong way or is my syntax wrong when using ifconfig.

Well, it should include a netmask; in this case, an all-1's netask (0xffffffff).

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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