From owner-freebsd-questions@FreeBSD.ORG Fri May 14 19:52:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 713B316A4CE for ; Fri, 14 May 2004 19:52:01 -0700 (PDT) Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B70443D48 for ; Fri, 14 May 2004 19:52:00 -0700 (PDT) (envelope-from micheal@tsgincorporated.com) Received: from router.caverns.us.eu.org ([68.227.96.223]) by lakermmtao04.cox.netESMTP <20040515025152.WCWW11794.lakermmtao04.cox.net@router.caverns.us.eu.org>; Fri, 14 May 2004 22:51:52 -0400 Received: from dredster (dredster.rcservers.com [192.168.1.2]) i4F2pqjn027414; Fri, 14 May 2004 21:51:52 -0500 (CDT) (envelope-from micheal@tsgincorporated.com) Message-ID: <010c01c43a27$9cc813b0$0201a8c0@dredster> From: "Micheal Patterson" To: "Dwight Spence" , References: <5F8E195A1BED3545B98B08BEFA24DE370AD4EF@msimailfl.marsys.com> Date: Fri, 14 May 2004 21:51:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: Creating Virtual Interfaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 02:52:01 -0000 ----- Original Message ----- From: "Dwight Spence" To: Sent: Friday, May 14, 2004 4:06 PM Subject: Creating Virtual Interfaces > Is there a difference between virtual interfaces and alias ips? > Also is FreeBSD able to configured interfaces such as bge0:1, bge0:2, bge0:3? > Or is ifconfig bge0 alias netmask the only way? > I am attempting to add 30 ips. > > Dwight Spence Dwight, I've looked and what you're referring to would be sub interfaces, such as Cisco and various other main stream routers use. FreeBSD to my knowledge (and I even googled for it) doesn't support this, at least in 4.9 anyway. One thing to note when doing aliases, if all of the IP's are in the same subnet, the netmask for all aliased interfaces will be 255.255.255.255. The format for this in the rc.conf file would be: ifconfig xl0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_xl0_alias0="inet 192.168.1.2 netmask 255.255.255.255" ifconfig_xl0_alias1="inet 192.168.1.3 netmask 255.255.255.255" ... and so on. Should they be ip's from different subnets, you should use the proper netmask associated with that subnet. ifconfig xl0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_xl0_alias0="inet 192.168.2.1 netmask 255.255.255.0" ifconfig_xl0_alias1="inet 192.168.3.1 netmask 255.255.255.248" ... and so on. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.