Possibility of using bridge in VE [message #26784] |
Thu, 31 January 2008 22:36 |
|
Is it possible to use bridge in VE?
----------------------------------------
In VE:
# brctl addbr br0
add bridge failed: Operation not permitted
# strace brctl addbr br0 2>&1 | tail -n 10
munmap(0xb7fb6000, 10497) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
lstat64("/sys/class/net", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
brk(0) = 0x8b97000
brk(0x8bb8000) = 0x8bb8000
ioctl(3, 0x89a0, 0xbf80c73d) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCSIFBR, 0xbf80a538) = -1 EPERM (Operation not permitted)
write(2, "add bridge failed: Operation not"..., 43add bridge failed: Operation not permitted
) = 43
exit_group(1) = ?
----------------------------------------
HN:
ASPLinux Server V (RHEL 5)
i386
# rpm -q ovzkernel
ovzkernel-2.6.18-53.el5.028stab051.1
# rpm -qa vz\*
vzquota-3.0.11-1.0.121asp
vzctl-lib-3.0.22-1.0.121asp
vzctl-3.0.22-1.0.121asp
# lsmod | grep bridge
bridge 55708 0
----------------------------------------
VE config:
NETIF=" ifname=eth0,mac=00:0C:29:FE:42:E1,host_ifname=veth1213.0,hos t_mac=00:0C:29:23:2B:A8 "
DEVICES="c:10:200:rw" # /dev/net/tun
CAPABILITY="NET_ADMIN:on"
...
----------------------------------------
Task:
Bridge veth and tap0 for OpenVPN in VE.
OpenVPN work in VE perfectly.
OS: ASPLinux Server 5, ASPLinux 12
[Updated on: Thu, 31 January 2008 22:37] Report message to a moderator
|
|
|
|