Date: Fri, 14 May 2004 21:51:51 -0500 From: "Micheal Patterson" <micheal@tsgincorporated.com> To: "Dwight Spence" <dspence@marsys.com>, <questions@freebsd.org> Subject: Re: Creating Virtual Interfaces Message-ID: <010c01c43a27$9cc813b0$0201a8c0@dredster> References: <5F8E195A1BED3545B98B08BEFA24DE370AD4EF@msimailfl.marsys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Dwight Spence" <dspence@marsys.com> To: <questions@freebsd.org> 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 <ip_address> netmask <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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010c01c43a27$9cc813b0$0201a8c0>
