1、文档链接
- centos7 firewall-cmd 用活firewalld防火墙中的zone:
- Linux 双网卡绑定
- Linux中高级网络配置(链路聚合BOND&TEAM、桥接)(网络冗余)
- DNS:从零搭建公司内网DNS服务器
2、知识点:
1、查看可使用的端口:
sysctl net.ipv4.ip_local_port_rangecat
2、查看mac地址配置文件
cat /etc/sysconfig/network-scripts/ifcfg-eth0
3、ip地址配置文件
/etc/udev/rules.d/70-persistent-net.rules
4、查看网卡的状态
[root@centos ~]# ethtool ens32
Settings for ens32:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
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: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: off (auto)
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Link detected:yes表示有网线插入
如果Link detected:no 的话,尝试用命令ifconfig eth2 up,如果用ethtool查看任然为no的话,才能说明此网卡确实没有网线插入。