[lxc-users] Setting static arp and DNS options from config file
Joshua Schaeffer
jschaeffer0922 at gmail.com
Wed Mar 2 18:35:48 UTC 2016
Newbie question here. I have an unprivileged container using the following
network configuration:
lxc.network.type = veth
lxc.network.link = br0-500
lxc.network.ipv4 = 10.240.78.3/24
lxc.network.ipv4.gateway = 10.240.78.1
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:0d:e9:e5
However I also have some settings in /etc/network/interfaces on the
container itself. I need to set a static ARP and I have some DNS options:
auto eth0
iface eth0 inet manual
post-up arp -f /etc/ethers
dns-nameserver 10.240.78.4
dns-search mpls.digitalriver.com thinksubscription.com appendata.net
How would I set the ARP entry and the DNS options from the config side.
If I'm reading the man page correctly lxc.network.script.up is run from the
host side so I don't think that would add the ARP entry to the container.
Should I use a hook instead?
How would I set the DNS options as well? Should I be invoking resolvconf
directly?
Thanks,
Joshua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160302/a6b1cc6b/attachment.html>
More information about the lxc-users
mailing list