vpdn enable 启动虚拟拔号功能
vpdn-group xxx 创建xxx拨号进程
request-dialin 申请拨号
protocol pppoe 封装pppoe
interface Dialer 1 进入1号拨号接口(虚拟口)
ip address negotiated 自动获取ip
encapsulation ppp 封装ppp
dialer pool 1 创建拨号池1号
ppp authentication pap callin 认证方式ppp pap
ppp pap sent-username 200000589294 password f5h9w5u3 发送用户名与口令!
interface FastEthernet0/0 进入外口f0/0
no ip address
pppoe enable 支持pppoe功能
pppoe-client dial-pool-number 1 调用1号拨号池
no shut
interface FastEthernet0/1 内部接口f0/1
ip address 192.168.2.1 255.255.255.0
no shut
access-list 1 permit any
ip nat inside source list 1 interface Dialer 1 overload 对应关系是列表1利用拨号口的公有ip
int dialer 1
ip nat outside
int f0/1
ip nat inside
ip route 0.0.0.0 0.0.0.0 Dialer1 默认路由
阅读(835) | 评论(0) | 转发(0) |