Chinaunix首页 | 论坛 | 博客
  • 博客访问: 502992
  • 博文数量: 197
  • 博客积分: 2071
  • 博客等级: 上尉
  • 技术积分: 1307
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-02 09:49
个人简介

prothes 专注嵌入式的ARM linux

文章分类

全部博文(197)

文章存档

2014年(3)

2013年(16)

2012年(108)

2011年(70)

分类: 嵌入式

2013-02-02 09:45:54

获取 mac地址

#  cat /sys/class/net/eth0/address
00:23:9e:ff:e1:1c

获取网线连接状态
# apt-get install ethtool
# ethtool eth0 | grep "Link detected:"
    Link detected: yes
如果没有接则显示为:
Link detected: no

阅读(1308) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~