แสดงบทความที่มีป้ายกำกับ Server แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Server แสดงบทความทั้งหมด

วันเสาร์ที่ 19 เมษายน พ.ศ. 2557

การทำ nat เพื่อแชร์เน็ตให้กับเน็ตเวิร์กภายใน (centos 6)


เพื่อให้เข้าใจง่ายจะ อธิบายเน็ตเวิร์กตัวอย่างขึ้นมา



1.เครื่องหลัก (frontEnd) เป็นเครื่องที่สามารถติดต่อได้ทั้งเน็ตเวิร์กภายใน-นอก ซึ่งจะมีเน็ตเวิร์กการ์ดอยู่ 2 ใบ
   - ใบแรก  eth0 : ipaddress :10.2.80.253/8   ใช้สำหรับติดต่อกับเน็ตเวิร์กภายนอก(ไว้ออกเน็ต)
   - ใบสอง  eth1 : ipaddress : 192.168.10.1/24 ใช้สำหรับติดต่อกับเน็ตเวิร์กภายใน
2.เครื่องลูก  (client)  เป็นเครื่องที่เราต้องการใช้อินเตอร์เน็ตผ่านเครื่อง frontEnd
   - คอนฟิกให้อยู่ในเน็ตเวิร์ก   192.168.10.0/24 ซึ่งเป็นวงเดียวกับการ์ด eth1
   - ให้ชี้ gateway มาที่  192.168.10.1 ซึ่งก็คือ eth0

วันพุธที่ 11 ธันวาคม พ.ศ. 2556

“failed to fetch” error เมื่อ apt-get update


มีบ้างครั้งเมื่อเรา apt-get update แล้วมีการ error ที่แจ้งว่า  “failed to fetch”หรือเหมือนอย่างด้านล่าง
=====================================================
Err http://security.ubuntu.com precise-security Release.gpg
  Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.190 80]
Reading package lists... Done
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise/InRelease  

W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease  

W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease  

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease  

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/InRelease  

W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg      Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]

W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]

W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg  Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg  Unable to connect to extras.ubuntu.com:http:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.190 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
==========================================================