fromshimportifconfigprint(ifconfig("wlan0"))详见http://amoffat.github.io/sh/
分类:
编程语言 时间:
2014-07-20 10:36:18
阅读次数:
209
Zedboard自带有一颗ethernet PHY,Marvell 88E1518。在Zedboard自带的SD卡中已经包含有驱动,通过简单的设置即可联网。不过由于自己用的电脑是绑定mac地址的,设置起来多了几步。sudo ifconfig eth0 downsudo ifconfig eth0 h...
分类:
数据库 时间:
2014-07-19 21:38:29
阅读次数:
1192
ThinkPadT440安装完 Ubuntu14.04之后,查看了以下内核版本为:3.13.0-24-generic1:通过ifconfig发现没有wlan02:通过lspci -vnn | grep Wireless 查看无线网卡信息为RTL8192EE,google了一番,Realtec公司的r...
分类:
其他好文 时间:
2014-07-19 21:34:21
阅读次数:
185
一、修改MAC地址方法linux环境下:需要用 #ifconfig eth0 down 先把网卡禁用 再用ifconfig eth0 hw ether 1234567890ab 这样就可以改成功了要想永久改就这样在/etc/rc.d/rc.local里加上这三句(也可以在/etc/init.d/ne...
分类:
系统相关 时间:
2014-07-16 19:15:49
阅读次数:
302
VMware里克隆出来的CentOSLinux。。ifconfig...没有看到eth0.。然后重启网卡又报下面错误。故障现象:service network restartShutting down loopback insterface: ...
分类:
系统相关 时间:
2014-07-16 18:24:24
阅读次数:
230
ping -n 1 -w 10000 224.0.0.0 模拟sleep wget ifconfig.me/ip -q -O - 获取你的外部ip地址 wget -S -O/dev/null "INSERT_URL_HERE" 2>&1 | grep Server 查看服务器软件(比如 Apache...
分类:
其他好文 时间:
2014-07-16 16:58:53
阅读次数:
186
默认启动
tcpdump
普通情况下,直接启动tcpdump将监视第一个网络接口上所有流过的数据包。
监视指定网络接口的数据包
tcpdump -i eth1
如果不指定网卡,默认tcpdump只会监视第一个网络接口,一般是eth0,下面的例子都没有指定网络接口。
查看本机网络接口
ifconfig
找到自己ip的那个网络接口
监视指...
分类:
系统相关 时间:
2014-07-16 14:27:06
阅读次数:
236
1)在RHEL5系统中,以下命令(C)可用来查看系统的路由表信息A)ipaddlistB)showiprouteC)route-nD)route--print补充:查看网络接口信息ifconfig查看网络连接情况netstat跟踪数据包traceroute目标主机地址域名解析nslookup目标主机地址2)在Linux系统日志消息中,重要性最低的是..
分类:
其他好文 时间:
2014-07-15 10:58:36
阅读次数:
403
[root@localhost ~]# rpm -qf /sbin/ipiproute-2.6.32-31.el6.x86_64ip 是个命令, ip 命令的功能很多!基本上它整合了 ifconfig 与 route 这两个命令ip - show / manipulate routing, devi...
分类:
系统相关 时间:
2014-07-14 09:23:30
阅读次数:
4730
1. 固定一个MAC地址,特别是在使用多个虚拟机的时候
linux环境下:
用root身份登录,在/etc/rc.d/rc.local里加上这三句
ifconfig eth0 down
ifconfig eth0 hw ether 00:0C:18:EF:FF:ED
ifconfig eth0 up
这样重新reboot后就不怕MAC复原了。
2. ifconfig命令(转...
分类:
系统相关 时间:
2014-07-13 16:14:11
阅读次数:
322