[转帖]Ubuntu关于网口的信息查看

ubuntu,关于,网口,信息,查看 · 浏览次数 : 0

小编点评

**端口信息:** ``` Supported ports: [ FIBRE ] Supported link modes: 1000baseT/Full 10000baseT/Full 25000baseCR/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 1000baseT/Full 10000baseT/Full 25000baseCR/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: FIBRE PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x00000000 (0) Link detected: yes ```

正文

https://blog.yelvlab.cn/archives/591/

 

这篇比较简单,单纯为了记录。

 

查看端口号:

  • ifconfig
 
 
root@xjwx:~# ifconfig eno33np0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.16.5.222 netmask 255.255.0.0 broadcast 172.16.255.255 inet6 fe80::be97:e1ff:fed6:5420 prefixlen 64 scopeid 0x20<link> ether bc:97:e1:d6:54:20 txqueuelen 1000 (Ethernet) RX packets 45526 bytes 7425016 (7.4 MB) RX errors 0 dropped 1129 overruns 0 frame 471 TX packets 833 bytes 135878 (135.8 KB) 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 84 bytes 7204 (7.2 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 84 bytes 7204 (7.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

主要看现在可以用的端口

  • ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno33np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether bc:97:e1:d6:54:20 brd ff:ff:ff:ff:ff:ff
    inet 172.16.5.222/16 brd 172.16.255.255 scope global eno33np0
       valid_lft forever preferred_lft forever
    inet6 fe80::be97:e1ff:fed6:5420/64 scope link
       valid_lft forever preferred_lft forever
3: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 70:b5:e8:d0:9d:da brd ff:ff:ff:ff:ff:ff
4: eno34np1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether bc:97:e1:d6:54:21 brd ff:ff:ff:ff:ff:ff
5: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 70:b5:e8:d0:9d:db brd ff:ff:ff:ff:ff:ff

查看所有的端口基本信息

 

ethtool eno33np0查看更详细的一个端口的信息:

Settings for eno33np0:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
                                25000baseCR/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseT/Full
                                10000baseT/Full
                                25000baseCR/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  Not reported
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: No
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x00000000 (0)

        Link detected: yes

与[转帖]Ubuntu关于网口的信息查看相似的内容:

[转帖]Ubuntu关于网口的信息查看

https://blog.yelvlab.cn/archives/591/ 这篇比较简单,单纯为了记录。 查看端口号: ifconfig root@xjwx:~# ifconfig eno33np0: flags=4163 mtu 15

[转帖]关于ubuntu:如何在-Ubuntu-Server-2204-上设置静态IP地址

https://lequ7.com/guan-yu-ubuntu-ru-he-zai-ubuntuserver2204-shang-she-zhi-jing-tai-ip-di-zhi.html 在这篇文章中,咱们将介绍如何在 Ubuntu Server 22.04 上设置动态 ip 地址。 强烈建

[转帖]ubuntu apt-get update时报错:由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 E: 仓库...

在使用apt-get update 更新ubuntu时,出现下面的错误: W: GPG 错误:http://mirrors.aliyun.com/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKE

[转帖]UBUNTU时间同步

从UBUNTU16.04开始,就开始使用timedatectl/timesyncd服务进行时间同步,而不是常用的ntpdate/ntp。如果安装了chrony,那么timedatectl将会让位于chrony,避免两个同步服务出现竞争,这也同样适用于ntpd。 ntpdate已被timedatect

[转帖]ubuntu 时间同步- systemd-timesyncd配置

https://www.cnblogs.com/zhangzhiwei122/p/15886433.html 修改配置 root@HP:~# vi /etc/systemd/timesyncd.conf[Time]NTP=ntp.ntsc.ac.cn cn.ntp.org.cn ##只设置NTP这行

[转帖]ubuntu 时间同步-安装ntp服务器

原文链接: https://www.idcyunwei.org/post/235.html 姊妹篇:ubuntu 时间同步- systemd-timesyncd配置 在Ubuntu 18.04服务器上安装和配置NTP服务器 下面是安装NTP服务器并进行必要修改以在网络中实现所需时间同步的分步过程。

[转帖]Ubuntu 系统日志文件

https://blog.yelvlab.cn/archives/588/ Ubuntu 系统的日志信息保存路径为: /var/log/,如: auth - 安全验证日志 boot - 启动日志 kern - 内核日志 syslog - 系统日志 wtmp - 与/var/run/utmp 一起记录

[转帖]Ubuntu Server安装图形界面

最早接触到的Linux系统是Ubuntu 10.04,当时在自己的一台Win7笔记本电脑上安装的Win/Ubuntu双系统,Ubuntu简洁的操作界面给我留下了深刻的印象。 后来开始做一些服务器开发,服务都是部署在CentOS系统上,没有图形界面,纯命令操作,这样也降低系统的资源占用。 最近才了解到

[转帖]ubuntu下配置iptables、ufw端口转发

iptables 端口转发(CentOS) 注意:一来一去 在中转服务器操作 iptables -t nat -A PREROUTING -p tcp --dport [端口号] -j DNAT --to-destination [目标IP]iptables -t nat -A POSTROUTIN

[转帖]ubuntu开启sar记录日志

https://www.cnblogs.com/ishmaelwanglin/p/16955227.html 背景 之前一直用CentOS系统,最近换到了ubuntu的,sar日志对分析系统状态和基本性能比较有帮助,发现在ubuntu上默认是不记录sar日志的 安装 apt-get install