How to check if interface is up

前端 未结 3 772
情歌与酒
情歌与酒 2020-12-31 15:19

Title pretty much says it all. If I run ifconfig, I get this:

eth0: flags=4163  mtu 1500
    inet -snip-           


        
3条回答
  •  攒了一身酷
    2020-12-31 15:58

    Have you considered using the strace command to see how ifconfig works? you can even see what parameters are passed to functions and other interesting details of how ifconfig works ..

提交回复
热议问题