多种方法在ubuntu系统上查看ip地址

使用ifconfig命令获取IP地址:

$ ifconfig

示例输出:

eth0: flags=4163 mtu 1500

inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255

inet6 fe80::a00:27ff:fe5c:ebac prefixlen 64 scopeid 0x20

ether 08:00:27:5c:eb:ac txqueuelen 1000 (Ethernet)

RX packets 26284 bytes 2144348 (2.1 MB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 24776 bytes 1939930 (1.9 MB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10

loop txqueuelen 1000 (Local Loopback)

RX packets 1558 bytes 115900 (115.9 KB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 1558 bytes 115900 (115.9 KB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

在上述示例中,eth0接口的IP地址是192.168.1.10。

上一篇: 微博封面如何更改?封面有什么用?2023-06-05 15:22:233588浏览
下一篇: 2025年最靠谱的3个游戏试玩APP赚钱平台推荐

相关推荐

华硕F541UJ7200
哪里能申请低利息且正规可靠的贷款?10个渠道全面分析
欲长寿,肠常清!“清理”肠道5大法则,建议你牢记!
dnf地下城与勇士卢克副本重置时间介绍
《极品飞车16》性能简评:这还是PC游戏么?
之前荐剧一直有人在问去哪儿看,所以在这里浅谈一下我熟悉的字幕