You are not logged in.

#1 2016-06-08 12:38:01

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

network bridge deleted after restart

i want to create a network bridge to use xen. i ran those commands

# ip link add name xenbr0 type bridge
# ip link set xenbr0 up
#ip link set enp0s25(my interface) master xenbr0
#dhcpcd xenbr0

and confirmed working, it shoes up when i type ip link

oddly, whenever i restart this configuration isn't saved. any ideas?

Offline

#2 2016-06-20 16:36:47

paulstelian97
Member
Registered: 2016-01-13
Posts: 28

Re: network bridge deleted after restart

You can create a oneshot systemd service that Exec's a script that contains these commands (do include a

#!/bin/bash

line and the +x permission)

Offline

#3 2016-06-20 16:51:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: network bridge deleted after restart

How do you configure your network?

Both systemd-networkd and netctl have support for bridges in their configuration files, this is all documented in thee wiki.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-06-20 18:04:22

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: network bridge deleted after restart

i've created the bridge with iproute as described in my first post. i understand now that it wasn't enough and i have to configure a service that runs at startup and configures the bridge every time using this method
i just followed this section of the wiki
i'l try configuring the bridge with a different method as you suggested and let you know if it helps. if not a manual systemd service might do the job

Offline

#5 2017-04-03 21:41:58

pass75
Member
Registered: 2017-04-03
Posts: 1

Re: network bridge deleted after restart

Hi guys, I've the same problem. Successfully created the bridge (for KDE/QEMU use) but the config is not persistent.
After reboot I need to set it up again from scratch.
What's the best approach you found to solve the problem?
Thank you very much in advance.

Last edited by pass75 (2017-04-03 21:42:19)

Offline

Board footer

Powered by FluxBB