route os设置成PPPOE服务器的经过

环境如下
vmware5.5.3             route OS   v2.9.43
软件的安装过程就不说了 重点是设置过程 
1.在命令行下输入set 再输入两次a 如图1http://download1.youkuaiyun.com/down3/20070603/03163329451.bmphttp://download1.youkuaiyun.com/down3/20070603/03163329451.bmp
出现enable inteface: ether1后按回车跳过 以后再改   在ip address/netmask后输入route os的设置地址(随便输入一个, 以后可以改)比如 192.168.8.5/24  回车后按两次x ,现在就可以图形化的设置工具了, 在IE浏览器里输入 192.168.8.5就可以下载winbox 了。
在这里有必要说明 ether1是连接外网的,ether2是连接内网 ,因为内网是PPPOE协议自动获取的地址 ,所以不需要设置IP。
2.首先添加PPPOE客户端的地址段。
依次单击IP----Pool----+-----name随便输(这里默认)在addresses里面输入要为客户机分配的IP 192.168.5.2--192.168.5.254 如图2点击OK后地址池设置完毕。
http://download1.youkuaiyun.com/down3/20070603/03170219529.bmp
3.给外网地址设置网关  ip-----routes---routes---+---general----在gateway里面网关---OK后完成设置。 图3http://download1.youkuaiyun.com/down3/20070603/03171652930.bmp
4.接下来添加PPPOE的profile。 ppp----profiles----+-----general-----name随便填这里是 server    local address 是客户机的网关这里是192.168.5.1  remote  address是刚刚设置的地址池名称  我没改所以是pool1 DNS server就是本地的DNS服务器,  OK后设置完成。如图4
http://download1.youkuaiyun.com/down3/20070603/03175746174.bmp
5.现在添加PPPOE的用户和密码  ppp---secrets-----+   name 这里为默认 密码1234 service选PPPOE(重要) profile选刚刚建立的profile 这里是server  OK后完成。图5
http://download1.youkuaiyun.com/down3/20070603/03180231608.bmp
6.现在添加PPPOE服务器   ppp-----interfaces----pppoeoe server-----+------service name 随便输 这里默认 interface选ether2  default profile选刚刚建的profile 这里是server。OK后设置完成。图6
7.现在客户机应该可以拨上线,但是还不能连网,因为没有路由,下面设置NAT 。
IP---firewall---NAT-----+------action----action----masquerade   ok后全部设置完成。由于Nat比较简单就不截图了

在客户机拨号成功的IP地址 图8
http://download1.youkuaiyun.com/down3/20070603/03183957546.bmp


C:/Documents and Settings/w>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : admin-cd479402f
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

        Physical Address. . . . . . . . . : 00-0C-29-3E-21-EA
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.5.5
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

PPP adapter 宽带连接:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.5.254
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 192.168.5.254
        DNS Servers . . . . . . . . . . . : 61.128.99.133
                                            61.128.99.134
        NetBIOS over Tcpip. . . . . . . . : Disabled

C:/Documents and Settings/w>nslookup
Default Server:  dns3.xj.cninfo.net
Address:  61.128.99.133

> www.163.com
Server:  dns3.xj.cninfo.net
Address:  61.128.99.133

Non-authoritative answer:
Name:    www.cache.split.netease.com
Addresses:  220.181.28.54, 220.181.28.205, 220.181.28.206, 220.181.31.182
          220.181.31.183, 220.181.31.184, 220.181.28.50, 220.181.28.51, 220.181.
28.52
          220.181.28.53
Aliases:  www.163.com

>
C:/Documents and Settings/w>ping www.163.com

Pinging www.cache.split.netease.com [220.181.28.50] with 32 bytes of data:

Reply from 220.181.28.50: bytes=32 time=108ms TTL=51
Reply from 220.181.28.50: bytes=32 time=93ms TTL=51

Ping statistics for 220.181.28.50:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 93ms, Maximum = 108ms, Average = 100ms
Control-C
^C
C:/Documents and Settings/w>

由于PPPOE协议设计师的天才脑袋,使得在ARP攻击如此猖狂的年代, PPPOE成了ARP攻击最好的遏制手段
顺便再鄙视一下国内的教育-------在我脱离学校后自己的自学能力有了质的飞跃,以前死活搞不懂的地方 现在看来竟然那么简单。
引用爱因斯坦博士的一句话“惟一会妨碍我学习的是,我所受到的教育”。
  

by 清风逐浪 qq:375546433
<think>我们正在讨论如何使用RouterOS的Winbox工具来实现PPPoE拨号实验。Winbox是MikroTik RouterOS的图形化管理工具,通过MAC地址或IP连接设备进行配置。 步骤: 1. 获取Winbox:从MikroTik官网下载Winbox,或从RouterOS设备的Files菜单中下载。 2. 连接设备:通过MAC地址或IP连接到RouterOS设备(可以是物理设备或虚拟机)。 3. 配置PPPoE服务器: - 创建PPPoE服务器接口 - 设置认证方式(如CHAP)和用户账户 - 配置地址池 4. 配置PPPoE客户端(用于拨号测试): - 在另一台RouterOS设备或同一台设备的不同接口上创建PPPoE客户端 - 输入服务器IP(或接口)和认证信息 5. 验证连接:检查连接状态和分配的IP地址。 下面将详细说明操作步骤。</think>### RouterOS Winbox 使用指南(PPPoE 拨号实验) #### 一、Winbox 基础操作 1. **获取与连接** - 下载地址:https://mikrotik.com/download - 连接方式: ```bash # 通过 MAC 地址连接(推荐) 输入设备 MAC 地址 → 点击 Connect # 通过 IP 连接 输入设备 IP (默认 192.168.88.1) → 登录名 admin → 密码留空 ``` 2. **主界面功能模块** | 模块 | 功能 | |------|------| | `Interfaces` | 网络接口管理 | | `PPP` | 拨号协议配置 | | `IP > Pool` | IP地址池 | | `IP > Firewall` | 防火墙规则 | | `System > Users` | 用户管理 | #### 二、PPPoE 服务器配置 1. **创建地址池** ``` IP > Pool → "+" Name: pppoe-pool Addresses: 192.168.99.100-192.168.99.200 ``` 2. **配置 PPPoE 服务** ``` PPP → PPPoE Servers → "+" Interface: 选择物理接口 (如 ether1) Service Name: 任意命名 (如 my-pppoe) Authentication: - 勾选 CHAP - 勾选 PAP ``` 3. **创建用户账号** ``` PPP > Secrets → "+" Name: testuser Password: testpass Service: pppoe Local Address: 192.168.99.1 (服务器网关) Remote Address: pppoe-pool (选择刚创建的地址池) ``` #### 三、PPPoE 客户端配置 1. **创建拨号连接** ``` PPP → "+" → 选择 PPPoE Client General: Interface: 选择客户端物理接口 (如 ether2) User: testuser Password: testpass Dial Out: - 勾选 Dial On Demand - 勾选 Add Default Route ``` 2. **验证连接状态** - 成功连接后: ``` Status > Interfaces → 查看 pppoe-out1 状态 显示 "running" 和获取的IP地址 ``` #### 四、实验环境搭建方案 **物理拓扑:** ``` [PC] --(eth1)-- [RouterOS] --(eth2)-- [ISP模拟器] ``` **配置步骤:** 1. eth1 连接客户端 PC (IP: 192.168.88.0/24) 2. eth2 连接另一台 RouterOS 作为 ISP 模拟器 3. 在 ISP 模拟器上配置 PPPoE 服务器 4. 在主路由器配置 PPPoE 客户端拨号 #### 五、关键调试命令 ```routeros # 查看活动连接 /ppp active print # 监控实时日志 /log print follow # 清除所有PPPoE连接 /interface pppoe-client disable [find] /interface pppoe-client remove [find] ``` #### 六、常见问题解决 | 问题现象 | 解决方案 | |---------|----------| | 无法获取IP | 检查 `IP > Pool` 配置范围 | | 认证失败 | 确认 `PPP > Secrets` 密码匹配 | | 客户端无法上网 | 添加 NAT 规则:<br>`/ip firewall nat add chain=srcnat action=masquerade` | | Winbox 连接断开 | 关闭防火墙临时测试:<br>`/ip firewall disable 0` |
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值