On Sat, Feb 19, 2011 at 09:40:40PM +0000, Stuart Henderson wrote:
> On 2011-02-19, Claudio Jeker <[email protected]> wrote:
> > On Sat, Feb 19, 2011 at 02:01:36AM -0500, Daniel Ouellet wrote:
> >> On 2/19/11 12:51 AM, Ted Unangst wrote:
> >> >On Fri, Feb 18, 2011 at 3:58 PM, Daniel Ouellet<[email protected]>
> >> >wrote:
> >> >>On 2/18/11 3:45 PM, Daniel Ouellet wrote:
> >> >>>
> >> >>>On 2/18/11 3:23 PM, Ted Unangst wrote:
> >> >>Unless you refer at me writing /32 instead of the long way
> >> >>255.255.255.255?
> >> >
> >> >Ah, yes, I thought you somehow meant just writing 10.1.1.1/32, for
> >> >instance.
> >>
> >> Sorry to have added to the confusion there, My bad!
> >>
> >> Would be cool to be able to do it however like in the pf.conf and
> >> bgpd.conf, etc. (;>
> >>
> >
> > It is possible to that in ifconfig as well. I use it all the time.
> > It works in hostname.if if you skip the inet IIRC.
>
> For main addresses, yes it does (either with or without the "inet"),
> but not for aliases.
>
# ifconfig tun10
tun10: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
lladdr fe:e1:ba:d3:cc:66
priority: 0
groups: tun
status: no carrier
inet 192.168.237.129 netmask 0xfffffff0 broadcast 192.168.237.143
inet6 fe80::fce1:baff:fed3:cc66%tun10 prefixlen 64 scopeid 0x7
inet6 2001:4bf8:bad:beef::1 prefixlen 64
# ifconfig tun10 192.168.237.17/27 alias
# ifconfig tun10 192.168.237.18/32 alias
# ifconfig tun10
tun10: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
lladdr fe:e1:ba:d3:cc:66
priority: 0
groups: tun
status: no carrier
inet 192.168.237.129 netmask 0xfffffff0 broadcast 192.168.237.143
inet6 fe80::fce1:baff:fed3:cc66%tun10 prefixlen 64 scopeid 0x7
inet6 2001:4bf8:bad:beef::1 prefixlen 64
inet 192.168.237.17 netmask 0xffffffe0 broadcast 192.168.237.31
inet 192.168.237.18 netmask 0xffffffff broadcast 192.168.237.18
So adding the line
192.168.237.18/32 alias
to hostname.tun10 should work just fine.
--
:wq Claudio