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-utilsEnable IPv4 forwarding:
vi /etc/sysctl.confChange net.ipv4.ip_forward = 0 to net.ipv4.ip_forward = 1
2. Check network card information
cd /etc/sysconfig/network-scripts lsTwo 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=dhcpAssume 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.1663. Set up bridge a.
vi ifcfg-br0Paste 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.161b、
rm -rf ifcfg-eth1 vi ifcfg-eth1Paste the following content
DEVICE=eth1 ONBOOT=yes BRIDGE=br0d. Restart the network
service network restarte. Check whether it is successful
brctl show ifconfig4. 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>
发表评论