zoukankan      html  css  js  c++  java
  • Solaris 10 查看机器的网卡mac地址

    方法1:
        以root运行/usr/sbin/ifconfig -a
    ----------------------------------------------------------------------------------
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            zone udi
            inet 127.0.0.1 netmask ff000000
    elxl0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 192.168.11.5 netmask fffff000 broadcast 192.168.15.255
            ether 0:1:2:c5:33:e2
    ----------------------------------------------------------------------------------
    方法2:
        /usr/sbin/arp -a  (普通用户可以运行)
    ----------------------------------------------------------------------------------
    -bash-3.00$ arp -a | grep `hostname` | awk '{print $5}'
    00:01:02:c5:33:e2
    ----------------------------------------------------------------------------------

    方法3:
    /bin/netstat (普通用户可以运行)
    ----------------------------------------------------------------------------------
    -bash-3.00$ netstat -p | grep `hostname` | awk '{print $5}'
    00:01:02:c5:33:e2
    ----------------------------------------------------------------------------------

  • 相关阅读:
    【福利】乳摇动画初探
    碎裂效果尝试(clip-path篇)
    碎裂效果尝试(canvas篇)
    自己的HTML5 播放器
    纯CSS实现选项卡
    企鹅阿里实习生面试
    关于使用indexedDB的本地存储(3)
    关于使用indexedDB的本地存储(2)
    关于使用indexedDB的本地存储(1)
    关于ajax分段上传文件实例~
  • 原文地址:https://www.cnblogs.com/leipei2352/p/2081541.html
Copyright © 2011-2022 走看看