SolusVM Series: SolusVM KVM Bridge Setup

888u

Last update at :2024-06-03,Edit by888u

Based on Centos 6 64-bit. The main thing is to 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 network card information

cd /etc/sysconfig/network-scripts ls

Two files, ifcfg-eth0 and ifcfg-eth1, will be displayed. Which file displays the following content:

DEVICE=eth0 (maybe eth1) HWADDR=0C:C4:7A:86:6E:28 (mac address, will be different) TYPE=Ethernet UUID=f2850f85-b13a-496d-a5a0-5b6b09ceebb2 (will be different) ONBOOT=no NM_CONTROLLED=yes BOOTPROTO=dhcp

Assume that the ifcfg-eth0 of the server displays the above content, then keep it without modifying it. Then ifcfg-eth1 displays 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 set 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 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 IP needs to be bound to the network card. Detailed tutorial: 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

Recommended site search: domain name registration center, domain name registration information inquiry, Dalian virtual host domain name and host, free com domain name registration website, virtual host, forum registration, registration-free jsp space, foreign free website server vps virtual host,

p>

SolusVM Series: SolusVM KVM Bridge Setup

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码