bugu 发表于 2023-11-4 11:13:48

linux下修改eth0的ip地址

vi /etc/sysconfig/network-scripts/ifcfg-eth0
------------------------------
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.117
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
-------------------------------
service network restart
页: [1]
查看完整版本: linux下修改eth0的ip地址