/etc/hosts/--本地DNS--hostsname和ip綁定
/etc/networks/ ----hostsname
/etc/resolv.conf/ ---DNS
/etc/sysconfig/network-scripts /ifcfg-eth0/ ---eth (网卡)
1.setup 设置网络 (set network)
-->两个 1.DNSconfig-->mod(修改 /etc/resolv.conf/ ---DNS)
2. 设备config-->mod(修改 /etc/sysconfig/network-scripts /ifcfg-eth0/ )
2.ifup etho 或 ifconfig eth0 up 激活网卡 network
3.GUI(界面) 设置网络
4.ifconfig 查看网卡的属性
5.source /etc/hosts/ 讓設置立即生效
6.重啓網卡 service network restart
7.關閉防火墻
service iptables stop
驗證: service iptables status
8.關閉防火墻的自動運行
執行命令: chkconfig iptables off
驗證: chkconfig --list |grep iptables
9.重啟系統: reboot -h now
/etc/networks/ ----hostsname
/etc/resolv.conf/ ---DNS
/etc/sysconfig/network-scripts /ifcfg-eth0/ ---eth (网卡)
1.setup 设置网络 (set network)
-->两个 1.DNSconfig-->mod(修改 /etc/resolv.conf/ ---DNS)
2. 设备config-->mod(修改 /etc/sysconfig/network-scripts /ifcfg-eth0/ )
2.ifup etho 或 ifconfig eth0 up 激活网卡 network
3.GUI(界面) 设置网络
4.ifconfig 查看网卡的属性
5.source /etc/hosts/ 讓設置立即生效
6.重啓網卡 service network restart
7.關閉防火墻
service iptables stop
驗證: service iptables status
8.關閉防火墻的自動運行
執行命令: chkconfig iptables off
驗證: chkconfig --list |grep iptables
9.重啟系統: reboot -h now