Ticket #97 (new task)

Opened 2 years ago

Veth interface support

Reported by: Hugo Owned by: Gary
Priority: normal Milestone: Bugs and enhancements
Component: unxsVZ Severity: Low
Keywords: Cc:

Description

When creating a new container with uVeth=1, the following command has to be executed by the job queue processor to add the veth device:

# vzctl set 101 --netif_add eth0 --save

Then, a mount script for the VE is required with:

# ifconfig veth101.0 0
# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/proxy_arp

For setting the IP address of the interface at the VE, must run:

# /sbin/ifconfig eth0 0
# /sbin/ip addr add 192.168.0.101 dev eth0
# /sbin/ip route add default dev eth0

Lastly, once that the VE has been started you have to run:

# ip route add 192.168.0.101 dev veth101.0

At the HN.

http://wiki.openvz.org/Veth provides an example of veth VE mount script.

Note: See TracTickets for help on using tickets.