From owner-freebsd-current@FreeBSD.ORG Tue Mar 12 19:03:24 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 D2523553 for ; Tue, 12 Mar 2013 19:03:24 +0000 (UTC) (envelope-from kolyasir@gmail.com) Received: from mail-qe0-f53.google.com (mail-qe0-f53.google.com [209.85.128.53]) by mx1.freebsd.org (Postfix) with ESMTP id 942B630B for ; Tue, 12 Mar 2013 19:03:24 +0000 (UTC) Received: by mail-qe0-f53.google.com with SMTP id cz11so119493qeb.40 for ; Tue, 12 Mar 2013 12:03:18 -0700 (PDT) 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:content-type; bh=jfSYPBz9J153kSloxCByttP/cD4zoLuCgRjzJa9lEZo=; b=c5pn/i4tsBIn0WuExSwXwpMzjToSjyV5+gpi3vi18dmbMr63vVdf9DpK019694p84A 0qsMI/tMb7/kBK68HAMa+iVOv9JQmaQ1/CeSyFUwO5oiFHZTrdSKpX/4A9ofiGYwX0sA mxgz54l25VfpPwGRbBrVW4Ou+/5SfvFFB5FKYP7iUvYy3X8cQ5zdctkdz4sNMppK2UkE wrF9IOGXhw6/E8lfpSclWnx0VVXnWuYrHtAMXo8qmmHgzTH4IdVSmYrrfFKhvdpQUZlh PkO14SG1n+ayQItwIL4nxnqYaHaqeQOYFziG9D0HQFf8y+AcVS+Dusnnia3pg/P/J+wh ytEg== MIME-Version: 1.0 X-Received: by 10.49.2.7 with SMTP id 7mr615617qeq.45.1363114998299; Tue, 12 Mar 2013 12:03:18 -0700 (PDT) Received: by 10.49.48.197 with HTTP; Tue, 12 Mar 2013 12:03:18 -0700 (PDT) In-Reply-To: <20130312183947.GB88785@funkthat.com> References: <20130312183947.GB88785@funkthat.com> Date: Wed, 13 Mar 2013 00:03:18 +0500 Message-ID: Subject: Re: using multiple interfaces for same Network Card From: Yasir hussan To: Yasir hussan , Current Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 19:03:25 -0000 U say u were successfully using vlans by vlandev in FreeBSD , Can u send me exact commands and configuration which u were applying, It will be very helpful for me... Thank On Tue, Mar 12, 2013 at 11:39 PM, John-Mark Gurney wrote: > Yasir hussan wrote this message on Tue, Mar 12, 2013 at 23:32 +0500: > > Yes, i want to use them as vlan interface, Does any one has used > *vlandev*, > > after seen this > > > http://www.cyberciti.biz/faq/howto-configure-freebsd-vlans-with-ifconfig-command/i > > tried to use it as > > > > ifconfig vlan11 create 10.10.11.1 255.255.255.0 vlan 11 vlandev arge0 > > ifconfig vlan12 create 10.10.12.1 255.255.255.0 vlan 12 vlandev arge0 > > ifconfig vlan13 create 10.10.13.1 255.255.255.0 vlan 13 vlandev arge0 > > ifconfig vlan14 create 10.10.14.1 255.255.255.0 vlan 14 vlandev arge0 > > > > i was expecting that it will create interfaces which will work under > arge0, > > and will able to ping from any pc, Does any one have used it, kindly > guide > > me about it > > vlans are a way to add different broadcast domains.. You need to have a > vlan capable switch/machine connected and properly configured... If you > plug in the machine to a normal switch, and the other machine isn't vlan > aware not much will happen... > > Now if you configure your machine to route (net.inet.ip.forwarding) and > setup the pc w/ the proper routing tables, you'll be able to ping the > machines... > > If this doesn't help, please talk w/ a local network engineer to help > you configure your network properly... > > I'm succussfully using FreeBSD with both vlans, and aliases (multiple > ips on a single interface aka broadcast domain)... > > > On Tue, Mar 12, 2013 at 5:06 PM, Ian FREISLICH wrote: > > > > > 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 > > > > > > I still think you're confusing Linux semantics with FreeBSD semantics. > > > > > > On linux you would have: > > > eth0 Link encap:Ethernet HWaddr 00:1E:C9:53:0B:61 > > > inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 > > > inet6 addr: fe80::21e:c9ff:fe53:b61/64 Scope:Link > > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > > RX packets:211328068 errors:0 dropped:0 overruns:0 frame:0 > > > TX packets:368394006 errors:0 dropped:0 overruns:0 carrier:0 > > > collisions:0 txqueuelen:1000 > > > RX bytes:34065846811 (31.7 GiB) TX bytes:476377525764 (443.6 > > > GiB) > > > Interrupt:169 Memory:e6000000-e6011100 > > > > > > eth0:1 Link encap:Ethernet HWaddr 00:1E:C9:53:0B:61 > > > inet addr:10.0.1.1 Bcast:10.0.1.255 Mask:255.255.255.0 > > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > > Interrupt:169 Memory:e6000000-e6011100 > > > > > > > > > On FreeBSD you would have: > > > > > > re0: flags=8843 metric 0 mtu > 1500 > > > > > > > options=8209b > > > ether 54:04:a6:96:0c:1e > > > inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 > > > inet 10.0.1.1 netmask 0xffffff00 broadcast 10.0.1.255 > > > media: Ethernet autoselect (1000baseT ) > > > status: active > > > > > > These are both the same thing. Is there any particular reason that > > > you want multiple interfaces? I can't see a use for it beyond "it's > > > what I'm used to seeing" unless they're VLAN interfaces. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >