Cisco 851路由器PPPOE拨号配置(亲测)

一.公司有个闲置的851路由,于是就配置了下,配置成功,现在把配置命令分享下 :
1.interface FastEthernet4 /外网口WAN 设置 启用PPPOE
no ip address / 不设定IP
duplex auto /双工自动
speed auto /速率自动
pppoe enable /开启PPPOE
pppoe-client dial-pool-number 1 /设置拨号池1与物理口f4 关联
2.此路由器没有直接可以作为内网口的接口,4个口是交换口,默认只有VLAN1设置为地址作为网关。
interface Vlan1 /进入默认VLAN下
ip address 192.168.1.254 255.255.255.0 /设定VLAN地址
no sh /开启端口
ip nat inside /定义为 内部 NAT
ip virtual-reassembly / IP虚拟分片重组 可以开启
3.新建一个虚拟拨号口1
interface Dialer1 /进入拨号口1
encapsulation ppp /封装为PPP
ip address negotiated /从服务端自协商获取IP
ip mtu 1492 /设置 最大传输单元值
ip nat outside /定义为外部 NAT
ip virtual-reassembly /IP 虚拟分片重组
dialer pool 1 /与1号拨号池关联
ppp pap sent-username 280041xxxxxx password xxxxxx /发送宽带用户名和密码 ,pap是明文,保险起见
输入两种 ppp enthentication chap pap callin.

5.4.添加默认路由 和NAT.
ip route 0.0.0.0 0.0.0.0 Dialer1 /添加拨号口 默认路由
access-list 1 permit any /或者 access-list 1 permit 192.168.1.0 0.0.0.255 标准ACL允许这个网段
ip nat inside source list 1 interface Dialer1 overload /这条很重要,不添加无法上网。

5.ip dhcp pool 1 /新建DHCP 池
network 192.168.1.0 255.255.255.0 /宣告网段
dns-server 202.96.128.86 114.114.114.114 /DNS服务器
default-route 192.168.1.254 /指定内网默认网关
lease 3 /租期为3天
(config)#ip dhcp excluded 192.168.1.254 /排除DHCP分配地址.

猜你喜欢

转载自blog.51cto.com/1670965/2445260