|
本帖最后由 stevemorrislian 于 2017-11-16 21:46 编辑
在ROS:
Name | | MyGre | Type | | GRE Tunnel | MTU |
|
| Actual MTU | | 1400 | L2 MTU | | 65535 |
| Local Address | 192.168.88.1 |
| Remote Address | 192.168.2.22 | | 然后ip-address给这和interface, 1.1.1.1/30
在openWRT:
编辑/etc/config/network,加入这些配置
config interface 'mygre'
option ipaddr '192.168.2.22' tunnel local IP
option peeraddr '192.168.88.1' tunnel remote IP
option mtu '1400'
option proto 'gre'
config interface 'greStaic'
option proto 'static'
option ifname '@mygre'
option ipaddr '1.1.1.2'
option netmask '255.255.255.252'
需要安装kmod-gre和gre两个包
配置后:/etc/init.d/network restart
测试:相互ping
|
|