一、管理网口不可以用于网络通讯
二、LOM网卡只能与网络设备的千兆口以上连接,不兼容百兆口。
配置
方法一
# nmtui
方法二
# cd /etc/sysconfig/network-scripts/
# ls
ifcfg-en01 ifdown-ib ifdown-post ifdown-Team ifup-aliases ifup-ippp ifup-plusb ifup-sit ifup-wireless
ifdown ifdown-ippp ifdown-ppp ifdown-TeamPort ifup-bnep ifup-ipv6 ifup-post ifup-Team init.ipv6-global
ifdown-bnep ifdown-ipv6 ifdown-routes ifdown-tunnel ifup-eth ifup-isdn ifup-ppp ifup-TeamPort network-functions
ifdown-eth ifdown-isdn ifdown-sit ifup ifup-ib ifup-plip ifup-routes ifup-tunnel network-functions-ipv6
# vim ifcfg-en01
HWADDR=38:68:DD:04:64:18
TYPE=Ethernet
BOOTPROTO=static
DNS1=61.139.2.69
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=en01
UUID=133acc23-709a-4c48-bebb-d843d3cccbdc
ONBOOT=yes
IPADDR=192.168.1.241
PREFIX=24
GATEWAY=192.168.1.1
~
~
~
~
~
# :wq!
重启生效
# systemctl restart network
推荐使用第二种方法,项解释如下:
HWADDR=38:68:DD:04:64:18 网卡的MAC地址,必须要指明
TYPE=Ethernet 类型,以太网
BOOTPROTO=static static:静态IP dhcp:动态IP none:无(不指定)
DNS1=61.139.2.69
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes 启用ipv4
IPV6INIT=no 禁用ipv6
NAME=en01 连接名
UUID=133acc23-709a-4c48-bebb-d843d3cccbdc
ONBOOT=yes 指明在系统启动时是否激活网卡,只有在激活状态的网卡才能去连接网络,进行网络通讯
IPADDR=192.168.1.241
PREFIX=24 子网掩码
GATEWAY=192.168.1.1