[afnog] Two IP Addresses on the same Interface

stevem at accesskenya.com stevem at accesskenya.com
Wed Jul 11 11:54:12 UTC 2007


Vincent Ngundi said:
> Hi All,
>
> I'd like to configure two routable IP addresses (from different
> prefixes) on the same NIC. How can I go about this in FreeBSD?
>

Without rebooting:

ifconfig fxp0 x.x.x.x netmask x.x.x.x alias

In rc.conf to survive reboots:
ifconfig_fxp0_alias0="inet x.x.x.x netmask x.x.x.x"

If your NIC is something other than fxp0 (like rl0) replace that. Of
course your router has to have an IP on the same subnet as well.....

Regards,
Steve



-----------------------------------------
This email was sent using Communicatons Solutions LTD WebMail.
   " "
http://www.accesskenya.com/



More information about the afnog mailing list