Add-on

คอนฟิค Cisco Router ให้ใช้งาน Lease Line เชื่อมต่อระหว่างสาขา


โจทย์ในการ คอนฟิค Cisco Router ของผม คือ จำลองสาขาขึ้นมา 2 สาขา โดยทั้ง 2 สาขานี้จะเชื่อมต่อกันโดยใช้ Lease Line โดยรายละเอียดของแต่ละสาขาผมแยกดังนี้

 

  • สาขาที่ 1 ใช้ Lan IP เป็น 192.168.1.0/24 , Wan IP เป็น 192.168.254.8/29
  • สาขาที่ 2 ใช้ Lan IP เป็น 192.168.2.0/24 , Wan IP เป็น 192.168.254.14/29

* จากตัวอย่าง เป็นการสมมุติให้เป็นภาพมากที่สุด สำหรับใครที่ต้องการกำหนด IP เป็นช่วงอื่น ก็ได้ครับ สำหรับผมเองในการใช้งานของบริษัทปัจจุบันก็ใช้งาน IP ช่วงนี้อยู่ครับ ^^

 

ตัวอย่าง Network ที่ได้ออกแบบไว้ตามโจทย์

การ config ที่ router สาขาที่ 1

Router>
Router>en
Password:
Router>conf t
Router(config)#hostname Branch-01
Branch-01(config)#int s0/0
Branch-01(config-if)#ip address 192.168.254.8 255.255.255.248
Branch-01(config-if)#no shut
Branch-01(config-if)#exit
Branch-01(config)#int fe0/0
Branch-01(config-if)#ip address 192.168.1.1 255.255.255.0
Branch-01(config-if)#no shut
Branch-01(config-if)#exit
Branch-01(config)#ip route 192.168.2.0 255.255.255.0 s0/0
Branch-01(config)#exit
Branch-01#wr mem

การ config ที่ router สาขาที่ 2

Router>
Router>en
Password:
Router>conf t
Router(config)#hostname Branch-02
Branch-02(config)#int s0/0
Branch-02(config-if)#ip address 192.168.254.14 255.255.255.248
Branch-02(config-if)#no shut
Branch-02(config-if)#exit
Branch-02(config)#int fe0/0
Branch-02(config-if)#ip address 192.168.2.1 255.255.255.0
Branch-02(config-if)#no shut
Branch-02(config-if)#exit
Branch-02(config)#ip route 192.168.1.0 255.255.255.0 s0/0
Branch-02(config)#exit
Branch-02#wr mem

เพิ่มเติม

  • ชื่อ Interface Serial และ Ethernet ที่ใช้งาน อาจจะแตกต่างจากตัวอย่าง ขึ้นอยู่กับรุ่นของ Router ที่ใช้ บางรุ่นอาจจะใหญ่หน่อย Serial อาจจะเป็น s 0/0/0 หรือบางรุ่น Ethernet จะเป็น port gigabit ก็จะเป็น G 0/0/0 เป็นต้นครับ

เท่านี้ครับ คำสั่งเพียงไม่กี่บรรทัดเอง แค่นี้แต่ละสาขาก็สามารถเชื่อมต่อกันได้แล้วล่ะครับ

เครดิตจากเว็บของ BukHUM : IT-Clever.com

Asst. Prof. Banyapon Poolsawas

อาจารย์ประจำสาขาวิชาการออกแบบเชิงโต้ตอบ และการพัฒนาเกม วิทยาลัยครีเอทีฟดีไซน์ & เอ็นเตอร์เทนเมนต์เทคโนโลยี มหาวิทยาลัยธุรกิจบัณฑิตย์ ผู้ก่อตั้ง บริษัท Daydev Co., Ltd, (เดย์เดฟ จำกัด)

Related Articles

Leave a Reply

Back to top button
Game & Mobile Development AR VR XR
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Adblock Detected

เราตรวจพบว่าคุณใช้ Adblock บนบราวเซอร์ของคุณ,กรุณาปิดระบบ Adblock ก่อนเข้าอ่าน Content ของเรานะครับ, ถือว่าช่วยเหลือกัน