From owner-freebsd-current@FreeBSD.ORG Sat Mar 9 18:12:54 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B800BF02 for ; Sat, 9 Mar 2013 18:12:54 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id 17135313 for ; Sat, 9 Mar 2013 18:12:53 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id fs12so2703435lab.11 for ; Sat, 09 Mar 2013 10:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=mZcSrhbp+1yivprdVU546xKkZyUaNNp55lVoFH6M0TY=; b=yWhFW0SQ+ZQ/YVZGHo9Tuw0VBG0ueZ92joDeLEV9iTHZRfOkpUIqKcHvUb7e5z8b2U dBSMr3K98JdkmtXD3BM0S9ddorYZty69Sh9LD/DfPyW/Sk2eNkU65J/+yhHz38X5+K5w uZiCmXtoZ2kxKAV9BqmNx3rfcPAPasUh28IiRXb8aWoNKo5rlHhY2/EWM15gZpFuN0D/ GmjtGtXPz++4O8xoMtiFBP+ufWzaYG62lL+rOYbgmdPmmWiDduRIfSF1E1cyO8onTt/f XLUg2J0Fis4kQE7E+n1bcRlKGsgk9vs+OQTyQ2TxhkOm3i4Xrx7J3CKjeipVkwiTiiiY hemg== MIME-Version: 1.0 X-Received: by 10.112.54.6 with SMTP id f6mr2540180lbp.104.1362852772836; Sat, 09 Mar 2013 10:12:52 -0800 (PST) Received: by 10.112.80.133 with HTTP; Sat, 9 Mar 2013 10:12:52 -0800 (PST) In-Reply-To: References: Date: Sat, 9 Mar 2013 19:12:52 +0100 Message-ID: Subject: Re: multi-homing in freebsd From: Daniel Nebdal To: Yasir hussan Content-Type: text/plain; charset=ISO-8859-1 Cc: Zaphod Beeblebrox , Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Mar 2013 18:12:54 -0000 Oh, you specifically need them to have different interfaces? That's a bit more complicated. I guess you could rig something with netgraph (ngctl and such), but I'm not familiar with it... -- Daniel Nebdal On Sat, Mar 9, 2013 at 2:57 PM, Yasir hussan wrote: > i want to have differnet ips`s and each should have different interface, it > could be a virtual interface. like u can made it like > > ifconfig arge0.1 create > > but each ip should able to access from differnet machine > > On Sat, Mar 9, 2013 at 7:29 AM, Daniel Nebdal wrote: >> >> 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 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 >> > wrote: >> > >> >> On Sat, Mar 9, 2013 at 3:04 AM, Yasir hussan >> >> 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" > >