- 论坛徽章:
- 0
|
各位大虾,在SOLARIS中查询网卡MAC地址的命令是什么啊?
[quote]原帖由 "316134"]不知道SOLARIS中查询网卡MAC地址的命令[/quote 发表:
Sun的机器本身有MAC地址,另外每个interface都有自己的MAC地址。缺省状态下,一个机器内的所有的interface都使用机器的MAC地址。可以调整local-mac-address?,决定使用机器的MAC地址还是使用每个interface local的MAC地址。
在Solaris查询网卡MAC地址的命令:
1. ok下使用banner
看到是机器的MAC地址。
2. ok下,cd到interface的目录,是用.properties(sun4u) 或.attributes(sun4m or sun4c)
ok>; show-nets
ok>; cd <the network interface device directory>;
ok>; .properties(.attributes)
看到每个interface local的MAC地址
3. show-platform(Sunfire 3800/48x0/6800/12K/15K)
schostname:SC>; showplatform mac
看到是机器每个domain的MAC地址。
-----以下均是Solaris的命令。注意用eeprom检察local-mac-address?,如果是true,则看到是每个interface local的MAC地址;如果false,看到是机器的MAC地址。
4. boot messages
#dmesg | grep "Ethernet address ="
5. #ifconfig -a
6. # netstat -pn |grep SP |
|