• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

[Help]OSPF Unequal Cost Path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Help]OSPF Unequal Cost Path

    Chào mọi người, hôm rồi em tham khảo trên INE có bài toán về load balancing với OSPF nên có topology tự dựng trên GNS thế này
    Click image for larger version

Name:	topo.jpg
Views:	1
Size:	48.5 KB
ID:	208872
    Nguồn bài viết trên INE thì là đây :http://blog.ine.com/2010/05/14/traff...ing-challenge/
    Nhưng mà em chưa biết cách tạo tunnel như thế nào. Hiện tại em thử tạo 2 tunnel giữa R5 - R1 (tunnel 1 & tunnel 2) với cấu hình như sau
    Code:
    #Trên R1
    int tunnel 1
    ip add 10.0.151.1 255.255.255.0
    tunnel source 10.0.0.1 (ip fa0/0 trên R1->R5)
    tunnel destination 10.0.0.5 (ip fa0/0 trên R5->R1)
    !
    int tunnel 2
    ip add 10.0.152.1 255.255.255.0
    tunnel source 10.0.0.1
    tunnel destination 10.0.0.5
    !
    router ospf 1
    network 1.1.1.1 0.0.0.255 area 1
    network 10.0.151.0 0.0.0.255 area 1
    network 10.0.152.0 0.0.0.255 area 1
    #Trên R2
    int tunnel 1
    ip add 10.0.151.5 255.255.255.0
    tunnel source 10.0.0.5 (ip fa0/0 trên R5->R1)
    tunnel destination 10.0.0.1 (ip fa0/0 trên R1->R5)
    !
    int tunnel 2
    ip add 10.0.152.5 255.255.255.0
    tunnel source 10.0.0.5
    tunnel destination 10.0.0.1
    !
    router ospf 1
    network 5.5.5.5 0.0.0.255 area 1
    network 10.0.151.0 0.0.0.255 area 1
    network 10.0.152.0 0.0.0.255 area 1
    Thế nhưng lại có vấn đề là mạng chỉ nhận và quảng bá tunnel nhập sau là tunnel 2, còn tunnel 1 không chạy.
    Debug lên thì : OSPF: Rcv pkt from 10.0.151.1, Tunnel2, area 0.0.0.1 : src not on the same network.
    Các bác giúp em phát @@. Chắc tại em chưa biết cấu hình tunnel thế nào, hay là tại GNS không hỗ trợ multipoint :|

  • #2
    Chào bạn,

    Nếu bạn không chắc về công nghệ Tunnel, bạn có thể tham khảo tại liên kết sau đây:

    This article covers the configuration of Cisco GRE Tunnels, unprotected & IPSec protected. GRE Routing between networks, GRE over IPSec and verification commands are included to ensure the GRE IPSec tunnel is operating. Diagrams, commands, mtu, transport modes, isakmp, ipsec and more are analysed in great depth.


    Cám ơn bạn.
    Bùi Quốc Kỳ
    Email: buiquocky@vnpro.org
    Yahoo: buiquocky_vnpro
    -------------------------------------------------------------------------------------------
Trung Tâm Tin Học VnPro
Địa chỉ: 149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
Tel: (08) 35124257 (5 lines)
Fax: (08) 35124314

Home page: http://www.vnpro.vn
Support Forum: http://www.vnpro.org
Network channel: http://www.dancisco.com
  • Chuyên đào tạo quản trị mạng và hạ tầng Internet
  • Phát hành sách chuyên môn
  • Tư vấn và tuyển dụng nhân sự IT
  • Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

Blog: http://www.vnpro.org/blog
Wifi forum: http://www.wifipro.org

Comment


  • #3
    à em fix được rầu :)).
    Tunnel không thể để cùng source với cùng destination được nếu không lúc gửi hello packet multicast nó sẽ lỗi :D
    Tạo 2 tuyến static route trên 2 con R1,R5 trỏ đến 2 cổng còn lại của nó, rồi tạo 1 tunnel giữa 2 cổng đấy :))
    Code:
    #Trên R1
    ip route 10.0.25.5 255.255.255.255 fa0/0
    !
    int tunnel 1
    ip add 10.0.151.1 255.255.255.0
    tunnel source 10.0.15.1
    tunnel destination 10.0.15.5
    !
    int tunnel 2
    ip add 10.0.152.1 255.255.255.0
    tunnel source 10.0.13.1
    tunnel destination 10.0.25.5
    !
    router ospf 1
    network 1.1.1.1 0.0.0.255 area 1
    network 10.0.151.0 0.0.0.255 area 1
    network 10.0.152.0 0.0.0.255 area 1
    #Trên R2
    ip route 10.0.13.1 255.255.255.255 fa0/0
    !
    int tunnel 1
    ip add 10.0.151.5 255.255.255.0
    tunnel source 10.0.15.5 
    tunnel destination 10.0.15.1 
    !
    int tunnel 2
    ip add 10.0.152.5 255.255.255.0
    tunnel source 10.0.25.5
    tunnel destination 10.0.13.1
    !
    router ospf 1
    network 5.5.5.5 0.0.0.255 area 1
    network 10.0.151.0 0.0.0.255 area 1
    network 10.0.152.0 0.0.0.255 area 1
    Cảm ơn cả nhà :D !!!
    Last edited by silverhand1990; 31-10-2013, 05:23 PM.

    Comment

    • Working...
      X