niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
Adding a range of IPs, FreeBSD 5.3
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Morten W. Petersen
*nix forums beginner


Joined: 17 Apr 2005
Posts: 16

PostPosted: Tue Feb 08, 2005 7:28 am    Post subject: Adding a range of IPs, FreeBSD 5.3 Reply with quote

Hi there,

I have a FreeBSD box which I'd like to add 30 IPs to. The original IP
is configured in /etc/rc.conf, via 'ifconfig_fxp0="inet 216.194.67.189
netmask 255.255.255.0"', and I want to add the IPs 66.51.113.193 to
66.51.113.223, netmask 255.255.255.224.

What's the recommended way for doing this?

Thanks,

Morten
Back to top
Matthew Poole
*nix forums addict


Joined: 09 Mar 2005
Posts: 61

PostPosted: Tue Feb 08, 2005 8:53 am    Post subject: Re: Adding a range of IPs, FreeBSD 5.3 Reply with quote

In article <1107851327.837482.10800@f14g2000cwb.googlegroups.com>, morphex@gmail.com wrote:
Quote:
Hi there,

I have a FreeBSD box which I'd like to add 30 IPs to. The original IP
is configured in /etc/rc.conf, via 'ifconfig_fxp0="inet 216.194.67.189
netmask 255.255.255.0"', and I want to add the IPs 66.51.113.193 to
66.51.113.223, netmask 255.255.255.224.

What's the recommended way for doing this?

You will probably find that you have to add them all with /32 netmasks,

since sub-interfaces don't usually allow anything greater.
You need to add a bunch of alias statements to rc.conf. You can do this
manually, or rig up a "for" statement to add them manually. You seem to
understand rc.conf OK.
Look up the alias option in man ifconfig.
Back to top
Morten W. Petersen
*nix forums beginner


Joined: 17 Apr 2005
Posts: 16

PostPosted: Tue Feb 08, 2005 9:01 am    Post subject: Re: Adding a range of IPs, FreeBSD 5.3 Reply with quote

OK, thanks. :)

-Morten
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 10:58 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Adding 2 sets of roll/pitch/yaw angles Dan C 1 Thu Jul 20, 2006 9:32 pm
No new posts Berkeley db XML & FreeBSD mo Berkeley DB 0 Thu Jul 20, 2006 9:15 pm
No new posts Rejecting connections based on IP range. Evil Ernie Exim 2 Thu Jul 20, 2006 8:54 pm
No new posts Squid 2.6 WCCPv2 and FreeBSD Carlos Filipe Squid 0 Thu Jul 20, 2006 7:48 pm
No new posts freebsd with apache, php and mysql Yves Savoie FreeBSD 5 Wed Jul 19, 2006 11:39 pm

Credit Card information | Fish Tank Help | Car Finance | Remortgaging | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1399s ][ Queries: 16 (0.0716s) ][ GZIP on - Debug on ]