From owner-freebsd-current@FreeBSD.ORG Tue Mar 12 12:02:31 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 E410F26E for ; Tue, 12 Mar 2013 12:02:31 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 6855BFDF for ; Tue, 12 Mar 2013 12:02:31 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.6) with ESMTP id r2CC2EFU001993 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 12 Mar 2013 12:02:21 GMT (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.8.0 smtp.infracaninophile.co.uk r2CC2EFU001993 Authentication-Results: smtp.infracaninophile.co.uk/r2CC2EFU001993; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <513F1945.4000902@freebsd.org> Date: Tue, 12 Mar 2013 12:02:13 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: using multiple interfaces for same Network Card References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk 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: Tue, 12 Mar 2013 12:02:32 -0000 On 12/03/2013 10:41, Yasir hussan wrote: > Thanks for notic but all the elebration was for make alias on one interface > but i want to have multiple interface, i can no where that some one would > have tring to creating new interfaces and using them, or may be i am > missing something, just send its solution if have, solution should be for Sorry, we're not understanding you very well. If you have a network card with several ethernet sockets on it, then the OS will already present you with an interface per socket. That's pretty obvious, so I guess that's not what you're really after. Do you mean you want to use VLans? (virtual local area networks) -- that involves creating what are effectively separate virtual interfaces, one for ech vlan, all based on the same physical interface. Note: you need support and configuration for this in you networking switch gear. However, to configure vlan interfaces on FreeBSD, edit /etc/rc.conf to add first a setting to show what vlan interfaces you want to attach to your physical interface: vlans_em0="vlan101 vlan102 vlan107" Then you can set the vlan tag on creation of each clan by adding: create_args_vlan101="vlan 101" create_args_vlan102="vlan 102" create_args_vlan107="vlan 107" plus you'll need to set up IP addresses on the new vlan interfaces exactly as you would for a physical interface/ See vlan(4) for more detail. Cheers, Matthew