/etc/sysconfig/network 设置主机名和网络配置 NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=localhost.localdomain /etc/sysconfig/network-scripts/ifcfg-eth0 针对特定的网卡进行设置 # Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=Ethernet HWADDR=48:5B:39:3C:F0:38(使用ifconfig eth0查看HWADDR地址是否一致,如不一致会导致远程无法连接上) BROADCAST=192.168.1.255 IPADDR=192.168.1.10 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 PEERDNS=yes /etc/resolv.conf 设置DNS search localdomain nameserver 192.168.1.1 /etc/hosts 设置指定的域名解析地址 (责任编辑:IT) |