Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2014 08:28:28 -0600
From:      Sergio Tam <tam.sergio@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: how to add an aliased nic at boot time
Message-ID:  <CA%2Bau=te-Fc12WasJzwS_YMg_=dBCU=AUw0-L87BWf0WNg7Pm1Q@mail.gmail.com>
In-Reply-To: <CAGBxaX=SmRK6_20gLWOY6m2G77mVQqB4kVL1BYNmOrFg8kvQ=g@mail.gmail.com>
References:  <CAGBxaX=SmRK6_20gLWOY6m2G77mVQqB4kVL1BYNmOrFg8kvQ=g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 Hello

2014-02-18 7:44 GMT-06:00 Aryeh Friedman <aryeh.friedman@gmail.com>:
> I need to create two virtual nics and make them get assigned at boot
> time... the exact command line I need to transfer to rc.conf is:
>
> ifconfig re0 alias 192.168.0.1 up


 RC.CONF(5)

 http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5


See

network_interfaces

It is possible to add IP alias entries using ifconfig(8) syn-
tax with the address family keyword such as inet.  Assuming
that the interface in question was ed0, it might look some-
thing like this:

ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"


or

Google search: ifconfig add alias to rc.conf freebsd
http://www.cyberciti.biz/tips/freebsd-how-to-setup-2-ip-address-on-one-nic.html



Regards.



>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bau=te-Fc12WasJzwS_YMg_=dBCU=AUw0-L87BWf0WNg7Pm1Q>