วันพฤหัสบดีที่ 8 มกราคม พ.ศ. 2552

PPPoE กับ PPPoA ต่างกันยังไง

เวลาจะคนใ้ช้เนตตามบ้านทั่วไปมันจะมีเร้าเตอร์ใ่ช่ไหม? ทีนี้ในเร้าเตอร์ ADSL อ่ะจะต้องเซตค่าสำคัญๆก็จะมี
user,password ที่ใช้ในการติดต่ออินเตอร์เนต แล้วก็ ค่า vpi,vci,รวมถึง pppoe,pppoa ด้วย ขึ้นอยู่กับ ผู้ให้บริการ
ทีนี้ก็เลยสงสัยว่าไอ้ PPPoE กับ PPPoA ต่างกันยังไง มาดูกัน



PPPoE กะ PPPoA ต่างกันงี้นะคับ

PPP น่ะ เอาง่ายๆเลยก็คือ มันเป็น protocol ที่ใช้ติดต่อกันในระดับ layer 2 ( ในระดับของ frame) นะครับ
(ยังไม่ถึงในระดับ ip layer3) ส่วน PPPoE น่ะ เป็นการทำ encapsulation ห่อหุ้ม frame โดยใช้โปรโตคอล
PPP (point to point protocol) วิ่งผ่านไปใน ระบบ Ethernet ซึ่งมีมาตราฐานของ frame คนละแบบนะครับ
การที่เราต้องใช้ PPPoE นั่นก็เนื่องจากว่า core network ของ network service provider เขาใช้เป็น Ethernet
technology อยู่คับ เราจึงต้องเซ็ตให้โปรโคคอล PPP วิ่งผ่านไปบน Ethernet network ได้ (อย่างพวก Gigabit
Ethernet ring , Metronet น่ะคับ ) ส่วน PPPoA นั้น เป็นการห่อหุ้ม encapsulation frame แล้ว
convert ให้วิ่งไปในรูปแบบของ cell ผ่านไปบนเครือข่าย ATM network อ่ะคับ การที่เราเซ็ตเป็น PPPoA ก็เนื่องจาก
core network ของ network service provider ที่ให้บริการอยู่ใช้ ATM เป็น transmission ในการสื่อสารข้อมูล
เราจึงจำเป็นต้องให้ PPP frame เนี่ยวิ่งไปบน ATM cell ได้อ่ะคับ เลยต้องใช้ PPPoA

วันอังคารที่ 6 มกราคม พ.ศ. 2552

config default interface

เวลาที่เร้าเตอร์มีการเซตค่าไว้แล้วแต่เราขี้เกียจไปลบค่า่ต่างๆใน interface นั้นๆ โดยใช้คำสั่ง no
มันหลายบรรทัดขี้เกียจพิมพ์

ดูตัวอย่างกันเลย

Router#sh run int s0/0
Building configuration...

Current configuration : 178 bytes
!
interface Serial0/0
description "TEST">>>>>>>>>>>>>
ip address 2.2.2.2 255.255.255.252 secondary
ip address 1.1.1.1 255.255.255.0
load-interval 30
clock rate 2000000
end


ข้างบนเป็นคำสั่งที่ดู config ใน s0/0 ว่ามีค่าอะไรไว้มั่ง ทีนี้เราต้องลบมันออกโดยใช้คำสั่ง

conf t
int s0/0
no description "TEST">>>>>>>>>>>>>
no ip address 2.2.2.2 255.255.255.252 secondary
no ip address 1.1.1.1 255.255.255.0
no load-interval 30
no clock rate 2000000


จากนั้นก็มาดูผลงานอีกที

Router#sh run int s0/0
Building configuration...

Current configuration : 42 bytes
!
interface Serial0/0
no ip address
end



ทีนี้มันมีัคำสั่งที่ทำให้เป็นค่า default ให้เลย เหมือนกับค่าที่ config มาตอนแรกโดยใช้คำสั่ง

default interface


มาดูตัวอย่างกัน
อันนี้โชวร์เริ่มแรก

Router#sh run int s0/0
Building configuration...

Current configuration : 178 bytes
!
interface Serial0/0
description "TEST">>>>>>>>>>>>>
ip address 2.2.2.2 255.255.255.252 secondary
ip address 1.1.1.1 255.255.255.0
load-interval 30
clock rate 2000000
end


ข้างล่างเป็นคำสั่ง

Router(config)#default interface serial 0/0
Building configuration...

Interface Serial0/0 set to default configuration



จากนั้นมาดูผลการใช้คำสั่งกัน


Router#sh run int s0/0
Building configuration...

Current configuration : 42 bytes
!
interface Serial0/0
no ip address
end


จบจ่ะ