万兆网和千兆网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:~$ 
相关文章
|
9天前
|
网络协议 Ubuntu 网络安全
|
14天前
|
消息中间件 监控 Ubuntu
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
47 3
大数据-54 Kafka 安装配置 环境变量配置 启动服务 Ubuntu配置 ZooKeeper
|
18天前
|
资源调度
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
31 2
Ubuntu22.04静态ip配置+yarn build后显示内存超限,变异失败
|
9天前
|
Ubuntu Linux 编译器
Linux/Ubuntu下使用VS Code配置C/C++项目环境调用OpenCV
通过以上步骤,您已经成功在Ubuntu系统下的VS Code中配置了C/C++项目环境,并能够调用OpenCV库进行开发。请确保每一步都按照您的系统实际情况进行适当调整。
114 3
|
9天前
|
Ubuntu
Ubuntu学习笔记(七):ubuntu下jupyter指定虚拟环境
本文介绍了如何在Ubuntu系统下使用Anaconda和Jupyter Notebook指定并切换不同的虚拟环境。
33 0
Ubuntu学习笔记(七):ubuntu下jupyter指定虚拟环境
|
1月前
|
Ubuntu 数据安全/隐私保护
Ubuntu22.04LTS环境部署实战
这篇文章提供了Ubuntu 22.04 LTS操作系统的详细安装步骤,包括选择语言、键盘布局、网络配置、软件源设置、磁盘分区、安装OpenSSH服务以及完成安装和首次登录系统的过程。
164 6
Ubuntu22.04LTS环境部署实战
|
1月前
|
Ubuntu 网络安全 开发工具
Ubuntu19.04的安装过程详解以及操作系统初始化配置
本文详细介绍了Ubuntu 19.04操作系统的安装过程、初始化配置、网络设置、软件源配置、SSH远程登录以及终端显示设置。
72 1
Ubuntu19.04的安装过程详解以及操作系统初始化配置
|
1月前
|
存储 Prometheus 监控
在Ubuntu系统上安装与配置Prometheus的步骤
通过以上步骤,您应该已经成功在Ubuntu系统上安装并配置了Prometheus。您现在可以开始使用Prometheus收集和分析您的系统和应用程序的指标数据了。
83 1
|
20天前
|
Ubuntu 网络协议 Linux
liunx各大发行版(centos,rocky,ubuntu,国产麒麟kylinos)网卡配置和包管理方面的区别
liunx各大发行版(centos,rocky,ubuntu,国产麒麟kylinos)网卡配置和包管理方面的区别
|
1月前
|
Ubuntu 应用服务中间件 网络安全
Ubuntu 22.04环境下为Odoo开启80端口的方法
通过以上步骤,你应该能够在Ubuntu 22.04环境下为Odoo开启80端口。访问你的域名时,Nginx会将请求代理到Odoo,允许你通过80端口访问Odoo应用。
55 1