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 ens32Settings for ens32:Supported ports: [ TP ]Supported link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullSupported pause frame use: NoSupports auto-negotiation: YesSupported FEC modes: Not reportedAdvertised link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullAdvertised pause frame use: NoAdvertised auto-negotiation: YesAdvertised FEC modes: Not reportedSpeed: 1000Mb/sDuplex: FullPort: Twisted PairPHYAD: 0Transceiver: internalAuto-negotiation: onMDI-X: off (auto)Supports Wake-on: dWake-on: dCurrent message level: 0x00000007 (7)drv probe linkLink detected: yes
Link detected:yes表示有网线插入
如果Link detected:no 的话,尝试用命令ifconfig eth2 up,如果用ethtool查看任然为no的话,才能说明此网卡确实没有网线插入。
