I need to setup static IP for one of my vps. I have additional IP which is not in my dedicated server range. I have been searching internet for a while and I wasted few days for this. Still I didnt manage to make this to work. Can someone show me soem basic config for host and vm to do this? On my dedicated server I have config which look like this
12.23.34.45 - dedicated server ip
87.35.13.64 - new additional ip
So if I am understanding this right I have to create new network bridge like this one:
But do I need to create another network device like this one "enp3s0 " and connect vmbr1 to it? Or somehow connect it to vmbr0? Also I am not sure about gateway in vmbr1 is it right?
I know that for vps I just set static with vmbr1 settings but my main problem is with setting up host right.
Can someone help me with this? I don't really do networking stuff and I wasted so much time trying to make this to work.
12.23.34.45 - dedicated server ip
87.35.13.64 - new additional ip
Code:
auto lo
iface lo inet loopback
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 12.23.34.45/24
gateway 12.23.34.254
netmask 255.255.255.255
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
So if I am understanding this right I have to create new network bridge like this one:
Code:
auto vmbr1
iface vmbr1 inet static
address 87.35.13.64
gateway 12.23.34.254
netmask 255.255.255.255
But do I need to create another network device like this one "enp3s0 " and connect vmbr1 to it? Or somehow connect it to vmbr0? Also I am not sure about gateway in vmbr1 is it right?
I know that for vps I just set static with vmbr1 settings but my main problem is with setting up host right.
Can someone help me with this? I don't really do networking stuff and I wasted so much time trying to make this to work.