Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 17:52:50 -0500
From:      "Dave VanAuken" <dave@hawk-systems.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   when sensible/possible to assign ubnet to interface
Message-ID:  <DBEIKNMKGOBGNDHAAKGNKEDJKOAA.dave@hawk-systems.com>

next in thread | raw e-mail | index | archive | help
Hosting box has a number of non-consecutive IP addresses on it...

At what time does it make more sense to simply have an entire subnet pointing at
that interface...  and what would the syntax be to alias that.

Rather than
ifconfig_fxp0="inet 192.168.131.12 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 192.168.131.13 netmask 255.255.255.0"
ifconfig_fxp0_alias1="inet 192.168.131.51 netmask 255.255.255.0"
ifconfig_fxp0_alias2="inet 192.168.131.52 netmask 255.255.255.0"
ifconfig_fxp0_alias3="inet 192.168.131.53 netmask 255.255.255.0"

do
ifconfig_fxp0="inet 192.168.131.12 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 192.168.131.13 netmask 255.255.255.0"
ifconfig_fxp0_alias1="inet 192.168.131.51/27 netmask 255.255.255.224"

Possible?  Doable?  syntax check?

thanks

(did a brief but by no mean thorough check on this, RTFM's or net resource links
appreciated)

Dave


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




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