设为首页
加入收藏
联系站长
今天是:  | 网站首页 | 软件路由器 | 无盘技术 | 网络学院 | 下载中心 | 技术论坛 | cisco | 
您现在的位置: 中国路由网 >> 软件路由器 >> RouterOS >> 正文 用户登录 新用户注册
[推荐]Routeros eoip 配置实例           ★★★
 
Routeros eoip 配置实例
作者:佚名 文章来源:网络 点击数: 更新时间:2008-7-7 23:58:01
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了以后的才做,既然有人有兴趣,就贴一下吧,上面大都是官方的设置方法,都没有错误。
 
 
文章录入:dnbm    责任编辑:dnbm 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口