SolusVM Series: SolusVM KVM Bridge Settings

SolusVM Series: SolusVM KVM Bridge Settings

Based on Centos 6 64-bit. Mainly set up IPv4.

1. Install components

 yum install bridge-utils

Enable IPv4 forwarding:

 vi /etc/sysctl.conf

Change net.ipv4.ip_forward = 0 to net.ipv4.ip_forward = 1

2. Check the network card information

 cd /etc/sysconfig/network-scripts ls

There will be two files, ifcfg-eth0 and ifcfg-eth1, which one displays the following content:

 DEVICE=eth0(也可能是eth1) HWADDR=0C:C4:7A:86:6E:28(mac地址,會有不同) TYPE=Ethernet UUID=f2850f85-b13a-496d-a5a0-5b6b09ceebb2(會有不同) ONBOOT=no NM_CONTROLLED=yes BOOTPROTO=dhcp

Assuming that the server's ifcfg-eth0 displays the above content, keep it without modification.
Then ifcfg-eth1 displays the static IP information, similar to the following:

 DEVICE=eth1 TYPE=Ethernet UUID=282b6cf5-6830-4fb4-8178-d49efbac056a ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none HWADDR=0C:C4:7A:86:6E:03 IPADDR=23.228.76.162 NETMASK=255.255.255.248 PREFIX=29 GATEWAY=23.228.76.161 DNS1=8.8.8.8 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth1"

The following setup assumes a group of 5 IPs (/29):

 CIDR 23.228.76.160/29 Netmask 255.255.255.248 Gateway 23.228.76.161 Primary 23.228.76.162 Last Usable 23.228.76.166

3. Set up a bridge
a.

 vi ifcfg-br0

Paste the following content

 DEVICE=br0 TYPE=Bridge BOOTPROTO=static IPADDR=23.228.76.162 NETMASK=255.255.255.248 ONBOOT=yes GATEWAY=23.228.76.161

b.

 rm -rf ifcfg-eth1 vi ifcfg-eth1

Paste the following content

 DEVICE=eth1 ONBOOT=yes BRIDGE=br0

d. Restart the network

 service network restart

e. Check whether it is successful

 brctl show

 ifconfig

4. OVH IP settings
OVH's IP needs to be bound to the network card. Detailed tutorials: https://www.lowendtalk.com/discussion/32361/installing-configuring-kvm-on-ovh-with-solusvm, https://www.lowendtalk.com/discussion/36845/kvm-on-ovh-sys-using-recommended-configuration-with-virtualizor-solusvm

<<:  OVH E3-1245v5 32GB RAM SSD hard drive 500Mbps bandwidth UK dedicated server review

>>:  cbvps: Hong Kong HK3 restocking, Miami VPS 50% discount, NAT domain name binding function launched

Recommend

Ikoula: 4.99 €/month/Atom 510/4GB RAM/1TB hard drive/unlimited traffic/1 IP

Ikoula is a French hosting company founded in 199...

Online: €0.99/1GB space/unlimited traffic/1 free top-level domain name

Online, trustworthy, the data center is in France...

Dewlance: $4/month/50GB SSD space/300GB data traffic/Phoenix/Las Vegas

Dewlance, an American hosting provider, was found...

Viking Layer: €2.5/month/1GB RAM/20GB SSD space/1TB bandwidth/Xen/Dallas

Viking Layer merged with drServer in 2015. drServ...