Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way to setup multiple carp vip's without creating a separate hostname.if file for each address?

Our colo has provided us with a /25 external network. Three addresses from this range are required for the colo gateway and my redundant firewalls. I would like the rest of the addresses to be vip's shared by the firewalls.

I can easily create a script to help write the 123 hostname.if files... It just seems like there should be a better way to summarize this info.

Would it be better to ask the colo to route all my traffic to one vip? I am not sure if they will do this.

share|improve this question
    
So you want 123 IP address on a carp interface, right? –  cstamas Feb 23 '12 at 9:34
    
If possible yes. Either that or it seems that I need 123 carp interfaces. I have read that I can use aliases for this. I am not sure if there is a downside to this. –  user111499 Feb 23 '12 at 23:15

1 Answer 1

up vote 0 down vote accepted

Yes, aliases seems the proper way to go.

Like this:

 (the first line as it used to be, then)
 inet alias 10.1.1.1 255.255.255.128
 inet alias 10.1.1.2 255.255.255.128
 inet alias 10.1.1.3 255.255.255.128
 .
 .
 .
 inet alias 10.1.1.123 255.255.255.128
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.