Ta có mô hình bài Lab ADSL như sau:
[IMG]

[/IMG]
Ta có file cấu hình cho Router ADSL như bên dưới
ADSL#show run
Building configuration...
Current configuration : 1085 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname adsl2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip dhcp pool adsl2
import all
network 192.168.100.0 255.255.255.0
default-router 192.168.100.254
!
ip audit po max-events 100
!
!
!
!
!
interface ATM0/0
no ip address
no atm ilmi-keepalive
dsl operating-mode auto
pvc 8/35
pppoe-client dial-pool-number 100
!
!
interface Ethernet0/0
ip address 192.168.100.254 255.255.255.0
ip nat inside
half-duplex
!
interface Dialer100
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 100
ppp authentication chap callin
ppp chap hostname cisco
ppp chap password 0 cisco
ppp ipcp dns request accept
!
ip nat inside source list 1 interface Dialer100 overload
ip http server
no ip http secure-server
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer100
!
!
access-list 1 permit 192.168.100.0 0.0.0.255
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
ADSL#
File cấu hình cho BRAS như bên dưới
BRAS#show running-config
Building configuration...
Current configuration : 1072 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname BRAS
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
vpdn enable
!
vpdn-group test
accept-dialin
protocol pppoe
virtual-template 100
!
!
!
!
username cisco password 0 cisco
!
!
!
interface Loopback0
ip address 172.16.0.254 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/0
no ip address
half-duplex
pppoe enable
!
interface Serial0/0
ip address 172.16.1.1 255.255.255.252
clock rate 64000
!
interface Virtual-Template100
ip unnumbered Loopback0
peer default ip address pool ADSL
ppp authentication chap
ppp ipcp dns 203.162.4.1 203.162.4.191
!
router ospf 1
log-adjacency-changes
network 172.16.0.0 0.0.255.255 area 0
!
ip local pool ADSL 172.16.0.1 172.16.0.200
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
privilege level 15
no login
!
!
end
BRAS#