Answer the question
In order to leave comments, you need to log in
How to correctly configure additional external ip, like ip virtual machines?
Good afternoon.
We rented a server in one DC in Poland.
CentOS 7 OS + KVM virtualization
Got one ip with mask 255.255.255.252(/30) and gateway (respectively ip minus 1) and several additional ip with mask 255.255.255.255 (/32) and no gateway.
Here is the content of
/etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
STP=yes
TYPE=Bridge
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=br0
UUID=eb49b3d7-ce67-4a65-a70d-26cb22e8379b
ONBOOT=yes
BRIDGING_OPTS=priority=32768
IPADDR=выданный мне основной ip
NETMASK=255.255.255.252
GATEWAY=шлюз к этому ip
DNS1=8.8.8.8
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
TYPE=Ethernet
NAME=eno1
UUID=487a6cea-e2a3-495a-99fc-6302e6504c59
DEVICE=eno1
ONBOOT=yes
BRIDGE=br0
Answer the question
In order to leave comments, you need to log in
XXXX - host ip. yyyy - do virtual machines in a virtual machine like this
:
ip ro add xxxx/32 dev ethX src yyyy
ip ro replace default via xxxx dev ethX
How to do this in your system - you will figure it out yourself. ip ro is universal, of course - the question is how to start it when the network starts.
Otherwise, everything is the same - bridge, ip_forward=1 and let's go.
OVH writes more about this - help.ovh.co.uk/bridgeclient
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question