Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Cấu hình quay số PPPoE trên Router Cisco

Mô hình:

 
IP tĩnh ISP cấp: 210.86.237.85 (IP độ ng nếu không đăng ký mua IP tĩnh)
Cổng F0/1: kết nố i Internet
Cổng F0/0: kết nố i LAN – IP: 10.10.10.1/24
IP LAN: 10.10.10.101 – 250/24
Web Server: 10.10.10.100/24

Các bướ c cấ u hình PPPoE trên Router Cisco như sau:

B1: Chọ n Interface kết nố i PPPoE


interface FastEthernet0/1
no ip address
pppoe enable : Cho phép PPPoE trên interface
pppoe-client dial-pool-number 1 : Gắn interface dialer tạo ở B2 vào F0/1
no shutdown : Cho phép interface hoạt động

B2: Tạ o interface dialer


interface Dialer0 
ip address negotiated : Lấy IP động từ BRAS
ip mtu 1492 : Set mtu bằng 1492
ip nat outside : Chọn làm interface NAT ra bên ngoài
encapsulation ppp : Đóng gói PPP
dialer pool 1 : Tạo dialer pool #1 trùng với interface dialer gán B1
ppp authentication pap callin : Chọn kiểu chứng thực PAP/CHAP
ppp pap sent-username thuebao_ftth password 0 megavnn1 : Quay số kết nối đến ISP
ppp ipcp dns request : Lấy DNS server từ BRAS
no shutdown : Cho phép interface hoạt động

B3: Tạ o default route ra internet


ip route 0.0.0.0 0.0.0.0 Dialer0

B4: Nat overload trên cổ ng Dialer 0 để mạ ng LAN ra internet


ip nat inside source list 100 interface Dialer0 overload
Chi tiết file cấ u hình mớ i mô hình trên đượ c thể hiện như sau:
Router#show run
Building configuration...
Current configuration : 1703 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 warnings
!
no aaa new-model
!
resource policy
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
ip cef
!
ip domain name yourdomain.com
!
username admin privilege 15 secret 5 $1$8Q0U$oLL2B6EzKDF7wXvfgxxRz1
!
interface FastEthernet0/0
description $KET NOI MANG LAN$
ip address 10.10.10.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
description $KET NOI DEN ISP$
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer0
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
dialer pool 1
ppp authentication pap callin 
ppp pap sent-username #username password 0 #password
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
!
ip http server
ip http access-class 23
ip http authentication local
ip http timeout-policy idle 60 life 86400 requests 10000
ip nat inside source list 100 interface Dialer0 overload
ip nat inside source static tcp 10.10.10.100 80 210.86.237.85 80

access-list 23 permit 10.10.10.0 0.0.0.7
access-list 100 permit ip 10.10.10.0 0.0.0.255 any
!
control-plane
!
banner motd ^CWelcome To THEGIOIMANG.VN^C
!
line con 0
exec-timeout 0 0
logging synchronous
login local
line aux 0
line vty 0 4
access-class 23 in
privilege level 15
password 7 0802616D222D273F51
login
transport input telnet
line vty 5 15
access-class 23 in
privilege level 15
password 7 05282B2C0A786C215A
login 
transport input telnet
!
End

You might also like