建立拨号组拨号控制列表
dialer-group 1 rule ip permit
建立拨号接口1
interface dialer 1
开启DDR共享
dialer bundle enable
配置接口管理拨号组
dialer-group 1
接口接受PPP协商产生的由Server端分配的IP地址
ip address ppp-negotiate
设置链路空闲时间为0
dialer timer idle 0
配置ppp chap 验证名
ppp chap user 123456
配置ppp chap 验证密码
ppp chap password cipher 123456
填写运营商给的用户名和密码
ppp pap local-user 123456 password cipher 123456
建立ppp会话,绑定相应三层接口
interface GigabitEthernet 0/0
pppoe-client dial-bundle-number 1
###############################################
配置nat转换
interface Dialer 1
nat outbound
################################################
配置默认路由,出口指向拨号口1
ip route-static 0.0.0.0 0.0.0.0 Dialer1
################################################
配置内网DHCP
interface GigabitEthernet 0/1
ip address 192.168.1.254 24
#
DHCP enable
#
dhcp server ip-pool 1
network 192.168.1.0 24
gateway-list 192.168.1.254
dns-list 114.114.114.114
###########################
备注:
dialer timer idle 0
文章有(3)条网友点评
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。
评论测试
牛蛙牛蛙