Arnut's Blogs
 


:
Arnut's Blog
 
| Home | My Profile | My friend |Research | เรียนต่อ Ph.D. | Sitemap | Contact Us |
คุณเข้าเป็นคนที่ นับตั้งแต่ : 7/3/05
| BACK | Install RedHat9 | File System | | Linux Command | IP Config | DNS Server | Web Server | Proxy Server(Squid) | DHCP Server | Mail Server(sendmail) | Web-based mail | PHP & MySQL | PERL / CGI | Shell Script | File Server | FTP Server | SSH Server | Crontab | PPP Server | Webmin | squidGuard | MRTG | RHCT/RHCE |
Linux : IP Config
 
การปรับแต่ง TCP/IP
1. ไฟล์ hosts
# vi  /etc/hosts
127.0.0.1   localhost.localdomain    localhost
192.168.10.1   www.company1.com   www
 
2. ไฟล์ host.conf
# vi  /etc/host.conf
order host,bind
multi  on                         เพิ่มเข้าไปเอง
 
3. ไฟล์ resolv.conf
# vi  /etc/resolv.conf
search  company1.com
namserver 202.44.144.33          ใส่ DNS ของศูนย์บริการที่ใช้งานอยู่
namserver 202.44.144.34
 
4. ไฟล์ network
# vi  /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=www.company1.com    
GATEWAY=192.168.10.1    หมายเลข Gateway
 
5. ไฟล์ ifcfg-eth0
# vi   /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.10.255
IPADDR=192.168.10.1     หมายเลขไอพีแอดเดรส
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes
 
หลังจากปรับเสร็จหมดแล้วให้พิมพ์คำสั่งตรวจดังนี้
# service  network  restart     รีสต๊าท LAN Card
# service network stop           ปิดการใช้งาน LAN Card
# service network start           เปิดการใช้งาน LAN Card
 
 
 
คำสั่งอื่นอื่นที่เกี่ยวข้อง
# ifconfig   ตรวจสอบ LAN Card
# route    ดูตาราง Routing table
# ifdown  eth0   ปิดการใช้งาน LAN Card
# ifup eth0    เปิดการใช้งาน LAN Card

ping (Package Internet Gopher) ใช้สำหรับทดสอบการเชื่อมต่อเครืองคอมพิวเตอร์ปลายทางว่าเปิดอยู่หรือไม่
# ping 192.168.10.1 < ทดสอบ ip address
# ping www     < ทดสอบ hostname
# ping www.company1.com     < ทดสอบโดเมนเนม
# ping www.yahoo.com   < ทดสอบโดเมนภายนอก
 
การเพิ่ม IP Address บนเครื่อง (LAN Card ใบเดียวมีหลาย IP)
# ifconfig eth0 192.168.10.2  netmask 255.255.255.0  up
# ifconfig    ดูผล

การตรวจสอบหมายเลข MAC Address
# ip link show

| Home | My Profile | My friend |Research | เรียนต่อ Ph.D. | Sitemap | Contact Us |
gotoKnow.org Blognone
แนะนำเว็บเพจนี้ให้เพื่อนคุณ
บทความและข้อมูลในเว็บนี้สงวนลิขสิทธิ์โดย อ.อาณัติ รัตนถิรกุล
Copyright© 2003-2008 by Arnut.com All right reserved.

Contact :
   
Arnut's Blog
สำหรับท่านที่ต้องการแลกลิงค์ให้ส่งไฟล์ภาพขนาด 88x31 pixel
พร้อม url เว็บไซต์ท่านมาที่ arnut@cmsthailand.com