Linux网络环境配置 (redhat)

(一)用root身份登录,运行setup命令进入到text mode setup utility 对网络进行配置

Linux网络环境配置 (redhat)

Linux网络环境配置 (redhat)

配置完没有立即生效需要输入命令重启网卡 :/etc/rc.d/init.d/network restart



(二)ifconfig eth0(不同设备标识名可能不一样) xxx.xxx.xxx.xxx 设置IP

ifocnfig eth0 netmask xxx.xxx.xxx.xxx 设置子网掩码

Linux网络环境配置 (redhat)

设置立即生效/但是重启就恢复


(三)修改/etc/sysconfig/network-sctipts/ifcfg-eth0

Linux网络环境配置 (redhat)

/etc/rc.d/init.d/network restart 重启网卡一直生效