----- Original Message ----- 
From: "Dwight Spence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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.

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to