作家
登录

路由器设置之ADSL、DHCP和PPPOE

作者: 来源: 2012-06-13 08:25:30 阅读 我要评论

网络架构的过程中,有些硬件设置是可以交互使用的。路由器是我们常用到的网络设备,但是我们要怎样去配置它呢?怎样才能实现ADSL上网和PPPOE拨号连接呢?本文给出了详细配置命令。Implement ADSL and DHCP on Cisco 2600 Series Router下面的设置是在设置成功的路由器上导出来的, 使用的是以太口实现拨号和NAT.

!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname externalrp01
!
boot-start-marker
boot-end-marker
!
!
no network-clock-participate slot 1
no network-clock-participate wic 0
no aaa new-model
ip subnet-zero
ip cef
!
!
ip dhcp excluded-address 192.168.2.1 192.168.2.99
!
ip dhcp pool Pool1
network 192.168.2.0 255.255.255.0
dns-server 202.96.128.166
default-router 192.168.2.1
!
ip name-server 202.96.134.133
ip name-server 202.96.128.166
vpdn enable
!
vpdn-group pppoe
request-dialin
protocol pppoe
!
no ftp-server write-enable
!
!
!
!
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
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 callin
ppp pap sent-username ***** password 0 ******
!
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1 permanent
no ip http server
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
line vty 0 4
!
!
!
end

至此路由器上实现ADSL PPPOE拨号连接和DHCP就完成了。
 


  推荐阅读

  解析Cisco路由器DHCP配置问题

对于Cisco路由器DHCP配置的问题,可能有些同志并不是很清楚,而且一般人对计算机不了解的,也不会操作这些,于是,客户要求我们可以让任何电脑接入局域网都可以上网,所以就有了将2600配置DHCP的过程。2600路由器我们>>>详细阅读


本文标题:路由器设置之ADSL、DHCP和PPPOE

地址:http://www.17bianji.com/xieyi/4845.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)