在Cisco1700系列上实现PPPOE+NAT
- 格式:doc
- 大小:31.00 KB
- 文档页数:7
硬件要求,最低cisco1720系列,8M flash 32M Memory 以及WIC-1ENET模块和普通ADSL猫就可实现拨号上网。
IOS要求12.2-4 XL5
配置如下:
ip subnet-zero
ip name-server 202.106.196.115
!
vpdn enable <BR>!
vpdn-group PPP oE
request-dialin
protocol pppoe
!
interface FastEthernet0
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Ethernet0
no ip address
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
mtu 1492
ip tcp adjust-mss 1452
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 pap sent-username xxxxxxx password xxxx
ppp chap hostname xxxxxx
ppp chap password xxxx
!
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1 permanent
!
access-list 1 permit 192.168.1.0 0.0.0.255
dialer-list 1 protocol ip permit
!
end
事例2
Router#sh run
Building configuration...
Current configuration : 1019 bytes
!
version 12.2
service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption
!
hostname Router
!
enable password cisco
!
ip subnet-zero
!
!
ip name-server 61.134.*.*
ip name-server 61.134.*.*
!
vpdn enable
!
vpdn-group PPPoE
request-dialin
protocol pppoe
!
!
!
!
!
!
interface Ethernet0
no ip address
half-duplex
pppoe enable
pppoe-client dial-pool-number 1
!
interface FastEthernet0
ip address 192.168.1.1 255.255.255.0
ip nat inside
speed auto
!
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
ip pim bidir-enable
!
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
事例3。