实用的Cisco ADSL配置

Cisco router接ADSL 
一.WIC-ADSL 卡接线路
vpdn enable
no vpdn logging
!
vpdn-group pppoe
request-dialin
protocol pppoe
!
inter f0/0
ip add 192.168.0.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1450

!
inter ATM0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
hold-queue 224 in

interface ATM0.1 POINT-TO-POINT
pvc 8/35    此处的pvc值8/35要根据具体情况而定,咨询电信
pppoe-client dial-pool-number 1
!
inter dialer1
ip address negotiated
ip nat outside
encap ppp
dialer pool 1
ppp authen pap callin
ppp pap sent xxxx pass xxxx  用户名密码
!
ip nat inside source list 1 interface dialer1 overload
ip calssess
ip route 0.0.0.0 0.0.0.0 dialer1
no ip http server
!
access-list 1 permit 192.168.0.0 0.0.0.255


二.或者利用另外一个以太网口 接到 ADSL MODEM再接线路

version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
enable secret 5 $1$a4I1$lycyysjHcanLaEvv3iM581
!
ip subnet-zero
ip name-server 202.106.0.20
ip name-server 202.106.196.115
!
vpdn enable
!
vpdn-group 1
!
vpdn-group pppoe
request-dialin
  protocol pppoe
!        
!
!
!
interface Ethernet0/0
description PPPOE OUTSIDE
no ip address
full-duplex
pppoe enable
pppoe-client dial-pool-number 1
!
interface Serial0/0
no ip address
!
interface Ethernet0/1
description INSIDE
ip address 192.168.3.1 255.255.255.0
ip nat inside
full-duplex
!
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication pap chap callin
ppp chap hostname B22873468
ppp chap password 7 101B5D4C5D4646
ppp pap sent-username B22873468 password 7 101B5D4C5D4646
!
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
ip pim bidir-enable
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
end

你可能感兴趣的:(职场,Cisco,休闲,adsl)