万兆网和千兆网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:~$ 
相关文章
|
7月前
|
人工智能 Ubuntu 前端开发
Dify部署全栈指南:AI从Ubuntu配置到HTTPS自动化的10倍秘籍
本文档介绍如何部署Dify后端服务及前端界面,涵盖系统环境要求、依赖安装、代码拉取、环境变量配置、服务启动、数据库管理及常见问题解决方案,适用于开发与生产环境部署。
1540 1
|
8月前
|
Ubuntu Linux 网络安全
Linux服务器之Ubuntu的安装与配置
Ubuntu Desktop是目前最成功、最流行的图形界面的Linux发行版;而Ubuntu Server也在服务器端市场占据了较大的份额。今天为大家详细介绍了Ubuntu Server的安装与配置,希望对你能有所帮助。关于VMware、VirtualBox等虚拟化软件的使用,朱哥还会在后续的文章中为大家详细介绍,敬请关注!
|
6月前
|
Ubuntu 编译器 开发工具
在Ubuntu系统上搭建RISC-V交叉编译环境
以上步骤涵盖了在Ubuntu系统上搭建RISC-V交叉编译环境的主要过程。这一过程涉及了安装依赖、克隆源码、编译安装工具链以及设置环境变量等关键步骤。遵循这些步骤,可以在Ubuntu系统上搭建一个用于RISC-V开发的强大工具集。
694 22
|
6月前
|
Ubuntu 编译器 计算机视觉
Ubuntu 20.04环境下无法找到#include<opencv/cv.h>文件 - 解决方案。
希望这些信息能帮助你解决遇到的问题。
372 10
|
7月前
|
Ubuntu 安全 应用服务中间件
详细指南:配置Nginx服务器在Ubuntu平台上
以上步骤涵盖了基本流程:从软件包管理器获取 Ngnix, 设置系统服务, 调整UFW规则, 创建并激活服务器块(也称作虚拟主机), 并进行了初步优化与加固措施。这些操作都是建立在命令行界面上,并假设用户具有必要权限(通常是root用户)来执行这些命令。每个操作都有其特定原因:例如,设置开机启动确保了即使重启后也能自动运行 Ngnix;而编辑server block则定义了如何处理进入特定域名请求等等。
412 18
|
7月前
|
Ubuntu 安全 应用服务中间件
详细指南:配置Nginx服务器在Ubuntu平台上
以上步骤涵盖了基本流程:从软件包管理器获取 Ngnix, 设置系统服务, 调整UFW规则, 创建并激活服务器块(也称作虚拟主机), 并进行了初步优化与加固措施。这些操作都是建立在命令行界面上,并假设用户具有必要权限(通常是root用户)来执行这些命令。每个操作都有其特定原因:例如,设置开机启动确保了即使重启后也能自动运行 Ngnix;而编辑server block则定义了如何处理进入特定域名请求等等。
677 17
|
7月前
|
存储 Ubuntu 自动驾驶
运行Udacity的MPC控制项目指南(project_10)在Ubuntu 18.04环境下
以上步骤应该能够帮助您成功设置并运行Udacity MPC控制项目,在此过程中您将学习如何应用模型预测控制理论去指导车辆沿着轨迹自主驾驶,在模拟环境下测试其效果。这个过程不但涵盖了理论知识也有实践操作,对于学习自动驾驶车辆控制系统非常有帮助。
224 15
|
7月前
|
Ubuntu 安全 关系型数据库
安装与配置MySQL 8 on Ubuntu,包括权限授予、数据库备份及远程连接指南
以上步骤提供了在Ubuntu上从头开始设置、配置、授权、备份及恢复一个基础但完整的MySQL环境所需知识点。
816 7
|
8月前
|
缓存 Ubuntu Docker
Ubuntu环境下删除Docker镜像与容器、配置静态IP地址教程。
如果遇见问题或者想回滚改动, 可以重启系统.
530 16
|
8月前
|
缓存 监控 Ubuntu
在Ubuntu 16.04上配置GitLab Runner以激活GitLab CI/CD流程
完成以上步骤后,每当代码被推送到远端仓库中相对应分支上时,GitLb CI / CD 流水线就会自动触发,并由之前注册好了 GitLb runner 的机器去完成定义好了 ` .gitlabcicd.yml ` 文件里面定义好各种任务(如编译测试部署等).
427 13