Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2003 09:52:16 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        flux@hotbox.ru
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 2 ip-addr for 1 netcard...
Message-ID:  <200312151452.hBFEqHr08649@clunix.cl.msu.edu>
In-Reply-To: <1903868068.20031215151634@hotbox.ru> from "flux" at Dec 15, 2003 03:16:34 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> How do I assign two IP addresses for one netcard?
> Thank you.

Check out ifconfig(8) alias

if done in the rc.conf file or its children it would be something 
like the following because of the way network startup works.

ifconfig_xl0_alias0="147.39.62.11 netmask 255.255.255.255"
ifconfig_xl0_alias1="147.39.62.12 netmask 255.255.255.255"

The quotes must be there, the aliasnn numbers must each be unique
and the netmask must be as shown.   The ip addresses abobe, of course, 
are fiction and must be replaced with correct ones.

////jerry

> 
> -- 
> Best regards,
>  flux                          mailto:flux@hotbox.ru
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



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