ubuntu系统中网卡设备相关信息
来源:互联网 发布:淘宝网高档棉麻围巾 编辑:程序博客网 时间:2024/04/27 22:13
转自:http://wiki.ubuntu.org.cn/%E7%BD%91%E5%8D%A1
目录
[隐藏]- 1基础知识
- 2ifconfig简介
- 2.1查看系统网卡信息
- 2.2查看网卡详细的硬件信息
- 2.3激活/禁用网卡
- 3启用/禁用网络
- 4iwconfig
- 5查看网卡设备信息
- 6修改网卡接口名
[编辑]基础知识
Ubuntu 中,通常有线网卡为eth0,无线网卡则为wlan0,后续增加的以此类推(可能某些无线网卡型号命名为eth1,而非wlan0)。
[编辑]ifconfig简介
ifconfig 是一个用来查看、配置、启用或禁用网络接口的工具,这个工具极为常用的(说的是喜欢动命令的人……)。
[编辑]查看系统网卡信息
ifconfig
[编辑]查看网卡详细的硬件信息
● lshw -class network *-network description: Wireless interface product: PRO/Wireless 3945ABG [Golan] Network Connection vendor: Intel Corporation physical id: 0 bus info: pci@0000:02:00.0 logical name: wlan0 version: 02 serial: 00:13:02:xx:xx:xx width: 32 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwl3945 ip=192.168.100.52 latency=0 multicast=yes wireless=IEEE 802.11abg resources: irq:29 memory:fe0ff000-fe0fffff
[编辑]激活/禁用网卡
激活网卡
sudo ifconfig 网卡设备名 up
查看网卡信息
ifconfig 网卡设备名
[编辑]启用/禁用网络
sudo /etc/init.d/networking start
[编辑]iwconfig
用于查看无线连接情况
qii@ubuntu:~$ iwconfiglo no wireless extensions.eth0 no wireless extensions.wlan0 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off
[编辑]查看网卡设备信息
查看网卡生产商,型号。
qii@ubuntu:~$ lspci | grep -i net03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
举例来说,最底部,这样的格式,这里第一行是Realtek的RTL8111/8168B有线网卡,第二行是Atheros的AR9285无线网卡。
如果你是USB网卡
lsusb
[编辑]修改网卡接口名
qii@ubuntu:~$ sudo nano /etc/udev/rules.d/70-persistent-net.rules
修改下列字段便成。
NAME="eth0"
和
NAME="wlan0"
随后重启Ubuntu。
- ubuntu系统中网卡设备相关信息
- Android中查看网卡设备信息
- Ubuntu中查看网卡信息的基础知识
- Ubuntu中查看网卡信息的基础知识
- linux(ubuntu) 查看系统设备信息
- 获取网卡相关信息
- Android开发中获取设备相关信息
- iphone中获取设备的相关信息
- ubuntu系统信息查询(主板,内存,硬盘,网卡)
- Android 获取设备网卡信息
- ubuntu中vim相关信息整理
- iOS--设备、系统、App相关信息
- 设备相关信息
- 获取设备相关信息
- 获取网卡的相关信息
- 获取网卡的相关信息
- linux 查看网卡相关信息
- ubuntu 查看系统版本号 查看硬件设备信息
- winform app.config 操作类
- HTML 页面内定位跳转
- Ubuntu11.10创建桌面启动器
- 如何在网页标题栏上显示ICO图标
- 织梦首页登录后返回首页的方法
- ubuntu系统中网卡设备相关信息
- Ubuntu 10.10安装配置指南&Ubuntu 11.10 图形安装教程
- IOS 入门开发之使用XCODE4制作静态库详解
- jqGrid 从服务器读取json数据不显示问题 ; 样式不正常问题
- solaris10.2 x86 下载地址
- 查看Oracle执行的语句
- POJ 3006 Dirichlet's Theorem on Arithmetic Progressions
- Linux command命令
- Android底层库和程序