Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2003 14:25:33 -0800
From:      Doug Silver <dsilver@urchin.com>
To:        "vizion communication" <vizion@ixpres.com>, <freebsd-hardware@FreeBSD.ORG>
Subject:   Re: Configuring multi-port ethernet cards.
Message-ID:  <200302181425.55401.dsilver@urchin.com>
In-Reply-To: <00de01c2d79b$bf603050$0200a8c0@noemie>
References:  <034001c2d794$aeb7d4d0$15b55042@vizion2000.net> <00de01c2d79b$bf603050$0200a8c0@noemie>

next in thread | previous in thread | raw e-mail | index | archive | help
I would guess that you can follow the same methodology as assigning multi=
ple=20
IP's to a single nic in your rc.conf file:

ifconfig_de0=3D"inet 1.2.3.4 netmask 255.255.255.???"
ifconfig_de0_alias0=3D"inet 1.2.3.5 netmask 255.255.255.255"
ifconfig_de0_alias1=3D"inet 1.2.3.6 netmask 255.255.255.255"

ifconfig_de1=3D"inet 1.2.3.40 netmask 255.255.255.???"
ifconfig_de1_alias0=3D"inet 1.2.3.41 netmask 255.255.255.255"

Note that the netmask for the alias addresses *has* to be 255.255.255.255=
=2E

-doug

On Tuesday 18 February 2003 02:18 pm, Lanny Baron wrote:
> Hi,
> What you might want to do after you have successfully installed FreeBSD=
 is,
> ifconfig de1 inet x.x.x.x netmask x.x.x.x
> that will put the primary IP/mask on de1. Then, when you want to add mo=
re
> IP addresses to that (or any other NIC on your box) do:
>
> ifconfig deX alias x.x.x.x. netmask 255.255.255.255
>
> don't forget the keyword 'alias' above, when adding IP addresses to any
> NIC -after- you have already put on the primary address. The netmask of
> 255.255.255.255 must also be used for addtional IPs on any NIC.
>
> Hope that helps.
>
> Lanny Baron
> http://www.FreeBSDsystems.com
> ----- Original Message -----
> From: "vizion communication" <vizion@ixpres.com>
> To: <freebsd-hardware@freebsd.org>
> Sent: Tuesday, February 18, 2003 4:28 PM
> Subject: Configuring multi-port ethernet cards.
>
> > OK I have not used multi-port ethernet cards before - it
> > should be simple enough but for some reason I am hitting
> > problems. (The FreeBSD installation tool for 4.7 does not
> > help with configuring multiple NICS - it creates a new hosts
> > file each time!!)
> >
> > de0, de1, de2, de3 and le0 are my devices.
> >
> > Ip allocation        xxx.xxx.xxx.2
> >                            xxx.xxx.xxx.3
> >                            xxx.xxx.xxx.4
> >                            xxx.xxx.yyy.aaa
> >                            ccc.ddd.eee.fff
> > as IP Addresses for the devices.
> >
> > 3 NICS are on one sub net and two NIC's  on others.
> >
> > If I need to allocate individual hostnames for each IP
> > address how do configure them. Do I do that in /etc/hosts?
> > Does FreeBSD only recognize a single hostname for a kernel?
> >
> > What do I do about loopback?
> >
> > The hostnames are not within the same domain even when there
> > are on the same subnet.
> >
> > Some guidance appreciated.
> >
> > David
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-hardware" in the body of the message
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hardware" in the body of the message

--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
619 235-2665
Network Manager
Urchin Software Corp.=09http://www.urchin.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302181425.55401.dsilver>