[root@svn ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 //设备名称
BOOTPROTO=static /指定为静态ip还是dhcp获取
IPADDR=172.17.1.8 //ip
NETMASK=255.255.255.0 //掩码
GATEWAY=172.17.1.1 //网关
HWADDR=00:F1:F3:0F:5D:50 //mac地址
ONBOOT=yes //是否启用
还有好多,不列举
[root@svn ~]# vi /etc/resolv.conf //dns配置
nameserver 8.8.8.8
[root@svn ~]# service iptables stop && chkconfig iptables off //关闭防火墙并且关闭自启动
[root@svn ~]# service sshd start //启动ssh远程
ifconfig eth0 IP地址 netmask 掩码
vi /etc/resolv.conf
vim /etc/sysconfig/network
vim /etc/sysconfig/network
vim /etc/sysconfig/network-script/ifcfg-eth0
viim /etc/resolv.conf