PPPOE、DHCP设置实例

网络 网络管理
本文主要分析了PPPOE以及DHCP的相关设置。希望通过文章的介绍,能够让大家对这方面有所了解。

网络设置中,我们可以综合多种协议来完成一项工作。那么怎样才能实现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就完成了。
 

责任编辑:佟健 来源: hi.baidu.com
相关推荐

2010-08-26 15:44:26

DHCP路由器

2010-08-26 21:34:19

2010-09-06 16:07:05

ros pppoe设置

2010-09-07 14:10:26

PPPoE接口

2010-09-16 15:11:58

FreeBSD PPP

2010-09-16 10:14:17

PPPoE Serve

2010-07-06 17:47:44

PPPoE协议

2010-09-16 10:21:47

PPPoE Serve

2010-09-07 16:08:21

PPPoE Serve

2010-09-06 16:53:38

Windows PPP

2010-08-23 10:54:12

DHCP备份Linux DHCP

2010-08-03 13:49:53

路由器配置

2010-09-07 13:44:14

PPPOE服务器

2010-09-06 17:20:59

Linux PPPoE

2010-09-29 14:30:54

路由DHCP设置

2010-09-26 14:46:51

DHCP端口设置

2010-09-07 13:26:09

cisco 1841

2010-09-07 14:42:28

2010-09-07 13:51:07

PPPoE Serve

2010-09-07 15:27:01

点赞
收藏

51CTO技术栈公众号