linux 랜카드(wifi) 모델 확인하기(lshw -C network)
기본적으로 리눅스에서 네트워크 모델 확인 하는 방법은 lspci 를 이용한다.
# lspci
하면 위와 같이 나온다.
# lspci | grep Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
하면 네트워크가 1개 밖에 안나오는데
# ifconfig
enp0s20f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:e0: 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
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.142 netmask 255.255.255.0 broadcast 52.2.12.255
inet6 fe80::9e6b: prefixlen 64 scopeid 0x20<link>
ether 9c:6b txqueuelen 1000 (Ethernet)
RX packets 2795764 bytes 322099460 (307.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 267601 bytes 24460194 (23.3 MiB)
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 26331 bytes 1615826 (1.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26331 bytes 1615826 (1.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
위와 같이 랜카드가 2개가 나온다.
이럴 경우는
# lshw -C network 명령어를 쓰면
이렇게 안보이던 카드를 확인 할 수 있다.
'Linux' 카테고리의 다른 글
openvas docker install for ubuntu 22.04 (0) | 2023.10.31 |
---|---|
jenkins https 적용 방법 (0) | 2023.10.28 |
jenkins reset root password systemctl restart jenkins (1) | 2023.10.19 |
curl: (35) Peer reports incompatible or unsupported protocol version (0) | 2023.10.17 |
The certificate issuer's certificate has expired. Check your system date and time (0) | 2023.10.15 |