Cisco 2501做 pppoe 虛擬撥號實例
路由器是實現(xiàn)內(nèi)網(wǎng)與外網(wǎng)互聯(lián)的重要設(shè)備,下面文章詳細的講述了路由器做PPPOE虛擬撥號的配置實例。
需求最低的IOS是“REMOTE ACCESS SERVER”特性集
c2500-c-l.123-5b.bin
2500系列
要改接口的MTU。不然會有一些問題。
下面的配置是可以用的。
而且用 2501 就可以做了。
我看到以前網(wǎng)上一些人的配置是用26做的。說25不能做。
而且還必須是兩個ethenet 口。其實不用
一個ethernet 口一樣做。
而且用的還很好 :
但是用2505 是不行的。
2505的接口是hub口。不是ethernet 口。
我現(xiàn)在還沒有找到一個合適的ios版本。即支持pppoe client 又支持 hub接口。
REMOTE ACCESS SERVER的特征級,不支持hub接口。
12.2 enterprise版本不支持pppoe client。郁悶了好一段時間。
這個配置同樣使用與17 26等設(shè)備。
大家可以測試一下。
關(guān)于用ADSL做vpn。
我記得以前貼過 :
用25是不行了。
這個feature不支持 ipsec
支持ipsec 的版本不支持 pppoe client
需要用 26 的才可以 :
26有支持兩個feature的ios版本。
nfshanq#sh run
Building configuration...
Current configuration : 1241 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service tcp-small-servers
!
hostname nfshanq
!
boot-start-marker
boot-end-marker
!
!
ip subnet-zero
ip name-server 202.96.134.133
!
!
!
!
! #p#
interface Ethernet0
ip address 192.168.7.2 255.255.255.0
ip mtu 1492
ip nat inside
no ip route-cache
ip tcp adjust-mss 1442
pppoe enable
pppoe-client dial-pool-number 1 dial-on-demand
!
interface Serial0
no ip address
no ip route-cache
shutdown
!
interface Serial1
no ip address
no ip route-cache
shutdown
!
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
dialer idle-timeout 0
dialer-group 1
ppp authentication pap callin
ppp pap sent-username test password 0 test
!
ip nat inside source list 100 interface Dialer1 overload
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1 permanent
!
access-list 100 permit ip 192.168.7.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
transport input all
line vty 0 4
!
!
【編輯推薦】