CentOS 配置网卡IP地址

mac2025-07-30  2

CentOS 配置网卡IP地址

命令1:

ifconf [eth] [ip_addr] netmask [mask]

例如:

ifconf eth0 192.168.1.2 netmask 255.255.255.0

命令2:

ip addr add/del [ip_addr] /[netmask] dev [eth]

例如:

ip addr add 192.168.1.2/24 dev eth0
最新回复(0)