万兆网和千兆网ubuntu环境下的配置

简介: 第一个是万兆网,没有连线,第二个是千兆网,连线了。

第一个是万兆网,没有连线,第二个是千兆网,连线了。

scutech@infokist-arm:~$ ethtool enp130s0f1
Settings for enp130s0f1:
  Supported ports: [ FIBRE ]
  Supported link modes:   1000baseT/Full 
                          10000baseT/Full 
  Supported pause frame use: Symmetric
  Supports auto-negotiation: Yes
  Supported FEC modes: Not reported
  Advertised link modes:  1000baseT/Full 
                          10000baseT/Full 
  Advertised pause frame use: Symmetric
  Advertised auto-negotiation: Yes
  Advertised FEC modes: Not reported
  Speed: Unknown!
  Duplex: Unknown! (255)
  Port: FIBRE
  PHYAD: 0
  Transceiver: internal
  Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
  Current message level: 0x00000007 (7)
             drv probe link
  Link detected: no
scutech@infokist-arm:~$ ethtool enp125s0f0
Settings for enp125s0f0:
  Supported ports: [ TP ]
  Supported link modes:   10baseT/Half 10baseT/Full 
                          100baseT/Half 100baseT/Full 
                          1000baseT/Full 
  Supported pause frame use: Symmetric Receive-only
  Supports auto-negotiation: Yes
  Supported FEC modes: Not reported
  Advertised link modes:  10baseT/Half 10baseT/Full 
                          100baseT/Half 100baseT/Full 
                          1000baseT/Full 
  Advertised pause frame use: Symmetric Receive-only
  Advertised auto-negotiation: Yes
  Advertised FEC modes: Not reported
  Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                       100baseT/Half 100baseT/Full 
                                       1000baseT/Full 
  Link partner advertised pause frame use: Symmetric Receive-only
  Link partner advertised auto-negotiation: Yes
  Link partner advertised FEC modes: Not reported
  Speed: 1000Mb/s
  Duplex: Full
  Port: MII
  PHYAD: 1
  Transceiver: internal
  Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
  Link detected: yes
scutech@infokist-arm:~$ 

up以后才能看到网卡link

scutech@infokist-arm:~$ ifconfig enp130s0f0 up
SIOCSIFFLAGS: Operation not permitted
scutech@infokist-arm:~$ sudo ifconfig enp130s0f0 up
[sudo] password for scutech: 
scutech@infokist-arm:~$ sudo ifconfig enp130s0f1 up
scutech@infokist-arm:~$ ethtool enp130s0f0
Settings for enp130s0f0:
  Supported ports: [ FIBRE ]
  Supported link modes:   1000baseT/Full 
                          10000baseT/Full 
  Supported pause frame use: Symmetric
  Supports auto-negotiation: Yes
  Supported FEC modes: Not reported
  Advertised link modes:  1000baseT/Full 
                          10000baseT/Full 
  Advertised pause frame use: Symmetric
  Advertised auto-negotiation: Yes
  Advertised FEC modes: Not reported
  Speed: 10000Mb/s
  Duplex: Full
  Port: FIBRE
  PHYAD: 0
  Transceiver: internal
  Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
  Current message level: 0x00000007 (7)
             drv probe link
  Link detected: yes
scutech@infokist-arm:~$ ethtool enp130s0f1
Settings for enp130s0f1:
  Supported ports: [ FIBRE ]
  Supported link modes:   1000baseT/Full 
                          10000baseT/Full 
  Supported pause frame use: Symmetric
  Supports auto-negotiation: Yes
  Supported FEC modes: Not reported
  Advertised link modes:  1000baseT/Full 
                          10000baseT/Full 
  Advertised pause frame use: Symmetric
  Advertised auto-negotiation: Yes
  Advertised FEC modes: Not reported
  Speed: Unknown!
  Duplex: Unknown! (255)
  Port: FIBRE
  PHYAD: 0
  Transceiver: internal
  Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
  Current message level: 0x00000007 (7)
             drv probe link
  Link detected: no
scutech@infokist-arm:~$ sudo ip addr add 10.168.85.145/24 dev enp130s0f0
scutech@infokist-arm:~$ ifconfig
enp125s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.87.145  netmask 255.255.255.0  broadcast 192.168.87.255
        inet6 fe80::7a17:beff:fec4:39c1  prefixlen 64  scopeid 0x20<link>
        ether 78:17:be:c4:39:c1  txqueuelen 1000  (Ethernet)
        RX packets 12017  bytes 769909 (769.9 KB)
        RX errors 0  dropped 628  overruns 0  frame 0
        TX packets 1632  bytes 150951 (150.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
enp130s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.168.85.145  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::210:caff:feee:126  prefixlen 64  scopeid 0x20<link>
        ether 00:10:ca:ee:01:26  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 243 (243.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10  bytes 796 (796.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
enp130s0f1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:10:ca:ee:01:27  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 316  bytes 23997 (23.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 316  bytes 23997 (23.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
scutech@infokist-arm:~$ ping 10.168.85.178
PING 10.168.85.178 (10.168.85.178) 56(84) bytes of data.
64 bytes from 10.168.85.178: icmp_seq=1 ttl=64 time=0.348 ms
64 bytes from 10.168.85.178: icmp_seq=2 ttl=64 time=0.147 ms
^C
--- 10.168.85.178 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1003ms
rtt min/avg/max/mdev = 0.147/0.247/0.348/0.101 ms
scutech@infokist-arm:~$ 
相关文章
|
10天前
|
Ubuntu Shell 开发工具
ubuntu/debian shell 脚本自动配置 gitea git 仓库
这是一个自动配置 Gitea Git 仓库的 Shell 脚本,支持 Ubuntu 20+ 和 Debian 12+ 系统。脚本会创建必要的目录、下载并安装 Gitea,创建 Gitea 用户和服务,确保 Gitea 在系统启动时自动运行。用户可以选择从官方或小绿叶技术博客下载安装包。
27 2
|
1月前
|
网络协议 Ubuntu 网络安全
|
1月前
|
消息中间件 监控 Ubuntu
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
75 3
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
|
1月前
|
资源调度
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
37 2
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
|
1月前
|
Ubuntu Linux 编译器
Linux/Ubuntu下使用VS Code配置C/C++项目环境调用OpenCV
通过以上步骤,您已经成功在Ubuntu系统下的VS Code中配置了C/C++项目环境,并能够调用OpenCV库进行开发。请确保每一步都按照您的系统实际情况进行适当调整。
275 3
|
1月前
|
Ubuntu
Ubuntu学习笔记(七):ubuntu下jupyter指定虚拟环境
本文介绍了如何在Ubuntu系统下使用Anaconda和Jupyter Notebook指定并切换不同的虚拟环境。
82 0
Ubuntu学习笔记(七):ubuntu下jupyter指定虚拟环境
|
2月前
|
Ubuntu 数据安全/隐私保护
Ubuntu22.04LTS环境部署实战
这篇文章提供了Ubuntu 22.04 LTS操作系统的详细安装步骤,包括选择语言、键盘布局、网络配置、软件源设置、磁盘分区、安装OpenSSH服务以及完成安装和首次登录系统的过程。
214 6
Ubuntu22.04LTS环境部署实战
|
2月前
|
Ubuntu 网络安全 开发工具
Ubuntu19.04的安装过程详解以及操作系统初始化配置
本文详细介绍了Ubuntu 19.04操作系统的安装过程、初始化配置、网络设置、软件源配置、SSH远程登录以及终端显示设置。
88 1
Ubuntu19.04的安装过程详解以及操作系统初始化配置
|
2月前
|
存储 Prometheus 监控
在Ubuntu系统上安装与配置Prometheus的步骤
通过以上步骤,您应该已经成功在Ubuntu系统上安装并配置了Prometheus。您现在可以开始使用Prometheus收集和分析您的系统和应用程序的指标数据了。
175 1
|
1月前
|
Ubuntu 网络协议 Linux
liunx各大发行版(centos,rocky,ubuntu,国产麒麟kylinos)网卡配置和包管理方面的区别
liunx各大发行版(centos,rocky,ubuntu,国产麒麟kylinos)网卡配置和包管理方面的区别
108 0