From owner-freebsd-current@FreeBSD.ORG Sat Mar 9 14:06:07 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 8F928100 for ; Sat, 9 Mar 2013 14:06:07 +0000 (UTC) (envelope-from kolyasir@gmail.com) Received: from mail-qe0-f47.google.com (mail-qe0-f47.google.com [209.85.128.47]) by mx1.freebsd.org (Postfix) with ESMTP id 4390A2D7 for ; Sat, 9 Mar 2013 14:06:07 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id q19so1541654qeb.6 for ; Sat, 09 Mar 2013 06:06:06 -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=r840mK1OKzKGEEyPtZxobrnvum535Yf77Q1S9Z+9yX4=; b=ZZ7aivX95PyNmz4/pvMQR8GFvUYBA0ZeCDcaiXNTea2A4X+eYZQHqhYO6FKBNwxGUM sbnRsYiKmvDBhH32mgfffxzRB0sDmvubJ5ohdrmFn6CjBQCURcWh1baVm/n74AMgvlee loL9DKWRHL2SJ6/BM7IED2afB2BQqWNQbAx1ZojLXzyGtNzRhrwXMIOehvOjHkLEeIEi z2O62aE1FItE+ooZnO0JKGR2fBNoeT0zIAFVcjeIb1Qw4B10TSjcndCayIb9fLjhLWIq SM93Zs+yadtUYCMp98UfMMdnxf/gKwIsgQOX84dfbC1Smcg2W21uTUaroSm7Gq13u5D6 Ux9A== MIME-Version: 1.0 X-Received: by 10.224.185.148 with SMTP id co20mr8879691qab.94.1362837476461; Sat, 09 Mar 2013 05:57:56 -0800 (PST) Received: by 10.49.48.197 with HTTP; Sat, 9 Mar 2013 05:57:56 -0800 (PST) In-Reply-To: References: Date: Sat, 9 Mar 2013 08:57:56 -0500 Message-ID: Subject: Re: multi-homing in freebsd From: Yasir hussan To: Daniel Nebdal Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 14:06:07 -0000 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" >