登录站点

用户名

密码

Cisco 3825路由器ADSL拨号配置

热5已有 36 次阅读  2010-12-28 13:44   标签:  思科  路由器  ADSL拨号  PPPoE 
Router#sho run
Building configuration...


Current configuration : 1822 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
!
no aaa new-model
!
dot11 syslog
ip source-route
ip cef
!
!
!
!         
no ip domain lookup
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
vpdn enable  //激活VPDN
!
vpdn-group pppoe  //创建VPDN组,命名为pppoe
 request-dialin  
  protocol pppoe  //协议选择PPPoE
!
!
voice-card 0
!
!
!
!
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
 log config
  hidekeys
! 
!
!
!         
!
!
!
!
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
 media-type rj45
 pppoe enable group global  //在接ADSL猫的接口下激活pppoe
 pppoe-client dial-pool-number 1  //将接口加入到拨号池1
!
interface GigabitEthernet0/1
 ip address 192.168.0.1 255.255.255.252
 ip nat inside  //接内网核心交换机的接口,作为NAT的源接口
 ip virtual-reassembly
 duplex auto
 speed auto
 media-type rj45
!
interface Dialer1  //创建拨号口
 ip address negotiated  //IP地址协商
 ip mtu 1492  //MTU指定为1492
 ip nat outside  //这里需要特别注意,有的同学可能会把NAT的出口配置在连接ADSL猫的物理接口下,那是行不通的~
 ip virtual-reassembly
 encapsulation ppp  //封装PPP
 dialer pool 1  
 dialer idle-timeout 0
 dialer-group 1
 ppp authentication chap callin  //PPP的认证方式chap,这里的callin要尤其注意,callin不加的话会报错,我就在这里卡了2个小时才搞明白。。。
 ppp chap hostname XXXXXXXXXXX //ADSL帐户的用户名
 ppp chap password 0 XXXXXXXX  //ADSL帐户的密码
 ppp pap sent-username 02584550430 password 0 84550430  //其实PAP的这个我觉得可以不写。。。
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer1  //一条默认路由,出口指向拨号口1
ip route 192.168.2.0 255.255.255.0 GigabitEthernet0/1
ip route 192.168.3.0 255.255.255.0 GigabitEthernet0/1
ip route 192.168.4.0 255.255.255.0 GigabitEthernet0/1
ip route 192.168.5.0 255.255.255.0 GigabitEthernet0/1
ip route 192.168.6.0 255.255.255.0 GigabitEthernet0/1
no ip http server
no ip http secure-server
!
!         
ip nat inside source list 1 interface Dialer1 overload  //NAT配置,注意复用参数~
!
access-list 1 permit 192.168.0.0 0.0.255.255
dialer-list 1 protocol ip permit
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
scheduler allocate 20000 1000
end
分享 举报

发表评论 评论 (2 个评论)

  • chenyidong 2010-12-28 13:49
    牛群来了。哈哈
  • niuqun2003 2010-12-28 14:01
    chenyidong: 牛群来了。哈哈
    咳咳。。列队欢迎。。撒花。。鼓掌。。同志们辛苦了。。谢谢。。。
涂鸦板