I've created a new LXC on debian jessie, but it doesn't have an ipv4 address. When I connect to my LXC and do ifconfig:
eth0 Link encap:Ethernet HWaddr blabla
inet6 addr: blabla/64 Scope:Global
inet6 addr: blabla/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10368 (10.1 KiB) TX bytes:9480 (9.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
As you can see, I have no inet addr in the eth0. I've tried to restart the networking service, but nothing has changed. How can I get an address?
I even tried:
lxc test stop
lxc network attach lxdbr0 test eth0 eth0
lxc config device set test eth0 ipv4.address 10.99.10.42
lxc start test
But nothing
Thanks
Asked by Akame14
(21 rep)
Aug 21, 2020, 10:37 AM
Last activity: May 24, 2025, 12:13 AM
Last activity: May 24, 2025, 12:13 AM