[lxc-users] Need help with static IP address -- Simplest use case.
Mark Constable
markc at renta.net
Sat Jun 10 02:49:51 UTC 2017
On 10/06/17 12:03, Michael Johnson wrote:
> Hi Mark. Thanks for responding. I've done exactly what you suggest, and
> here is the result from within the container:
>
> ip -4 route show
> default via 192.168.0.1 dev eth0 metric 12
> 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.36
> [...]
Perhaps you are missing the bridge being part of your profile?
lxc profile list
lxc network attach-profile lxdbr0 default eth0
ie; my default profile for lxd 2.14 shows...
~ lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
- /1.0/containers/z1
- /1.0/containers/z2
- /1.0/containers/z3
More information about the lxc-users
mailing list