mdc启动网卡并设置其ip和子网掩码 ifconfig enp125s0f1 192.168.2.6 netmask 255.255.255.0 up 如果需要开机启动网卡并设置其ip和子网掩码,只需将他加入到/etc/rc.local中即可。