TransWikia.com

ETH0 no address ip with ifconfig

Unix & Linux Asked by Akame14 on August 24, 2020

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

One Answer

Try this

Service restart NetworkManager

Or :

Service restart network-manager

Then go to the internet settings and find eth0 and select it to access anything you connect to your computer via Ethernet cable

Hope I helped ?

Answered by aris on August 24, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP