Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Home > FAQ > Virtualization > Linux KVM > RedHat and Friends > CentOS
With bridged networking you can share actual network device with KVM machines. This is required for servers with
multiple network cards and gives you good performance. You can choose to put multiple segments into one bridged
network or to divide it into different networks interconnected by routers.
[1]
+------+
+-----+
LAN
--> | eth0 | <==> | br0 |
-> KVM VMs connected to LAN for SAN/NFS
+------+
+-----+
10.10.x.y/24
+------+
+-----+
Internet --> | eth1 | <==> | br1 |
-> KVM VMs connected to the Inernet
+------+
+-----+
123.1.2.0/28
Where,
All other clients can reached to all VMs via br1 which is connected to public interface. br1 is our default gateway.
br0 is connected to private LAN to access other servers, services and storage devices such as SAN/NAS or NFS
servers. br0 route is configured via route-br0 static networking configuration file.
DEVICE=eth0
ONBOOT=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
BRIDGE=br0
nixCraft is GIT UL++++ W+++ C++++ M+ e+++ d-
Page 1 of 3
HWADDR =b8:ac:6f:65:31:e5
DEVICE=eth1
ONBOOT=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
BRIDGE=br1
HWADDR =00:30:49:8c:48:ad
Please note that test server is set to 100Mbps full duplex. Save and close the file. Edit /etc/sysconfig/network-scripts/ifcfgbr1, enter:
# vi /etc/sysconfig/network-scripts/ifcfg-br1
Define public IP address including gateway as follows:
DEVICE=br1
BOOTPROTO=static
ONBOOT=yes
IPADDR =123.1.2.3
NETMASK=255.255.255.248
GATEWAY=123.1.2.200
TYPE=Bridge
DELAY=0
Save and close the file.
Page 2 of 3
virbr0
8000.000000000000 yes
Page 3 of 3