
(This only works for Linux network namespaces for now, until FreeBSD and OpenVZ have been ported to using the
cored.py Python daemon.)

cored.py Python daemon.)
Use of the Tk::Img library was added to CORE. This allows you to use various image types besides just the GIFs that were supported before -- such as JPG, PNG, TIF, etc. Now the custom node icon and canvas wallpaper dialogs accept various image types.

or
# for RedHat/Fedora
yum install tkimg
# for Debian/Ubuntu
sudo apt-get install libtk-img
core/python/examples/netns/. Here is a snippet from one of the samples, how you would make N nodes connected to a switch:
from core import pycore
from core.misc import ipaddr
def main:
...
# IP subnet
prefix = ipaddr.IPv4Prefix("10.83.0.0/16")
session = pycore.Session()
# emulated ethernet switch
switch = session.addobj(cls = pycore.nodes.SwitchNode)
print "creating %d nodes with addresses from %s" % \
(options.numnodes, prefix)
for i in xrange(1, options.numnodes + 1):
tmp = session.addobj(cls = pycore.nodes.LxcNode, name = "n%d" % i)
tmp.newnetif(switch, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)])
tmp.cmd(["sysctl", "net.ipv4.icmp_echo_ignore_broadcasts=0"])
n.append(tmp)
# start a shell on node 1
n[1].term("bash")
/usr/local/etc/core/widgets.conf file.
# ebtables -N test -P DROP
The kernel doesn't support a certain ebtables extension, consider
recompiling your kernel or insmod the extension.
#
# dmesg | tail
Ebtables v2.0 registered
kernel msg: ebtables bug: please report to author: entries_size too small
make && make install you experience the same problem. When you build with make static things appear to work somewhat, but some commands still fail.
> tar xzf ebtables-v2.0.6.tar.gz
> cd ebtables-v2.0.6.tar.gz
> patch -p1 < ~/2.6.20.patch
patching file include/linux/netfilter_bridge.h
> patch -p1 < ~/gcc4.patch
patching file extensions/ebt_ip.c
patching file extensions/ebt_limit.c
patching file extensions/ebt_vlan.c
> patch -p1 < ~/iets.patch
patching file ebtables.c
> make
> sudo make install
ebtables -N test -P DROPebtables -N test; ebtables -P test DROPebtables -I FORWARD -j ACCEPTebtables -I FORWARD 1 -j ACCEPT