KVM Network setups

From Ye Ole Stash
Jump to: navigation, search

Network Setups

Router/Firewall 1 Ext 2 Int Interfaces VMs on private network

Internet -> WAN (ETH0) -> Linux Boxen <- eth1 (192.168.1.1) | eth1.0 (192.168.1.2) | eth2 (
Brdige : br0 (eth2<->vnet)
Gateway: 192.168.1.1
forwarding turned on in kernel
ifcfg-br0
DEVICE=br0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.9
NETMASK=255.255.255.0
TYPE=Bridge
DELAY=0
ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
HWADDR=00:19:66:77:4a:df
BRIDGE=br0
  • What is going on here is the bridge gives you the network option for br0 in KVM. This gives you VMs on the private address space behind the firewall. The VNET interfaces are autocreated by KVM when new VMs are given ethernet interfaces.
Personal tools