cisco设备设置PPPOE拨号连接命令手册

假设路由器的F0/0口是外网口,F0/1是内网口。

内网地址网段:192.168.1.0/24,网关:192.168.1.254,ADSL账号:123456,密码:456123.

router>enable
router#config
router(config)#hostname R1
R1(config)#int f0/1
R1(config-if)#ip address 192.168.1.254 255.255.255.0
R1(config-if)#ip nat inside
R1(config-if)#no shut
R1(config)#int f0/0
R1(config-if)#no shut
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#ip dhcp pool 1
R1(dhcp-config)#net 192.168.1.0 /24
R1(dhcp-config)#de 192.168.1.254
R1(dhcp-config)#dns-sever 114.114.114.114 (域名地址不确定,根据实际情况定)
R1(dhcp-config)#exit
R1(config)#int f0/0
R1(config-if)#pppoe enable group global
R1(config-if)#pppoe-client dial-pool-number 10
R1(config-if)#no ip address
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int dia 1
R1(config-if)#ip address negotiated
R1(config-if)#ip mtu 1492
R1(config-if)#encapsulation ppp
R1(config-if)#dialer pool 10
R1(config-if)#ppp chap hostname 123456 (根据自己的用户名与密码填)
R1(config-if)#ppp chap password 456123
R1(config-if)#ppp pap sent-username 123456 password 456123
R1(config-if)#exit
R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R1(config)#ip nat inside source list 1 int di 1 overload
R1(config)#ip route 0.0.0.0 0.0.0.0 int di 1
R1(config)#ip route 0.0.0.0 0.0.0.0 int f0/0
R1(config)#line vty 0 4
R1(config-if)#password 123456 (telnet登陆密码)
R1(config-if)#transport input telnet
R1(config-if)#login
R1(config-if)#exit
R1(config)#exit
R1#write

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值