• 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ấu hình PPPoE cho Router 2911

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

  • Cấu hình PPPoE cho Router 2911

    Chào các bác,

    Hiện bên em mới mua con router 2911 để cấu hình ra internet, mà loay hoay mãi mà em cấu hình vẫn ko đc, em post cái cấu hình em đã làm nhưng ko chạy, sau khi cấu hình xong thì cổng dialer 1 ko nhận IP từ ISP hic. bác nào rảnh coi giúp em với nhé. Em chân thành cảm ơn :D

    Code:
    (Config)#: interface G0/0
    description FTTH VNPT
    no ip address
    ip tcp adjust-mss 1452
    pppoe enable
    pppoe-client dial-pool-number 1
    no shutdown
    exit
    interface dialer 1
    ip address negotiated
    encapsulation ppp
    dialer pool 1
    dialer-group 1
    no cdp enable
    ppp authentication pap chap callin
    ppp pap sent-username vidu123 password vidu123
    ppp chap hostname vidu123
    ppp chap password vidu123
    exit
    ip route 0.0.0.0 0.0.0.0 dialer 1
    access-list 1 permit 192.168.1.0 0.0.0.255
    ip nat inside source list 1 interface Dialer1 overload
    interface g0/1
    ip nat inside
    exit
    interface Dialer1
    ip nat outside

  • #2
    Sample Configuration
    version 12.3
    no parser cache
    no service pad
    service timestamps debug uptime
    service timestamps log uptime
    service password-encryption
    no service dhcp
    !
    hostname Router
    !
    !
    enable password xxxxxxxxxx
    no aaa new-model
    ip subnet-zero
    ip cef
    !
    !!!!! Configure Router as PPPoE Client to the ISP
    vpdn enable
    !
    vpdn-group 1
    request-dialin
    protocol pppoe
    !!!!!
    !
    !
    !
    interface Ethernet0
    description My LAN Interface
    ip address 10.10.10.1 255.255.255.0
    !!!! When NAT/PAT occurs, this interface is the source candidate (inside local)
    ip nat inside
    !!!!
    no ip mroute-cache
    no cdp enable
    !
    interface Ethernet1
    description Physical ADSL Interface (Facing the ISP)
    no ip address
    no ip mroute-cache
    !!!! Ties this interface to the Dialer interface
    pppoe enable
    pppoe-client dial-pool-number 1
    !!!!
    no cdp enable
    !
    interface Serial0
    no ip address
    no ip mroute-cache
    shutdown
    no cdp enable
    !
    interface Serial1
    no ip address
    no ip mroute-cache
    shutdown
    no cdp enable
    !
    interface Dialer1
    description Logical ADSL Interface
    ip address negotiated
    ip mtu 1492
    !!!! When NAT/PAT occurs, this interface is the destination candidate (inside global)
    ip nat outside
    !!!!
    encapsulation ppp
    ip tcp adjust-mss 1452
    no ip mroute-cache
    !!!!! Ties this logical interface to the proper physical interface
    dialer pool 1
    !!!!!
    !!!!! Passing the protocol allowed by the "dialer-list" command
    dialer-group 1
    !!!!!
    no cdp enable
    ppp authentication chap pap callin
    ppp chap hostname [your username, provided by ISP]
    ppp chap password 0 [your username password, given by ISP]
    ppp pap sent-username [the username] password 0 [the password]
    !!!! Default Gateway to the ISP
    ppp ipcp route default
    !
    ppp ipcp dns request accept
    ppp ipcp address accept
    !
    !!!! PAT subnets allowed by the ACL 10
    ip nat inside source list 10 interface Dialer1 overload
    !!!!
    no ip http server
    ip classless
    !!!!
    !
    !
    !!!! ACL 10 determines which subnet to be PATed
    access-list 10 permit 10.10.10.0 0.0.0.255
    !!!!
    !!!! Determine which protocol to pass through
    dialer-list 1 protocol ip permit
    !!!!
    no cdp run
    !
    !
    !
    line con 0
    exec-timeout 120 0
    stopbits 1
    line vty 0 4
    exec-timeout 0 0
    login local
    length 0
    !
    scheduler max-task-time 5000
    end
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

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

    Comment

    Working...
    X