나는 함께 IP 주소를 얻으려면 ifconfig
및 GET
me@me:~$ ifconfig
enp6s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 48:5b:39:68:79:80 txqueuelen 1000 (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
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 889 bytes 74199 (74.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 889 bytes 74199 (74.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.31.231 netmask 255.255.255.0 broadcast 192.168.31.255
inet6 fe80::e782:b8a7:7711:1b90 prefixlen 64 scopeid 0x20<link>
ether 1c:4b:d6:c5:c6:3c txqueuelen 1000 (Ethernet)
RX packets 54953 bytes 4365651 (4.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2628 bytes 352889 (352.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
나는 어느 것을 선택했는지 확신 할 수 없다. inet 또는 broadcats
good old ifconfig
는 더 이상 사용되지 않고 ip
.
당신이 달릴 때
ip a
당신은 당신이 얻는 것과 비슷한 정보를 얻습니다.
ifconfig # without options and parameters
참조 man ip
가능한 옵션, 개체 및 명령에 대한 자세한 정보를 얻을 수 있습니다.
귀하의 질문에 따르면 IP 주소는 inet
192.168.31.231
이며 ip a
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다