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了以后的才做,既然有人有兴趣,就贴一下吧,上面大都是官方的设置方法,都没有错误。