Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2017 09:41:24 -0500
From:      Ernie Luzar <luzar722@gmail.com>
To:        Ben Woods <woodsb02@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: vimage and ipv4 addresses
Message-ID:  <58A5BA14.60106@gmail.com>
In-Reply-To: <CAOc73CAUxdVJTmfevt=rY-HoPSM9ytiOZO8No3UJ7Y%2B2Ez9=Gg@mail.gmail.com>
References:  <58A4D488.20709@gmail.com> <CAOc73CAUxdVJTmfevt=rY-HoPSM9ytiOZO8No3UJ7Y%2B2Ez9=Gg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ben Woods wrote:
> 
> On Thu, 16 Feb 2017 at 6:22 am, Ernie Luzar <luzar722@gmail.com 
> <mailto:luzar722@gmail.com>> wrote:
> 
>     Testing RELEASE 11.0 vimage. Using the bridge/epair method to configure
>     network access for vnet jails. Issuing "ifconfig epairXb ipv4-address"
>     command. A single ip address works fine, but if I say
>     10.0.10.2,10.10.10.3 I get error saying "bad value" If I issue the
>     ifconfig command two times, once using each ip address then only the
>     last ip address issued shows on the  epairxb ifconfig list in the vnet
>     jail. Is this telling me that a vnet jail can only have a single ipv4 ip
>     address? Is the syntax of the command incorrect?
> 
>     On the other hand doing basically the same thing with ipv6 does not work
>     that way. If I issue "ifconfig epairXb int6 ipv6-address" using a single
>     ipv6 ip address it works fine, but if I say fc00::2,fc00::3 I get error
>     saying "bad value" If I issue the ifconfig command two times, once using
>     each ip address then both ipv6 address issued shows on the epairxb
>     ifconfig list in the vnet jail.
> 
>     Any input greatly appreciated
> 
> 
> 
> I believe you need to use the alias keyword to set multiple ip addresses 
> on an interface.
> 
> See this handbook article on how to set it in /etc/rc.conf
> 
> https://www.freebsd.org/doc/handbook/configtuning-virtual-hosts.html
> 
> 
> See the ifconfig(8) man page for how to set it on the fly:
> 
> http://man.freebsd.org/ifconfig
> 
> 
> Good luck!
> 
> -Ben

Thanks that was the solution. First ipv4 address without alias and the 
remaining ipv4 addresses as an alias. This also works for ipv6.





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