Changes

Jump to: navigation, search

Virtual Ethernet device

856 bytes added, 13:50, 8 June 2006
Virtual ethernet devices can be joined in one bridge
=== Virtual ethernet devices can be joined in one bridge ===
Perform steps 1 - 4 from Simple configuration chapter for several VEs and/or veth devices ==== Create bridge device ====<pre>[host-node]# brctl addbr vzbr0</pre> ==== Add veth devices to bridge ====<pre>[host-node]# brctl addif vzbr0 veth101.0...[host-node]# brctl addif vzbr0 veth101.n[host-node]# brctl addif vzbr0 veth102.0......[host-node]# brctl addif vzbr0 vethXXX.N</pre> ==== Configure bridge device ====<pre>[host-node]# ifconfig vzbr0 up[host-node]# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/forwarding[host-node]# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/proxy_arp</pre> ==== Add routes in [[VE0]] ====<pre>[host-node]# ip route add 192.168.101.1 dev vzbr0...[host-node]# ip route add 192.168.101.n dev vzbr0[host-node]# ip route add 192.168.102.1 dev vzbr0......[host-node]# ip route add 192.168.XXX.N dev vzbr0</pre> Thus you'll have more convinient configuration, i.e. all routes to VEs will bethrough this bridge and VEs can communicate with each other even without these routes.
=== Virtual ethernet devices + VLAN ===
Anonymous user

Navigation menu