คอนฟิค 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 ที่ได้ออกแบบไว้ตามโจทย์

ตัวอย่าง 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 เป็นต้นครับ

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

Popularity: 11% [?]

Related Posts:

  1. การคอนฟิค Router Cisco ให้ใช้ DHCP
  2. Router : เร้าเตอร์
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

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

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Get Adobe Flash playerPlugin by wpburn.com wordpress themes