EC2\VPC vip reservation
Hello all,
I'm relatively new to AWS and have a VPC set up. I'm setting up adfs and web application proxies. With our on prem installation we just use windows nlb for load balancing between farm members. It's quite fast and easy to configure.
I thought in AWS I'd be able to reserve an address from the dhcp pool used by my vpc and do the same thing with nlb. But I can't find anything in there for that. And my googling has yielded nothing but people asking for the same thing and finding nothing.
I did take a stab at setting up an app elastic load balancer. But after more hours than I'd like to admit trying to set up a simple https handoff all I'm getting are tls negotiation errors manifesting as a http 502 bad gateway. I used a host file override on one of my adfs farm members and verified that the service is indeed returning a 200. But the elb doesn't seem to agree and I can't find logs or anything helpful to aid in resolving that issue. Sec groups between the elb and adfs servers is wide open for now to ensure I'm not blocking something accidentally. I'm to the point where I have wireshark installed trying to find something, anything, to look at.
So, I'm back to really wishing I could just reserve an ip for a vip. I'm pretty sure I'd be done by now.
Am I crazy for wanting this simple thing? Again, I'm new to AWS and certainly open to any advice along those lines. But being able to reserve an ip for a service without attaching it to anything would be pretty great.
I'm open to any thoughts or pointers folks might have. Apologies if that's a bit scattered as I've fried myself a bit staring at this all day. Let me know if there is other info that would help clarify.
Posted Mar 23, 2017, 6:25 PM UTC
Wait, I'm confused.
Are you trying to reserve a private IP or a public IP? You can reserve a public IP by allocating an Elastic IP.
Private you can't "reserve" but once an IP address is allocated to an instance, it's stuck to that instance for the lifetime of the instance. As long as you don't terminate the instance, it'll have the same private IP between stop starts
Sorry, I can see how I wasn't clear on that point.
The first load balancer (be it nlb or elb) will be internal, and will have a private address. I'll deal with the second, for the waps, when I can get the internal one working.
Understood, but I don't want to assign the ip to an instance. It's a vip for a service. I want to be able to reserve it so I can use it as the nlb ip, which of course is not instance specific, without fear of a newly created instance trying to claim it. The entire problem is that I don't have a "thing", be it an instance or a network interface or whatever, to claim it and take it out of the pool. Normally I'd just go pick an ip either outside of dhcp, or create a reservation in dhcp for something like this.
All that said, I did wonder if I created a new network interface but then didn't assign it to an instance (so it sits idle and unused) if that might act as a psuedo reservation.
Why wouldn't you reference the load balancer via DNS?
As elsewhere in this thread:
So, I intend to. But I'd have to have a lb working to point at.
I'm doing exactly what you describe. I assure you, it works! What's broken with the ELB?
You can create ENIs with a private IP of your choice. You can then move it around as needed.