1、RouterOS 设置 PPPOE 服务器一 、实验拓扑:说明:PC1 为真实计算机,IP 地址 192.168.5.2/24。Routeros 和PC2 为 vmware 虚拟设备。 Routeros wan 口地址为192.168.5.5/24,和 PC1 物理网卡桥接,lan 口地址为192.168.222.100/24 连接到 PC1 VMnet1(仅主机模式) 。PC2 IP 地址 192.168.222.200/24 连接到 PC1 VMnet1(仅主机模式) 。由于 PC2 使用仅主机模式连接到 PC1,所以 PC2 仅能和 PC1 及Routeros 的 lan 口通信,无法访
2、问互联网。二、PPPOE 设置以下所有操作都是在 winbox 中完成1、设置 PPPOE 地址池(IP-Pool)name:pool-pppoe address: 172.16.1.2-172.16.1.254 netxpool:none2、设置 pppoe 模板(ppp-profiles )(General 选项卡 )Name:profiles-pppoe Local Address:172.16.1.1 Remote Address:pool-pppoe DNS Server:114.114.114.114(Limits 选项卡)only on:yes3、设置 pppoe 服务器(ppp
3、-pppoe servers)services name:services-pppoe interface:lan4、设置 pppoe 拨号账号密码(ppp-secrets)name:ppp1 password:123456 servcies:pppoe profile:profile-pppoe5、配置 nat(ip-firewall NAT 选项卡)(General 选项卡 )chain:srcnat(Action 选项卡)action:masquerade6、配置缺省路由(ip-routes)Dst.Address:0.0.0.0/0 Gateway:192.168.5.1三、测试PC2 拨号拨号成功。查看 PC2 的 IP 设置测试 PC2 外网连同情况实验成功!