The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Ethernet does not show my IP (i3status)

asked 2012-08-26 14:48:29 +0000

lzap gravatar image

Hello, in Fedora 17 ethernet does not show up for some reason:

ethernet eth0 {
  format_up = "E: %ip"
  format_down = "E: down"
}

$ i3status
...E: down...

$ LC_ALL=C ifconfig
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.9  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::f2de:f1ff:fe03:2187  prefixlen 64  scopeid 0x20<link>
        ether f0:de:f1:aa:bb:cc  txqueuelen 1000  (Ethernet)
        RX packets 14888  bytes 8894162 (8.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14013  bytes 4302263 (4.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf2500000-f2520000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 278  bytes 36589 (35.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 278  bytes 36589 (35.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:cc:bb:aa  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

What is the trick in my case? I have bridge configured in my Fedora. Tried also this:

sudo setcap cap_net_admin=ep $(which i3status)

with no help. Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
6

answered 2012-08-26 14:57:19 +0000

badboy_ gravatar image

Your network interface is named em1, but your config for i3status is for eth0. Change it in the config and you should be fine.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-08-26 14:48:29 +0000

Seen: 1,339 times

Last updated: Aug 26 '12