multi-homing in freebsd
Daniel Nebdal
dnebdal at gmail.com
Sat Mar 9 12:29:36 UTC 2013
Going by Zaphod's recommendation of using a /32 for each IP, how about this?
ifconfig arge0 inet 192.168.1.100/32
ifconfig arge0 alias 192.169.1.100/32
I wouldn't recommend 192.169, though - only 192.168.x.x is reserved
for private networks, and 192.169 is a valid IP-routable prefix,
assigned to some US company.
To be exact: The ranges from RFC1918 are 10.0.0.0/8, 172.16.0.0 /20
and 192.168.0.0/24.
On Sat, Mar 9, 2013 at 9:57 AM, Yasir hussan <kolyasir at gmail.com> wrote:
> Kindly will u give me example with cammand line, which can test on my
> freebsd machine, i want two ips 192.168.1.100 and 192.169.1.100 to be work
> on single network interface, my default interface for network is arge0
>
> On Sat, Mar 9, 2013 at 3:08 AM, Zaphod Beeblebrox <zbeeble at gmail.com> wrote:
>
>> On Sat, Mar 9, 2013 at 3:04 AM, Yasir hussan <kolyasir at gmail.com> wrote:
>>
>>> i just want to run multiple IPs for single network card in freebsd
>>>
>>>
>> OK. A better question. About the only caution I can give here (assuming
>> you don't mean something more interesting like vlans and whatnot) is that
>> if both IP addresses are on the SAME network, use a /32 as the netmask (it
>> works better). If they are on different networks, specify the netmask as
>> normal.
>>
>> You may, at this point, need a method to choose which IP address to use
>> for any particular connection. There's a pile of documentation waiting for
>> you.
>>
>>
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
More information about the freebsd-current
mailing list