LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: terry0088

有哪位大哥知道在LINUX下用什么命令取得客户端的网卡MAC码呀!!!在线等!

[复制链接]
发表于 2004-7-6 14:44:25 | 显示全部楼层
root: ~ # nmap -sP 192.168.1.1

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Host Modem (192.168.1.1) appears to be up.
Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
root: ~ # arp -a
Modem (192.168.1.1) at 00:40:05:1A3:68 [ether] on eth0
root: ~ #
发表于 2004-7-6 20:24:09 | 显示全部楼层
先ping,然后
arp -a

或者arping

$sudo apt-cache show arping
Package: arping
Priority: optional
Section: net
Installed-Size: 88
Maintainer: Lenart Janos <ocsi@debian.org>
Architecture: i386
Version: 2.01-3
Depends: libc6 (>= 2.3.2.ds1-4), libnet1 (>= 1.1.1-1), libpcap0.7
Conflicts: iputils-arping, iputils-ping (<< 20001110-6)
Filename: pool/main/a/arping/arping_2.01-3_i386.deb
Size: 18638
MD5sum: 531ec0eacc3a55b9d475a25afa44ecd6
Description: sends IP and/or ARP pings (to the MAC address)
The arping utility sends ARP and/or ICMP requests to the specified host and displays the replies. The host may be specified by its hostname, its IP address, or its MAC address.
.
This program is only able to run as root. Make it setuid if you like.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表