From owner-freebsd-current@FreeBSD.ORG Sat Mar 9 12:29:36 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3C5DD64A for ; Sat, 9 Mar 2013 12:29:36 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx1.freebsd.org (Postfix) with ESMTP id BEA1CDA6 for ; Sat, 9 Mar 2013 12:29:34 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id gf7so2025918lbb.32 for ; Sat, 09 Mar 2013 04:29:28 -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=R7+d+2RcpB+857OxBGwbC3k/cBrFhqGrB3O2PeX0hAs=; b=tAsChYZWIMSrDHDnIwrCCVTUIz3u7Nsceu2caABF8/KtzrsrApmAQfbSQzLc5cjBp2 Kp2HNCdSEDilRkjcSV5b8gZHZWnYnGRMvLjvi1m/VLKFnYHXZwKY93Pskg6JNfUxFYel mOUH3s5TBaLK1JN2IpetBM6bVvNibnqL7lrYxaudn7q7pKEoLFE6Nu5GTKz7qpeWtLeS It1p85N5cHhdaVqeZP7luj8G2TjFWxyfpO3F1cXCLQ9V1IrraIbxEzuOzAUv5QBDAfzH 7Zup67GEc/9+QgzKilQPDZali5wiBhJagl8hsVOz9yylzpbcS58VMsWYutvvPJm8gMQF PWxQ== MIME-Version: 1.0 X-Received: by 10.152.123.34 with SMTP id lx2mr4861491lab.52.1362832167929; Sat, 09 Mar 2013 04:29:27 -0800 (PST) Received: by 10.112.80.133 with HTTP; Sat, 9 Mar 2013 04:29:27 -0800 (PST) In-Reply-To: References: Date: Sat, 9 Mar 2013 13:29:27 +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 12:29:36 -0000 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"