• 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.

Cân bằng tải dùng 2 đường ADSL theo kiểu active - active

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

  • Cân bằng tải dùng 2 đường ADSL theo kiểu active - active

    Đồ hình:


    Hai router ISP_VDC và ISP_FPT đóng vai trò như là 2 PPPoE Server cung cấp địa chỉ cho PPPoE client (NAT_ROUTER).

    Yêu cầu:
    1. Mạng 192.168.10.0/24 đi net bằng đường của VDC, mạng 192.168.20.0/24 đi net bằng đường của FPT
    2. Khi đường VDC (hoặc FPT) đứt thì chuyển sang đường còn lại nghĩa là 2 đường net hoạt động theo kiểu active – active.
    Với yêu cầu (1) thì mình đã thực hiện được rồi nhưng còn yêu cầu (2) thì vẫn chưa làm được, xin các bro chỉ mình giải pháp thực hiện yêu cầu (2). Cảm ơn rất nhiều. Dưới đây là cấu hình mình đã thực hiện.

    INSIDE#sh run
    Building configuration...
    Current configuration : 917 bytes
    !
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname INSIDE
    !
    boot-start-marker
    boot-end-marker
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    ip cef
    !
    interface Loopback0
    ip address 192.168.10.1 255.255.255.0
    !
    interface Loopback1
    ip address 192.168.20.1 255.255.255.0
    !
    interface FastEthernet0/0
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface Serial0/0
    ip address 192.168.30.1 255.255.255.0
    clock rate 2000000
    !
    interface FastEthernet0/1
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface Serial0/1
    no ip address
    shutdown
    clock rate 2000000
    !
    ip route 0.0.0.0 0.0.0.0 Serial0/0
    !
    !
    ip http server
    no ip http secure-server
    !
    control-plane
    !
    line con 0
    exec-timeout 0 0
    line aux 0
    line vty 0 4
    login
    !
    !
    End

    NAT_ROUTER#sh run
    Building configuration...

    Current configuration : 1891 bytes
    !
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname NAT_ROUTER
    !
    boot-start-marker
    boot-end-marker
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    ip cef
    !
    interface FastEthernet0/0
    no ip address
    speed 100
    full-duplex
    pppoe enable
    pppoe-client dial-pool-number 1
    !
    interface Serial0/0
    ip address 192.168.30.2 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    ip policy route-map net
    clock rate 2000000
    !
    interface FastEthernet0/1
    no ip address
    speed 100
    full-duplex
    pppoe enable
    pppoe-client dial-pool-number 2
    !
    interface Serial0/1
    no ip address
    shutdown
    clock rate 2000000
    !
    interface Dialer1
    mtu 1492
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    dialer pool 1
    ppp pap sent-username cisco password 0 cisco
    !
    interface Dialer2
    mtu 1492
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    dialer pool 2
    ppp pap sent-username cisco password 0 cisco
    !
    ip route 0.0.0.0 0.0.0.0 Dialer2
    ip route 0.0.0.0 0.0.0.0 Dialer1
    ip route 192.168.10.0 255.255.255.0 192.168.30.1
    ip route 192.168.20.0 255.255.255.0 192.168.30.1
    !
    ip http server
    no ip http secure-server
    ip nat inside source route-map nat1 interface Dialer1 overload
    ip nat inside source route-map nat2 interface Dialer2 overload
    !
    access-list 1 permit 192.168.10.0 0.0.0.255
    access-list 2 permit 192.168.20.0 0.0.0.255
    !
    route-map nat2 permit 20
    match interface Dialer2
    set interface Dialer2
    !
    route-map nat1 permit 10
    match interface Dialer1
    set interface Dialer1
    !
    route-map net permit 10
    match ip address 1
    set interface Dialer1
    !
    route-map net permit 20
    match ip address 2
    set interface Dialer2
    !
    control-plane
    !
    line con 0
    line aux 0
    line vty 0 4
    login
    !
    End

    ISP_VDC#sh run
    Building configuration...
    Current configuration : 1037 bytes
    !
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname ISP_VDC
    !
    boot-start-marker
    boot-end-marker
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    ip cef
    !
    vpdn enable
    !
    username cisco password 0 cisco
    !
    bba-group pppoe global
    virtual-template 1
    !
    interface Loopback0
    ip address 1.1.1.1 255.255.255.255
    !
    interface FastEthernet0/0
    ip address 10.0.1.1 255.255.255.0
    speed 100
    full-duplex
    pppoe enable group global
    !
    interface FastEthernet0/1
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface Virtual-Template1
    mtu 1492
    ip unnumbered FastEthernet0/0
    peer default ip address pool pixpool
    ppp authentication pap
    !
    ip local pool pixpool 203.162.0.181 203.162.0.190
    ip route 203.162.0.160 255.255.255.224 FastEthernet0/0
    !
    ip http server
    no ip http secure-server
    !
    control-plane
    !
    line con 0
    exec-timeout 0 0
    line aux 0
    line vty 0 4
    login
    !
    End

    ISP_FPT#sh run
    Building configuration...
    Current configuration : 1032 bytes
    !
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname ISP_FPT
    !
    boot-start-marker
    boot-end-marker
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    ip cef
    !
    vpdn enable
    !
    username cisco password 0 cisco
    !
    bba-group pppoe global
    virtual-template 1
    !
    interface Loopback0
    ip address 1.1.1.1 255.255.255.255
    !
    interface FastEthernet0/0
    ip address 10.0.2.1 255.255.255.0
    speed 100
    full-duplex
    pppoe enable group global
    !
    interface FastEthernet0/1
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface Virtual-Template1
    mtu 1492
    ip unnumbered FastEthernet0/0
    peer default ip address pool pixpool
    ppp authentication pap
    !
    ip local pool pixpool 210.245.0.9 210.245.0.14
    ip route 210.245.0.8 255.255.255.248 FastEthernet0/0
    !
    ip http server
    no ip http secure-server
    !
    control-plane
    !
    line con 0
    exec-timeout 0 0
    line aux 0
    line vty 0 4
    login
    !
    end

  • #2
    bạn dùng thêm tính năng track object. Cấu hình mẫu tham khảo bên dưới.
    ------------------
    Client#sh run
    Building configuration...

    Current configuration : 2211 bytes
    !
    version 12.4
    !
    hostname Client
    !
    !
    no aaa new-model
    !
    ip cef
    !
    no ip domain lookup
    vpdn enable
    !
    username RAS password 0 cisco
    !
    track timer interface 5
    !
    track 1 interface Dialer1 ip routing
    delay down 5 up 10
    !
    track 2 interface Dialer2 ip routing
    delay down 5 up 10
    !
    !
    !
    bba-group pppoe global
    !
    !
    interface FastEthernet0/0
    ip address 192.168.1.254 255.255.255.0
    no ip redirects
    ip nat inside
    ip virtual-reassembly
    no ip route-cache cef
    no ip route-cache
    speed auto
    full-duplex
    !
    !
    interface ATM0/0/0
    mac-address 0005.5e96.2cc0
    no ip address
    no atm ilmi-keepalive
    dsl operating-mode auto
    pvc 8/35
    pppoe-client dial-pool-number 1
    !
    !
    interface ATM0/1/0
    mac-address 0005.5e96.2ca0
    no ip address
    no atm ilmi-keepalive
    dsl operating-mode auto
    pvc 8/35
    pppoe-client dial-pool-number 2
    !
    !
    interface Dialer1
    mtu 1492
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    dialer pool 1
    dialer-group 1
    ppp authentication pap callin
    ppp pap sent-username Client password 0 cisco
    !
    interface Dialer2
    mtu 1492
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    dialer pool 2
    dialer-group 1
    ppp authentication pap callin
    ppp pap sent-username vnpro password 0 vnpro
    !
    ip route 0.0.0.0 0.0.0.0 Dialer1 track 1
    ip route 0.0.0.0 0.0.0.0 Dialer2 track 2
    !
    !
    ip nat inside route-map nat1 interface Dialer1 overload
    ip nat inside route-map nat2 interface Dialer2 overload
    !
    access-list 1 permit 192.168.1.0 0.0.0.255
    access-list 2 permit 192.168.1.0 0.0.0.255
    dialer-list 1 protocol ip permit
    !
    route-map nat2 permit 20
    match interface Dialer2
    set interface Dialer2
    !
    route-map nat1 permit 10
    match interface Dialer1
    set interface Dialer1
    !
    !
    end
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

    Email : dangquangminh@vnpro.org
    https://www.facebook.com/groups/vietprofessional/

    Comment


    • #3
      Chào bạn,

      Bạn cũng có thể tham khảo thêm bài này.
      Phạm Minh Tuấn

      Email : phamminhtuan@vnpro.org
      Yahoo : phamminhtuan_vnpro
      -----------------------------------------------------------------------------------------------
    Trung Tâm Tin Học VnPro
    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
    - 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

    Network channel: http://www.dancisco.com
    Blog: http://www.vnpro.org/blog

    Comment


    • #4
      To dangquangminh: với hướng dẫn của anh em cũng đã làm rồi nhưng nó chỉ backup theo kiểu active - standby thôi chứ chưa được active - active.
      To logmeinvietnam: bài hướng dẫn của bạn mình cũng đã thử trên lab rồi, chạy được nhưng phải biết IP của next hop tức là IP của phía nhà cung cấp dịch vụ (BRAS) thì phải. Muốn biết được IP next hop đó thì làm thế nào? IP đó có thay đổi không? Giả sử không biết IP next hop thì có cách nào khác để giải quyết vấn đề này không?
      Rất mong được mọi người giúp đỡ. Cảm ơn!

      Comment


      • #5
        Originally posted by quangvn1986 View Post
        To dangquangminh: với hướng dẫn của anh em cũng đã làm rồi nhưng nó chỉ backup theo kiểu active - standby thôi chứ chưa được active - active.
        To logmeinvietnam: bài hướng dẫn của bạn mình cũng đã thử trên lab rồi, chạy được nhưng phải biết IP của next hop tức là IP của phía nhà cung cấp dịch vụ (BRAS) thì phải. Muốn biết được IP next hop đó thì làm thế nào? IP đó có thay đổi không? Giả sử không biết IP next hop thì có cách nào khác để giải quyết vấn đề này không?
        Rất mong được mọi người giúp đỡ. Cảm ơn!
        Chào bạn,
        Thường thì BRAS đòi hỏi sự cố định về mặt địa chỉ, vì thế người ta thường dùng loopback.
        Vd:
        interface Virtual-Template1
        ip unnumbered Loopback0
        peer default ip address dhcp-pool dhcp

        Anh có thể thấy rõ điều này bằng cách vào google gõ who ip. Mặc dầu dãy IP mình được cấp là 118.68.0.0 - 118.68.255.255 nhưng gateway cần ra có thể là 118.69.225.125

        C:\>tracert vnpro.org

        Tracing route to vnpro.org [69.89.22.108]
        over a maximum of 30 hops:

        1 <1 ms <1 ms <1 ms 192.168.1.1
        2 39 ms 39 ms 52 ms 118.69.255.125

        Do đó, muốn biết mình sẽ ra gateway nào thì từ PC anh tracert tới vnpro.org chẳng hạn. Hop thứ nhì thường là gateway cần ra.
        Vì bài lab này đòi hỏi cần check ít nhất 1 ISP còn tới được hay không, cho nên cần biết địa chỉ gateway.
        Phạm Minh Tuấn

        Email : phamminhtuan@vnpro.org
        Yahoo : phamminhtuan_vnpro
        -----------------------------------------------------------------------------------------------
        Trung Tâm Tin Học VnPro
        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
        - 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

        Network channel: http://www.dancisco.com
        Blog: http://www.vnpro.org/blog

        Comment


        • #6
          Cảm ơn bạn rất nhiều mình đã làm được rồi.

          Comment


          • #7
            Help me cấu hình ADSL 3 Ip public

            em hiên có 1 line ADSL và dc kèm theo 3 IP public,bây giờ em muốn cấu hình cho cty dùng internet,và 3 IP public kia dùng cho 3 server(web,mail..)
            Các anh hướng dẫn em với,em dùng modem linksys WAG200G.
            Note:
            -có thể thay modem
            -vì em dùng internet của EVN nó có gói ADSL như vậy.

            Comment


            • #8
              Chào bạn,

              Ở đây 3 IP của bạn cùng 1 nhà cung cấp thì không dính dáng gì tới chuyện loadbalance.

              Thường thì modem nào cũng có mục này, bạn vào thử lynksys kiếm port-fowarding hoặc NAT.
              Rồi nhìn (thường là internel, external) gõ tương ứng với 3 server của bạn.
              vd: 192.168.1.1 (mail là internal)-------220.205.111.112(externel, hay IP public).
              Phạm Minh Tuấn

              Email : phamminhtuan@vnpro.org
              Yahoo : phamminhtuan_vnpro
              -----------------------------------------------------------------------------------------------
              Trung Tâm Tin Học VnPro
              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
              - 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

              Network channel: http://www.dancisco.com
              Blog: http://www.vnpro.org/blog

              Comment

              • Working...
                X