Re: bridge with netctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux