linux查看网卡物理编号_关于如何查看多网卡物理机中网卡序号与物理网卡的对应该关系...
做软件开发的人都知道:接触真正底层系统驱动的的机会很少(做网络驱动的除外哦),上周和同事一起在一块物理机的办卡上安装centerOS6.5(至于为啥安装6.5版本的,只能说厂商要求的),遇到了一个持续好几天的问题:拔掉U盘后,物理机启动不了。博友们可能会说,bootleader安装在了U盘上,改一下启动项设置就可以了,如果整的是这么简单的话,那就好了。另外自己也接触了网络安装系统的方式,尽管失败了,但是感觉学到了很多东西。下面说正事儿:
系统安装好以后:有序物理机上有好几块网卡,但是不知道系统中网络配置的网卡序号和那个网卡接口对应。这里就需要使用ethtool这个工具了。下面来介绍以下这个工具的参数及意义:使用ethtool -h可以看到该工具的参数里表及代表的意思
root@ubuntu:~# ethtool -h
ethtool version 4.5
Usage:
ethtool DEVNAME Display standard information about device eg:ethtool eth0(这里需要你使用ifconfig 命令查看dev的名字)
ethtool -s|--change DEVNAME Change generic options
[ speed %d ] eg:ethtool -s eth0 [speed = 100 | 1000] 设置网口速率
[ duplex half|full ] eg:设置网口半双工/全双工
[ port tp|aui|bnc|mii|fibre ]
[ mdix auto|on|off ]
[ autoneg on|off ] eg:设置网口是否自协商
[ advertise %x ]
[ phyad %d ]
[ xcvr internal|external ]
[ wol p|u|m|b|a|g|s|d... ]
[ sopass %x:%x:%x:%x:%x:%x ]
[ msglvl %d | msglvl type on|off ... ]
ethtool -a|--show-pause DEVNAME Show pause options
ethtool -A|--pause DEVNAME Set pause options
[ autoneg on|off ]
[ rx on|off ]
[ tx on|off ]
ethtool -c|--show-coalesce DEVNAME Show coalesce options
ethtool -C|--coalesce DEVNAME Set coalesce options
[adaptive-rx on|off]
[adaptive-tx on|off]
[rx-usecs N]
[rx-frames N]
[rx-usecs-irq N]
[rx-frames-irq N]
[tx-usecs N]
[tx-frames N]
[tx-usecs-irq N]
[tx-frames-irq N]
[stats-block-usecs N]
[pkt-rate-low N]
[rx-usecs-low N]
[rx-frames-low N]
[tx-usecs-low N]
[tx-frames-low N]
[pkt-rate-high N]
[rx-usecs-high N]
[rx-frames-high N]
[tx-usecs-high N]
[tx-frames-high N]
[sample-interval N]
ethtool -g|--show-ring DEVNAME Query RX/TX ring parameters
ethtool -G|--set-ring DEVNAME Set RX/TX ring parameters
[ rx N ]
[ rx-mini N ]
[ rx-jumbo N ]
[ tx N ]
ethtool -k|--show-features|--show-offload DEVNAME Get state of protocol offload and other features
ethtool -K|--features|--offload DEVNAME Set protocol offload and other features
FEATURE on|off ...
ethtool -i|--driver DEVNAME Show driver information
ethtool -d|--register-dump DEVNAME Do a register dump
[ raw on|off ]
[ file FILENAME ]
ethtool -e|--eeprom-dump DEVNAME Do a EEPROM dump
[ raw on|off ]
[ offset N ]
[ length N ]
ethtool -E|--change-eeprom DEVNAME Change bytes in device EEPROM
[ magic N ]
[ offset N ]
[ length N ]
[ value N ]
ethtool -r|--negotiate DEVNAME Restart N-WAY negotiation
ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking)
[ TIME-IN-SECONDS ]
ethtool -t|--test DEVNAME Execute adapter self test
[ online | offline | external_lb ]
ethtool -S|--statistics DEVNAME Show adapter statistics
ethtool --phy-statistics DEVNAME Show phy statistics
ethtool -n|-u|--show-nfc|--show-ntuple DEVNAME Show Rx network flow classification options or rules
[ rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 |
rule %d ]
ethtool -N|-U|--config-nfc|--config-ntuple DEVNAME Configure Rx network flow classification options or rules
rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r... |
flow-type ether|ip4|tcp4|udp4|sctp4|ah4|esp4
[ src %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ dst %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ proto %d [m %x] ]
[ src-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ dst-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ tos %d [m %x] ]
[ l4proto %d [m %x] ]
[ src-port %d [m %x] ]
[ dst-port %d [m %x] ]
[ spi %d [m %x] ]
[ vlan-etype %x [m %x] ]
[ vlan %x [m %x] ]
[ user-def %x [m %x] ]
[ dst-mac %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ action %d ]
[ loc %d]] |
delete %d
ethtool -T|--show-time-stamping DEVNAME Show time stamping capabilities
ethtool -x|--show-rxfh-indir|--show-rxfh DEVNAME Show Rx flow hash indirection and/or hash key
ethtool -X|--set-rxfh-indir|--rxfh DEVNAME Set Rx flow hash indirection and/or hash key
[ equal N | weight W0 W1 ... ]
[ hkey %x:%x:%x:%x:%x:.... ]
ethtool -f|--flash DEVNAME Flash firmware image from the specified file to a region on the device
FILENAME [ REGION-NUMBER-TO-FLASH ]
ethtool -P|--show-permaddr DEVNAME Show permanent hardware address
ethtool -w|--get-dump DEVNAME Get dump flag, data
[ data FILENAME ]
ethtool -W|--set-dump DEVNAME Set dump flag of the device
N
ethtool -l|--show-channels DEVNAME Query Channels
ethtool -L|--set-channels DEVNAME Set Channels
[ rx N ]
[ tx N ]
[ other N ]
[ combined N ]
ethtool --show-priv-flags DEVNAME Query private flags
ethtool --set-priv-flags DEVNAME Set private flags
FLAG on|off ...
ethtool -m|--dump-module-eeprom|--module-info DEVNAME Query/Decode Module EEPROM information and optical diagnostics if available
[ raw on|off ]
[ hex on|off ]
[ offset N ]
[ length N ]
ethtool --show-eee DEVNAME Show EEE settings
ethtool --set-eee DEVNAME Set EEE settings
[ eee on|off ]
[ advertise %x ]
[ tx-lpi on|off ]
[ tx-timer %d ]
ethtool -h|--help Show this help
ethtool --version Show version number
注意:
使用ethtool -p devname 网口不停闪烁的就是网卡序号对应的网口。
另外比较笨的方法一个个接上网线试一试
linux查看网卡物理编号_关于如何查看多网卡物理机中网卡序号与物理网卡的对应该关系...相关推荐
- keyshot聚光灯_【KeyShot教程】如何在KeyShot中创建和使用物理灯光?
原标题:[KeyShot教程]如何在KeyShot中创建和使用物理灯光? 在KeyShot中,有两种方法可以点亮场景.HDRI是默认方法,但也可以使用物理灯.HDRI和物理照明的组合也很有效.要添加物 ...
- linux上logbok实时日志_如何实时查看linux下的日志
展开全部 查看方式:cat /var/log/*.log 如果日志在更新,实时查看 tail -f /var/log/messages 还可以使用 watch -d -n 1 cat /var/log ...
- linux 查看mysql表结构_新手进阶 查看MySQL表结构命令
MySQL查看表结构命令,如下: desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_s ...
- composer查看当前镜像取消_配置和查看composer镜像
composer 默认地址改为中国镜像地址,以及中国镜像地址还原成默认地址 一.查看当前镜像地址 在命令行输入如下命令,即可查看全局镜像地址: $ composer config -g repo.pa ...
- vc获取n卡编号_电脑入门知识:通过显卡型号中字母和数字判断显卡性能
电脑入门知识:通过显卡型号中字母和数字判断显卡性能 我们这些外行人看显卡,最高水平也就看看显卡品牌说说显存大小.所以一个称号我们受之泰然:菜鸟!下面的内容可以帮助我们对显卡的了解更深入一点,我们先来看 ...
- 怎样查看mysql连接池_如何实时查看mysql当前连接数?
一.命令mysqladmin 1.查看当前所有连接的详细: mysqladmin -uroot -p -h127.0.0.1 processlist 2.只查看当前连接数(Threads就是连接数.) ...
- ensp查看历史配置命令_华为路由查看配置命令是什么?
展开全部 en 进入特权模式 conf 进入全局配置模式 in s0 进入 serial 0 端口配置 ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩 ...
- ubuntu备份文件_使用Ubuntu Live CD从死机中备份文件
ubuntu备份文件 If you've ever asked for help with your Windows computer that won't boot anymore, you've ...
- linux查看网卡物理编号_Linux下多网卡时,如何快速辨别网卡ID与物理网卡的对应关系(即ethtool命令)...
一般购买的服务器都有4个网卡,这个时候在安装好服务器后,配置IP的时候就郁闷了 如是一个浪潮8560M2服务器安装Redhat后的网卡显示: [root@DBSERVER51 ~]# ifconfig ...
最新文章
- 程序php!index.,php.index
- MHA选择主库源码解析
- 在项目里交叉使用Swift和OC【转】
- Floyd算法应用-医院选址问题
- SOTIF预期功能安全工作流程
- [Flink] The file LOG does not exist on the TaskExecutor
- Java8新特性_接口中的默认方法
- 这一周,我们迁移学习 | 内有福利
- Why is it called “armature” instead of “skeleton”? or perhaps “rig”?
- Atitit.导出excel功能的设计 与解决方案
- YYtext简单使用
- 生命计算机在线,抖音死亡计算器寿命计算器在线测试入口 使用生命年龄计算器...
- Python中的Counter.most_common()方法
- [copypaste]各种渐进表示法
- 侯晓迪:全身心的投入,吃住都在实验室
- 软件行业的QA与QC的区别
- Cisco SN查询工具
- Django计算机毕业设计交通违章举报平台(程序+lw)Python
- java队列处理高并发_Java高并发--消息队列
- git使用 - 暂存更改
热门文章
- 汉诺塔游戏的python实现——递归函数
- arthas 查看哪个方法调用最耗时_Arthas实战
- win7蓝屏_Win7大面积蓝屏?急!解决办法在这儿~
- Linux 条件变量使用细节(为何调用 pthread_cond_wait 前加锁,函数内部解锁,返回时又加锁)
- 数据结构与算法 / 默克尔树
- html 窗口大小改变,html – 调整窗口大小时缩放整个身体
- 百度安全发布PaddleSleeve 面向产业实践开启AI模型安全与隐私探索
- 刷新存储器的容量单位是什么_存储系统 半导体存储器
- java入门第六天课程_Java基础知识——第六天
- java 获取三天前时间_java 获取前几天时间