hostname pooh
ip host rund 172.17.247.195
!
ip subnet-zero
no ip domain-lookup
!
vpdn enable
no vpdn logging
!
vpdn-group 1
request-dialin
protocol pppoe
这个VPDN 不懂 哈哈
!
!
!
!
interface Ethernet0/0
ip address 10.200.56.22 255.255.255.0
ip nat inside
no ip mroute-cache
!
!
!
!在e0/1接口上启用pppoe,并定义该接口为1号拨号接口池
interface Ethernet0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1 创建一个拨号接口
ip address negotiated
ip nat outside 这个接口上进行nat
ip mtu 1492 设置mtu最大为1492 因为pppoe本身还要加8字节头部
encapsulation ppp 封装ppp协议
no ip mroute-cache
dialer pool 1 使用1号接口池拨号
dialer-group 1 应用1号感兴趣拨号列表
ppp authentication pap 启用pap认证
ppp pap sent-username cisco password cisco1
!
ip classless
no ip http server
!
dialer-list 1 protocol ip permit 定义1号感兴趣拨号列表(容许所有ip数据包)
ip nat inside source list 1 interface Dialer1 overload NAT(超载)
ip route 0.0.0.0 0.0.0.0 dialer1 默认路由
access-list 1 permit 10.200.56.0 0.0.0.255 定义ACL
!
line con 0
exec-timeout 0 0
transport input none
line vty 0 4
login
password ww
!
end
整个过程很象ISDN的profile 配置
文章评论