ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 5471|回复: 3

[交流] RouteROS软路由 eoip 配置实例

[复制链接]
发表于 2009-9-23 11:45:49 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

您需要 登录 才可以下载或查看,没有账号?会员注册

x
Ethernet over IP 隧道将在Ethernet之间建立一个连接
Ethernet over IP (EoIP) 隧道将在Ethernet之间建立一个连接。
可以工作的环境:lans over internet;LANs over encrypted tunnels ;LANs over 802.11b 'ad-hoc' wireless networks


1。首先创建ppptp tunnel,首先假设有两台os电脑,一台是Our_GW ,(另一台为Remote)


CODE
[admin@Our_GW] interface pptp-server> /ppp secret add name=joe service=pptp password=top_s3 local-address=10.0.0.1 remote-address=10.0.0.2

[admin@Our_GW] interface pptp-server> add name=from_remote user=joe

[admin@Our_GW] interface pptp-server> server set enable=yes



而Remote router 就是一个pptp client:

CODE
[admin@Remote] interface pptp-client> add name=pptp user=joe connect-to=192.168.1.1 password=top_s3 mtu=1500 mru=1500


[admin@Remote] interface pptp-client> enable pptp


2。接着配置EOIP增加到两个os路由的连接中去,通过刚刚用ppptp拨号建立的ppptp 隧道
在Our_GW设置:

CODE
[admin@Our_GW] interface eoip> add name="eoip-remote" tunnel-id=0 remote-address=10.0.0.2
[admin@Our_GW] interface eoip> enable eoip-remote



在Remote设置:

CODE
[admin@Remote] interface eoip> add name="eoip" tunnel-id=0 remote-address=10.0.0.1

[admin@Remote] interface eoip> enable eoip-main


3。桥接EOIP
在Our_GW上设置:

CODE
[admin@Our_GW] interface bridge> add forward-protocols=ip,arp,other disabled=no

[admin@Our_GW] interface bridge> port print
Flags: X - disabled
# INTERFACE BRIDGE
0 eoip-remote none
1 office-eth none
2 isp none


[admin@Our_GW] interface bridge> port set "0,1" bridge=bridge1
(这里的0,1是对应上面的print)

同样要在Remote设置:

CODE
[admin@Remote] interface bridge> add forward-protocols=ip,arp,other disabled=no


[admin@Remote] interface bridge> port print
Flags: X - disabled
# INTERFACE BRIDGE
0 ether none
1 adsl none
2 eoip-main none

[admin@Remote] interface bridge> port set "0,2" bridge=bridge1
(说明同上)


注意:EOIP的MAC 地址是自己设置的,取间位于00-00-5E-80-00-00 to 00-00-5E-FF-FF-FF

两个os的eoip的MAC地址不能一样。。

这些都是用熟悉ROUTER OS了以后的才做,既然有人有兴趣,就贴一下吧,上面大都是官方的设置方法,都没有错误。
发表于 2009-9-25 04:30:03 | 显示全部楼层
add forward-protocols=ip,arp,other disabled=no这条命令明显错了。。。
发表于 2009-9-26 04:54:44 | 显示全部楼层
下次发一个图解教程给大家
发表于 2009-9-27 19:26:19 | 显示全部楼层
支持楼主~~~~~~~
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-6-17 21:19 , Processed in 0.646484 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表