Discussion:
bridged device's name
(too old to reply)
Mike Wright
2018-08-21 01:40:11 UTC
Permalink
Hi all,

Is there a way to set a network device's host side name?

e.g. with lxc style configs:

#myContainer
lxc.net.0.type = veth
lxc.net.0.veth.pair = host-side-name
lxc.net.0.link = myBridge

brctl show myBridge

myBridge 8000.025134e8ffad no host-side-name

so that this happens

myBridge -> host-side-name === myContainer -> eth0

instead of

myBridge -> veth9OXS8PAW === myContainer -> eth0

I know that I can change the name after the fact using iproute2 but
automated is better.

Thanks,
Mike Wright
Fajar A. Nugraha
2018-08-21 02:14:53 UTC
Permalink
Post by Mike Wright
Hi all,
Is there a way to set a network device's host side name?
#myContainer
lxc.net.0.type = veth
lxc.net.0.veth.pair = host-side-name
lxc.net.0.link = myBridge
Are you asking the equivalent of lxc.net.0.veth.pair in lxd?

Try:
devices:
eth0:
host_name: host-side-name
name: eth0
nictype: bridged
parent: myBridge
type: nic
--
Fajar
Continue reading on narkive:
Loading...