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.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tìm cấu hình mẫu config router qua đường ADSL

    HI all,
    Cho mình xin cấu hình mấu cấu hình rao-tơ đi inh-tơ-nét qua đường ADSL, có ai biết xin chỉ giúp
    Đa tạ

  • #2
    nona:

    Nona cần xin cấu hình của routers Cisco hay của hãng khác? Nếu là của Cisco, Nona đang dùng model gì?

    Thân,
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

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

    Comment


    • #3
      Re: Tìm cấu hình mẫu config router qua đường ADSL

      Cám ơn anh đã quan tâm, dĩ nhiên là Cisco rổi, loại 2621XM Dual 10/100 E router, ADSL WAN Interface card, 2-port serial WAN
      Cái này xài chung với leased line 128K
      có gì anh giúp em nhe,
      Cám ơn

      Comment


      • #4
        Re: Tìm cấu hình mẫu config router qua đường ADSL

        !
        service timestamps debug uptime
        service timestamps log uptime
        service password-encryption
        no service tcp-small-servers
        no service udp-small-servers
        !
        hostname Cisco2621
        !
        enable password vnpro
        !
        no ip name-server
        !
        ip subnet-zero
        no ip domain-lookup
        no ip routing
        !
        interface FastEthernet 0/0
        description connect to LAN
        ip address 192.168.1.1 255.255.255.0
        bridge-group 1
        !
        interface FastEthernet 0/1
        no description
        no ip address
        shutdown
        !
        interface ATM 0
        description connect to ISP
        ip address negotiated
        !
        atm vc-per-vp 256
        pvc 8/35
        encapsulation aal5snap
        !
        dsl operating-mode auto
        bridge-group 1
        !
        interface Serial 0/0
        no description
        no ip address
        shutdown
        !
        interface Serial 0/1
        no description
        no ip address
        shutdown
        !
        ip route 0.0.0.0 0.0.0.0 ATM 0
        !
        !
        ip classless
        no ip http server
        snmp-server community public RO
        no snmp-server location
        no snmp-server contact
        !
        bridge 1 protocol ieee
        !
        !
        line console 0
        exec-timeout 0 0
        password vnpro
        login
        !
        line vty 0 4
        password vnpro
        login
        !
        end
        vd trên port ADSL sẽ nhận ip động từ ISP
        cấu hình còn tùy theo ISP mà bạn kết nối vào
        dsl operating-mode { auto | ansi-dmt | itu-dmt | splitterless }
        auto Configure the ADSL line after auto-negotiating with the DSLAM located at the Central Office.
        ansi-dmt Configure the ADSL line to train in the ANSI T1.413 Issue 2 mode.
        itu-dmt Configure the ADSL line to train in the G.992.1 mode.
        splitterless Configure the ADSL line to train in the G.Lite mode.
        etsi Configure the ADSL line to train in the ETSI mode.
        tone low The presence of the tone low option in this command tells the WIC-1ADSL-I-DG to use carrier tones 29 through 48. The absence of tone low tells the WIC-1ADSL-I-DG to use carrier tones 33 through 56. The latter tone set is used when the WIC is operating in accordance with Deutsche Telekom specification U-R2.

        mặc định DSL hoạt động là auto

        để kiểm tra lại cấu hình DSL bạn dùng các lệnh:
        show dsl interface atm Show all of the ADSL-specific information for a specified ATM interface.
        show diag wic-slot-num Specify detailed diagnostic options for displaying the memory on an ADSL-WIC and the ADSL line training log.

        Bạn gán IP của leased line thêm vào cấu hình mẫu trên.

        chúc vui,
        Huỳnh Chí Đại

        Comment


        • #5
          Re: Tìm cấu hình mẫu config router qua đường ADSL

          Cám ơn bạn đã giúp mình, mình có thắc mắc là các thông số mà khi cài đặt ADSL thường có như VTI là 35, VCI là 8, rồi encap là pppoe sao mình không thấy trong cấu hình này?
          Ngoài ra lệnh bridge-group 1 là gì nhỉ?
          Cám ơn nhé

          Comment


          • #6
            Hi,

            Chú ý đoạn cấu hình:

            atm vc-per-vp 256
            pvc 8/35
            encapsulation aal5snap
            !

            * Lệnh bridge-group 1 để gán interface f0/0 hoạt động như một bridge. Nếu cấu hình theo chế độ này, Cisco routers của bạn sẽ hoạt động ở bridging-mode.

            Thân,
            Email : vnpro@vnpro.org
            ---------------------------------------------------------------------------------------------------------------
            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


            • #7
              Re: Tìm cấu hình mẫu config router qua đường ADSL

              hi,

              VPI viết tắt của virtual path identifier
              VCI viết tắt của virtual channel identifier
              là các con số nhận dạng kênh nối
              PPPoE viết tắt của Point-to-Point Protocol over Ethernet là giao thức thường dùng của các ISPs ADSL.

              lệnh bridge-group 1 trong cấu hình nona không cần dùng, nếu tìm hiểu thêm nona xem thêm phần STP

              Bạn xem một số lệnh sau dùng cấu hình thêm cho phù hợp với kết nối của bạn:

              Router(config-if)# pvc [name] vpi/vci
              Enters atm-virtual-circuit (interface-atm-vc) configuration mode, and configures a new ATM PVC by assigning a name (optional) and virtual path identifier (VPI)/virtual channel identifier (VCI) numbers.

              The default traffic shaping is UBR; the default encapsulation is AAL5+LLC/SNAP.

              Router(config-if-vc)# protocol ip IP-address
              (Optional) Enables IP connectivity and create a point-to-point IP address for the virtual circuit (VC).

              Router(config-if-vc)# vbr-rt peak-rate average-rate burst
              (Optional) Configures the PVC for real-time variable bit rate (VBR) traffic shaping.

              Peak rate—Peak information rate (PIR)
              Average rate—Average information rate (AIR)
              Burst—Burst size in cells

              Router(config-if-vc)# encapsulation {aal2 | aal5ciscoppp | aal5mux | aal5nlpid | aal5snap}
              (Optional) Configures the ATM adaptation layer (AAL) and encapsulation type.

              aal2—AAL2
              aal5ciscoppp—Cisco PPP over AAL5
              aal5mux—AAL5+MUX
              aal5nlpid—AAL5+NLPID
              aal5snap—AAL5+LLC/SNAP (the default)

              chúc vui,
              Huỳnh Chí Đại

              Comment


              • #8
                Cấu hình trên sẽ không chạy được vì lý do:

                1. Nếu Nona sử dụng protocol PPPoE là tỏi 100%. Mà Mô hình PPPoE là mô hình VNPT đang triển khai cho các thuê bao ADSL. Địa chỉ cấp là động cho tất cả ADSL router của thuê bao. Trong cấu hình trên chẳng thấy chỗ nào có PPPoE cả, không biết làm sao mà đi Internet được !!!

                2. Cho dù không dùng PPPoE hoặc PPPoA đi chăng nữa thì ít nhất cũng phải NAT trên toàn bộ traffic từ interface FE 0/0 ra ATM 0 (tại vì lúc này ATM 0 đang nhận địa chỉ động từ ISP mà ). Nếu không NAT thì làm sao các máy trên LAN ra internet được ???

                Tóm lại : Cấu hình trên có thể hoạt động được nếu bạn có quyền cấu hình luôn cả DSLAM và router uplink phía sau DSLAM. Dĩ nhiên trong trường hợp này không dùng PPP0E hoặc PPPoA mà dùng encapsulation là RFC 1483 Bridging/Routing.

                một đoạn cấu hình PPPoE cho router như sau:

                interface ethernet0
                no shut
                ip address 192.168.1.1 255.255.255.0
                ip nat inside

                !
                interface atm0
                no shut
                no ip address
                dsl operating-mode auto
                !

                interface atm0.1 point-to-point
                no ip address
                no ip directed-broadcast
                no atm ilmi-keepalive
                pvc 8/35
                pppoe-client dial-pool-number 1

                !
                interface dialer0
                ip address negotiated
                ip nat outside
                encapsulation ppp
                dialer pool 1
                ppp chap hostname <username>
                ppp chap password &lt;password>
                ppp pap sent-username <username> password &lt;password>
                !
                ip nat inside source list 1 interface dialer0 overload

                ip classless
                ip route 0.0.0.0 0.0.0.0 interface dialer 1

                access-list 1 permit 192.168.1.0 0.0.0.255
                !
                end

                Comment


                • #9
                  :D
                  rất chính xác nếu xài dịch vụ của VNPT
                  nona cần bổ xung thêm NAT và PPPoE như hhnts đưa ra như ở trên.
                  hhnts có biết với dịch vụ của FPT cấu hình có khác gì nhiều không?
                  Huỳnh Chí Đại

                  Comment


                  • #10
                    Re: Tìm cấu hình mẫu config router qua đường ADSL

                    Minh cung dong ý với hhnts, ít ra cũng phải có dòng ussername và p/w
                    cấu hình này không biết đã chạy chưa nhi? Không biết ADSL của FPT và VNN có cấu hình gì khác không nhỉ?
                    Giả sử nếu thêm đường leased line thì không biết 2 đường này có chạy song song được không nhỉ?
                    bakup load 85 5? trên interface leassed line? Nhưng làm như vậy thì một trong 2 đường sẽ chuyển sang standby, có cách nào cả 2 đường cùng chạy mà không cần phải chia 1 nhóm IP nào đó cho cả 2 đường không nhỉ?

                    Comment


                    • #11
                      Re: Tìm cấu hình mẫu config router qua đường ADSL

                      Originally posted by nona
                      Nhưng làm như vậy thì một trong 2 đường sẽ chuyển sang standby, có cách nào cả 2 đường cùng chạy mà không cần phải chia 1 nhóm IP nào đó cho cả 2 đường không nhỉ?
                      nona:

                      Để một interface không vào trạng thái standby, có thể có các giải pháp sau:

                      1. Dùng dialer profiles thay vì dùng legacy dialer.
                      2. Dùng một dynamic routing protocol. Cách này không phù hợp với scenario vì nó yêu cầu router ở ISP cũng phải chạy dynamic routing protocol của bạn chọn lưa.

                      Thân,
                      Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

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

                      Comment


                      • #12
                        Chip có thể cho e cấu hình của FPT ? Cái đó chính là cấu hình của FPT hủh ? Vậy là dùng Bridge mode ?
                        -------------------------------------------------------
                        Yamaha R6 Rider
                        Tôi là Yuna_admirer.

                        Comment

                        Working...
                        X