การกำหนด IP address และ host name
ขั้นตอนการแก้ไข IP และ Host name
/etc/hosts
127.0.0.1 localhost.localdomain localhost
202.29.13.25 Natalie Natalie.thaicyberu.go.th icecast
/etc/sysconfig/network
NETWORKING = yes
HOSTNAME = Natalie
GATEWAY = 202.29.13.1
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=202.29.13.1
IPADDR=202.29.13.25
NETMASK=255.255.255.0
NETWORK=202.29.13.0
ONBOOT=yes
TYPE=Ethernet
/etc/resolv.conf
nameserver 208.67.222.222 // OpenDNS-1 //
nameserver 208.67.220.220 // OpenDNS-2 //
nameserver 8.8.8.8 // Google DNS -1 //
nameserver 8.8.4.4 // GoogleDNS-2 //
สามารถใช้คำสั่ง setup แล้วเลือก Network Configuration เป็นอีกวิธีหนึ่ง เพื่อเข้าแก้ IP Address โดยสามารถเข้าไปแก้ไขแฟ้มต่าง ๆ ให้อัตโนมัติ เสร็จแล้วใช้คำสั่ง #service network restart
ไม่มีความคิดเห็น:
แสดงความคิดเห็น