On 25.02.14 at 16:33, arnaud gaboury wrote: > On Tue, Feb 25, 2014 at 1:43 PM, arnaud gaboury > <arnaud.gaboury@xxxxxxxxx> wrote: > >> > >> Now, I want to start the bridge: > >> # netctl start bridge-hortensia > >> % ping -c 3 8.8.8.8 > >> connect: Network is unreachable > > I realized that starting the bridge profile empty the /etc/resolv.conf. > > Even if I modified the bridge profile, following the man page: > > Description="Example Bridge connection" > Interface=br0 > Connection=bridge > BindsToInterfaces=(enp7s0) > IP=no > #Adress=('192.168.1.94/24') > #Gateway='192.168.1.254' > #DNS=('212.147.10.180' '212.147.10.162') > DNSDomain=lan > DNSSearch=('192.168.1.254') <<< these two last lines are supposed to > pass these settings to /etc/resolv.conf > > but nada :-( DNS is just a cherry on the cake, first you need to establish the network connection. I'm not using netctl for some time, but I'm pretty sure it does not launch any DHCP server. If you want to use DHCP, you will need to start the server on your own. I have written several scripts [1-4] to manage a bridge interface for QEMU VMs, see if you can reuse some of it. Especially [2] might be useful for you, though you probably do not need to create the tap interface. Note that the original author of [3] and [4] is Xyne, see his excellent tutorial [5]. [1]: https://github.com/lahwaacz/archlinux-dotfiles/blob/master/Scripts/qemu-launcher.sh [2]: https://github.com/lahwaacz/archlinux-dotfiles/blob/master/Scripts/qemu-tap-helper.sh [3]: https://github.com/lahwaacz/archlinux-dotfiles/blob/master/Scripts/nat-launch.sh [4]: https://github.com/lahwaacz/archlinux-dotfiles/blob/master/Scripts/nat-launch-subnet.sh [5]: http://xyne.archlinux.ca/notes/network/dhcp_with_dns.html Regards, -- jlk
Attachment:
pgpotFLWHf5Cc.pgp
Description: PGP signature