How can I tell what interface is active in Linux?

This topic contains 1 reply, has 1 voice, and was last updated by  Dennis 4 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13337

    Dennis
    Keymaster

    Running Linux in a VM and not sure which of the installed interfaces are active.  Does anyone know how to check?

    #13338

    Dennis
    Keymaster

    First run

    ls /sys/class/net
    ens160 ens192 lo

    Now you see what interfaces you have.  Let’s find out which one has a link light.

    cat /sys/class/net/ens160/carrier
    1
    
    cat /sys/class/net/ens192/carrier
    0

    So ens160 has a link light and ens192 doesn’t

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.