607.麒麟系统网口网络配置文件参考

博文说明:

此博文仅用于(麒麟系统网口网络配置文件参考),请根据实际情况参考,如对此内容有所疑问,请按照博文末尾联系方式与博主沟通确认,谢谢。



说明: 确定一下实际使用的网口名称,然后参考修改网口配置文件:

配置ip地址:

1
2


如何确定哪个网口连上了网线:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ethtool eno0
ethtool eth1
ethtool ens1s2

## 测试网口灯闪烁:
ethtool -p eno0
ethtool -p ens1s0

#-p命令可以使物理网口啥闪烁,用于判断配置文件对应的物理网口位置。

示例参考:

关键词:
Link detected: yes #连上网线了。
Link detected: no #没有连上网线。

[root@localhost ~]# ethtool eno1
Settings for eno1:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
[root@localhost ~]# ethtool eno3
Settings for eno3:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
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
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
[root@localhost ~]#

示例参考:

配置完成后,重启网口服务:

1
2
3
[root@localhost network-scripts]# service network restart
Restarting network (via systemctl): [ OK ]
[root@localhost network-scripts]#

0%