[arch-general] bridge with netctl

Mauro Santos registo.mailling at gmail.com
Thu Mar 6 08:51:12 EST 2014


On 06-03-2014 13:03, arnaud gaboury wrote:
> 
> My issue is that br0 is DOWN and can't make it up with this command:
>  # ip link set dev br0 up
> This has no effect.

I use a systemd service file to setup a bridge for somewhat similar
purposes, the sequence of commands I use is this:

/usr/sbin/brctl addbr brkvm
/usr/sbin/ip addr add 192.168.56.1/24 dev brkvm
/usr/sbin/ip link set dev brkvm up

after that, ip a s brkvm shows:

4: brkvm: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UP group default
    link/ether fe:83:79:56:a3:a2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.1/24 scope global brkvm
       valid_lft forever preferred_lft forever

I have never used netctl so I can't help you there, in case you are
wondering the complete service file is use is:

[Unit]
Description=Sets up a bride for use with virtual machines.

[Service]
Type=oneshot
ExecStart=/usr/sbin/brctl addbr brkvm
ExecStart=/usr/sbin/ip addr add 192.168.56.1/24 dev brkvm
ExecStart=/usr/sbin/ip link set dev brkvm up
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target


-- 
Mauro Santos


More information about the arch-general mailing list