[arch-general] Bridge interface with netctl
arnaud gaboury
arnaud.gaboury at gmail.com
Tue Feb 25 06:47:02 EST 2014
Dear list,
I am messing with assigning a static IP on a systemd-nspawn container,
on both sides (host,container).
My idea is to first create a bridge (br0) on the host.
My config on host :
systemd-git
netctl to configure network
********************
$ ifocnfig
enp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.87 netmask 255.255.255.0 broadcast 192.168.1.255
lo...
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 <<< libvirt
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
**************
% netctl list
bridge-hortensia
*************
% systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
systemd-back...klight:eeepc-wmi.service loaded failed failed Load/Save
Screen Backlight Brightness o <<<< not important .
****************
% systemctl status dhcpcd.service
dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
Active: active (running) since Tue 2014-02-25 12:14:04 CET; 21min ago
Process: 320 ExecStart=/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Main PID: 329 (dhcpcd)
CGroup: /system.slice/dhcpcd.service
└─329 /bin/dhcpcd -q -b
Feb 25 12:22:30 hortensia dhcpcd[329]: br0: removing interface
Feb 25 12:22:30 hortensia dhcpcd[329]: enp7s0: carrier lost
Feb 25 12:22:31 hortensia dhcpcd[329]: enp7s0: carrier acquired
Feb 25 12:22:31 hortensia dhcpcd[329]: enp7s0: soliciting an IPv6 router
Feb 25 12:22:31 hortensia dhcpcd[329]: enp7s0: rebinding lease of 192.168.1.87
Feb 25 12:22:40 hortensia dhcpcd[329]: enp7s0: leased 192.168.1.87 for
86400 seconds
Feb 25 12:22:40 hortensia dhcpcd[329]: enp7s0: adding host route to
192.168.1.87 via 127.0.0.1
Feb 25 12:22:40 hortensia dhcpcd[329]: enp7s0: adding route to 192.168.1.0/24
Feb 25 12:22:40 hortensia dhcpcd[329]: enp7s0: adding default route
via 192.168.1.254
Feb 25 12:22:45 hortensia dhcpcd[329]: enp7s0: no IPv6 Routers available
**********************
gabx at hortensia ➤➤ ~ % cat /etc/netctl/bridge-hortensia
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=enp7s0
IP=no
*********************
Now, I want to start the bridge:
# netctl start bridge-hortensia
% ping -c 3 8.8.8.8
connect: Network is unreachable
Same result if I change IP=dhcp
I can't see where does the issue come from. Shall I enable a
"ethernet-dhcp" netctl profile and disable dhcpcd.service ?
Thank you for help.
More information about the arch-general
mailing list