외부 단말의 NetBIOS 이름을 찾아보고 싶었다. RHEL OS 에서는 nmblookup 과 nbtscan 이라는 명령어로 확인 할 수 있다.
1. nmblookup
samba-client 패키지에 포함되어 있다.
~]$ sudo dnf install samba-client
~]$ nmblookup -A 192.168.2.123
Looking up status of 192.168.2.123
MACBOOKPRO-212C <00> - H <ACTIVE>
MAC Address = BC-D0-74-5F-21-2C
2. nbtscan
nbtscan 은 epel 저장소에 있는 패키지이다. epel 저장소를 활성화 후 ntbscan 패키지 설치하면 된다.
]$ sudo dnf install -y epel-release
...
]$ sudo dnf install -y nbtscan
]# nbtscan 192.168.2.123
Doing NBT name scan for addresses from 192.168.2.123
IP address NetBIOS Name Server User MAC address
------------------------------------------------------------------------------
192.168.2.123 MACBOOKPRO-212C <unknown> bc-d0-74-5f-21-2c
]$ sudo nbtscan -r 192.168.3.0/24
[sudo] password for poorog:
Doing NBT name scan for addresses from 192.168.3.0/24
IP address NetBIOS Name Server User MAC address
------------------------------------------------------------------------------
192.168.3.57 DESKTOP-NDPPBIF <server> <unknown> 08-62-xx-xx-64-86
192.168.3.112 DESKTOP-JFUABTI <server> <unknown> bc-f1-xx-xx-ed-c7
192.168.3.49 IMAC-D4CA85 <unknown> 24-f6-xx-xx-21-12
192.168.3.26 MACBOOKPRO-A602 <unknown> 14-7d-xx-xx-a6-02
192.168.3.118 DESKTOP-1VBEIFK <server> <unknown> cc-15-xx-xx-95-3a
개인적으로 nbtscan을 선호한다.