How do I configure static IP addresses when I have multiple domains and multiple addresses?
Hello,
I'm following this guide here: https://www.linode.com/docs/networking/linux-static-ip-configuration/
And it's a good guide, but it leaves a bit to be desired.
I have three domains. We can pretend that they're:
personal.com
business.com
business.net
I have two IPv4 addresses. The first one needs to be assigned to personal.com. The second one needs to be assigned to business.net and business.com (they'll share it).
I do not mind if personal.com uses SLAAC for IPv6, but I want to set a static IPv6 for business.com and business.net, something like abcd:abcd:abcd:abcd::0
abcd:abcd:abcd:abcd::1
How would I go about doing that? I tried following the guide, but for whatever reason, only IPv6 worked. I couldn't get out, or in with IPv4.
Not sure what I did wrong. I just need to make sure business.com and business.net get the proper IPv4 and IPv6 addresses and not the same ones that personal.com gets.
Thanks for any help! It's greatly appreciated.
1 Reply
Never mind, I believe I figured it out.
I think my issue was because I have NetworkManager on CentOS 7 disabled, I was trying to use more than one default gateway (for redundancy). I tried using ,'s to separate them (because it specifically says I cannot use GATEWAY# in the ifcfg-eth0 network-script file), and I think I tried spaces. When I went to just one gateway, it seemed to work, although I'd really like to have it configured for more than one default gateway.
Thanks.