I’m trying to create a network physical connection on my host using this command:
lxc config device add ctn-001 tap10 nic name=eth0 nictype=physical parent=brvlan7
The interface is attached fine to the container but I dont have external communication inside the container.
If I use for example other type of interface everting works fine:
lxc config device add ctn-001 tap10 nic name=eth0 nictype=bridged parent=brvlan7
Obs. I need to have the same tap MAC address inside the container because of the DHCP.
lxc config edit ctn-5b3135e252aa80-93343168
architecture: x86_64
config:
image.aliases: Centos 6 amd64
image.architecture: amd64
image.description: Centos 6 amd64
image.os: Centos
image.release: "6"
image.serial: "20180502_02:16"
volatile.base_image: f04b4aad006dfaa988242bc40b1fee3b10906fa74ff2afe170a33746339cf8cb
volatile.idmap.base: "0"
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"M$
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid$
volatile.last_state.power: RUNNING
devices:
tap10:
name: eth0
nictype: physical
parent: brvlan7
type: nic
ephemeral: false
profiles:
- default
stateful: false
description: ""
I’m missing somenthing to make works?
Thanks in advantage