Re: multi-homing in freebsd

看板FB_current作者時間12年前 (2013/04/27 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/13 (看更多)
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@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@gmail.com> wrote: > >> On Sat, Mar 9, 2013 at 3:04 AM, Yasir hussan <kolyasir@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUsBazf (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUsBazf (FB_current)