找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 84717|回复: 105

[策略设置] 基于IPIP连接方式的虚拟双线教程[原创]

[复制链接]
发表于 2006-1-21 17:32:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
在此我要感谢我的朋友沉默→刺客
潜水太久了,现在发布一个虚拟双线教程方便大家
虚拟双线教程如要转载请注明[桂林逍遥子]偶的QQ:4046903
欢迎各位爱好ros的朋友进来共同探讨技术。
环境测试二台ROS2.96的路由。电信(单线)IP:219.159.78.68(以下就称为A机内网IP段192.168.88段)  网通(单线) IP:219.159.78.87(以下就称为B机内网IP段192.168.0段)
好了看我的说明:
A机设置:先在AB机之间建一个虚拟通道连接方式用IPIP。
[admin@219.159.78.68] interface ipip> add local-address=219.159.78.68 \
remote-address=219.159.78.87 disabled=no
[admin@219.159.78.68] ip address> add address=10.0.0.1/24 interface=ipip1 把10.0.0.1这个IP分

配给IPIP1这块虚拟网卡
B机设置:
[admin@219.159.78.87] interface ipip> add local-address=219.159.78.87 \
remote-address=219.159.78.68 disabled=no
[admin@219.159.78.87] ip address> add address=10.0.0.2/24 interface=ipip1 把10.0.0.2这个IP分配给IPIP1这块虚拟网卡
----------------------------------------------------------------------------------------------------------------------------------
通过这样设置就可以在A机的命令控制台里ping 通10.0.0.2(也就是B机的虚拟网卡的IP) 这个IP了。基本上AB机的虚拟通道就算建立起来了。
然后在A机的IP routes加规则   
[admin@MikroTik] ip route> add dst-address=192.168.0.0/24 gateway=10.0.0.2
----------------------------------------------------------------------------------------------------------------------------------
然后把下面这个路由表导入(Copy到记事本保存为*.RSC格式导入)(默然提供的路由表在此十分感谢)
/ip route
add dst-address=59.80.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping

add dst-address=60.0.0.0/13 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.8.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.10.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.12.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.13.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.13.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.16.0.0/12 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.208.0.0/13 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.216.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=60.220.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.4.64.0/20 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.128.210.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.133.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.134.96.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.134.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.135.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.136.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.148.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=61.158.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=61.156.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.158.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.159.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.161.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.161.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.162.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.167.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.168.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.176.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.179.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.180.13.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.180.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.181.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.182.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.189.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=61.237.148.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.96.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.94.64.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.97.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.98.0.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.99.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.102.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.102.224.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.106.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.107.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.108.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.110.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.110.192.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.111.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=203.93.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=203.175.192.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.12.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.14.160.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.14.192.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.15.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.15.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.21.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.22.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.45.128.0/20 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.51.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.52.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.72.96.0/20 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.73.32.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.74.96.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.74.128.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.78.0.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=210.82.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=211.95.192.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=211.97.245.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=211.151.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=211.158.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=211.163.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.4.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.21.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.62.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.104.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.106.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=218.108.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.141.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.142.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.154.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.156.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.158.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=219.159.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=220.192.0.0/12 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=220.248.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=220.250.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=221.12.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=221.208.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=222.173.101.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=222.173.102.0/23 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=222.172.104.0/22 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
   
add dst-address=202.96.64.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.7.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.8.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.12.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.24.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.28.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.56.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.60.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.67.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.68.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.0.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.4.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.6.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.7.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.7.64.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.7.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.8.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.10.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.11.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.11.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.11.192.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.12.0.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.13.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.13.64.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.13.128.0/17 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.14.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.192.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.196.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.198.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.199.0.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.199.32.0/20 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.199.128.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.199.192.0/20 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.200.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.204.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.207.0.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.208.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.212.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=221.216.0.0/13 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=222.128.0.0/12 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=222.160.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=222.162.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=222.163.0.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=162.105.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=166.111.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.112.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.114.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.115.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.116.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.117.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.118.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.119.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.120.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.192.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.194.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.196.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.198.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.200.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.202.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.204.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.38.192.0/18 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.38.64.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.38.96.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=202.4.128.0/19 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.25.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.26.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.28.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.30.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.31.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.32.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.36.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.40.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.42.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.44.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=210.46.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.64.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.66.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.67.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.68.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.69.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.70.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.71.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.80.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.81.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.82.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.83.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.84.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=211.86.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.192.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.193.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.194.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.195.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.196.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.216.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.218.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.220.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.221.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.222.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.224.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.226.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.242.0.0/15 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=219.244.0.0/14 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=218.30.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=61.129.58.0/24 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
add dst-address=61.53.0.0/16 gateway=10.0.0.2 distance=0 scope=255 check-gateway=ping
  
---------------------------------------------------------------------------------------------------------------------------------
就是凡是网通的就通过虚拟通道。由B机那里出去
B机的ip routes设置
[admin@MikroTik] ip route> add dst-address=192.168.88.0/24 gateway=10.0.0.2
好了。通过这样的设置虚拟双线就算是完成了。
由于本人语言表达能力有限。如果认为好的话就帮顶一下吧。有什么不明白的也可以问我。我的QQ在上面有
如果本贴顶的人数多的话。我决定放出动画教程
routeros
发表于 2006-1-21 18:54:03 | 显示全部楼层
这样的好贴当然要顶了!
希望能发更多的精华文章!
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-21 19:09:30 | 显示全部楼层

回复 #2 想得太美 的帖子

谢谢版主的夸奖。以后我会放出用VPN连接方式 做虚拟双线的教程的。
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-21 19:17:23 | 显示全部楼层
如果不想做虚拟双线。只是想把二个网吧的内网用IPIP连起来。这样就行了。
     在此我要感谢我的朋友沉默→刺客
潜水太久了,现在发布一个虚拟双线教程方便大家
虚拟双线教程如要转载请注明[桂林逍遥子]偶的QQ:4046903 本群群号:15581688
欢迎各位爱好ROS的朋友进来共同探讨技术。
环境测试二台ROS2.96的路由。电信(单线)IP:219.159.78.68(以下就称为A机内网IP段192.168.88段)  网通(单线) IP:219.159.78.87(以下就称为B机内网IP段192.168.0段)
好了看我的说明:
A机设置:先在AB机之间建一个虚拟通道连接方式用IPIP。
[admin@219.159.78.68] interface ipip> add local-address=219.159.78.68 \
remote-address=219.159.78.87 disabled=no
[admin@219.159.78.68] ip address> add address=10.0.0.1/24 interface=ipip1 把10.0.0.1这个IP分

配给IPIP1这块虚拟网卡
B机设置:
[admin@219.159.78.87] interface ipip> add local-address=219.159.78.87 \
remote-address=219.159.78.68 disabled=no
[admin@219.159.78.87] ip address> add address=10.0.0.2/24 interface=ipip1 把10.0.0.2这个IP分配给IPIP1这块虚拟网卡
----------------------------------------------------------------------------------------------------------------------------------
通过这样设置就可以在A机的命令控制台里ping 通10.0.0.2(也就是B机的虚拟网卡的IP) 这个IP了。基本上AB机的虚拟通道就算建立起来了。
然后在A机的IP routes加规则   
[admin@MikroTik] ip route> add dst-address=192.168.0.0/24 gateway=10.0.0.2
----------------------------------------------------------------------------------------------------------------------------------
B机的ip routes设置
[admin@MikroTik] ip route> add dst-address=192.168.88.0/24 gateway=10.0.0.2
好了。通过这样的设置虚拟双线就算是完成了。
由于本人语言表达能力有限。如果认为好的话就帮顶一下吧。有什么不明白的也可以问我。我的QQ在上面有
routeros
回复

使用道具 举报

发表于 2006-1-21 22:50:49 | 显示全部楼层
不错,我也是在逍遥子的指导下,用PPTP做好了网对网的连接和虚拟双线。效果偶是没得说了。一个字:爽~~!
routeros
回复

使用道具 举报

发表于 2006-1-21 23:01:50 | 显示全部楼层
好1/!
顶了!
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-21 23:21:44 | 显示全部楼层
如果顶的人数多的话。我也将会放出VPN用PPTP服务做LAN to LAN 和虚拟双线的教程。供君选择.
routeros
回复

使用道具 举报

发表于 2006-1-21 23:53:43 | 显示全部楼层
支持!
routeros
回复

使用道具 举报

发表于 2006-1-22 00:13:49 | 显示全部楼层
顶了
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-22 00:27:27 | 显示全部楼层
为了方便新手现在放出图片教程:
设置A机:IPIP  01.jpg
   
   为IPIP虚拟网卡分配IP 10。0。0。1:02.jpg
        
      
   路由表处设置:03.jpg
就是导入上面的那个路由表就OK了
     

设置A机完毕


B机设置:
      设置B机:IPIP 04.jpg
      为B机IPIP虚拟网卡分配IP:10。0。0。2
B机路由表处设置:06.jpg
唉第一次在论坛里发图片。各位将就一下了。。

[ 本帖最后由 glunix 于 2006-1-22 00:43 编辑 ]
01.jpg
02.jpg
03.jpg
04.jpg
05.jpg
06.jpg
routeros
回复

使用道具 举报

发表于 2006-1-22 00:46:32 | 显示全部楼层
我定喽。。。。。。。。。。。!老大就是老大!一个字!强!
routeros
回复

使用道具 举报

发表于 2006-1-22 00:48:36 | 显示全部楼层
哈哈哈,顶帖 ,
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-22 16:52:47 | 显示全部楼层
对于上面的教程偶想在补充一下
由于电信网通接口代宽的限制用单电信,单网通作虚拟双线是很难达到自己预期的效果的。。想要达自己自己预期的效果最好用一个双线的ROS作中间桥梁来接通电信与网通。
或是B机本身就是双线。。这样A机就可以借B机的双线而实现虚拟双线的目的。
如果B机是虚拟双线的话则A机设置那里:
A机设置:先在AB机之间建一个虚拟通道连接方式用IPIP。
[admin@219.159.78.68] interface ipip> add local-address=219.159.78.68 \
remote-address=219.159.78.45(B机电信的IP) disabled=no
[admin@219.159.78.68] ip address> add address=10.0.0.1/24 interface=ipip1 把10.0.0.1这个IP分配给IPIP1这块虚拟网卡
B机设置:
[admin@219.159.78.87] interface ipip> add local-address=219.159.78.45(b机电信IP) \
remote-address=219.159.78.68 disabled=no
[admin@219.159.78.87] ip address> add address=10.0.0.2/24 interface=ipip1 把10.0.0.2这个IP分配给IPIP1这块虚拟网卡
----------------------------------------------------------------------------------------------------------------------------------
通过这样设置就可以在A机的命令控制台里ping 通10.0.0.2(也就是B机的虚拟网卡的IP) 这个IP了。基本上AB机的虚拟通道就算建立起来了。
然后在A机的IP routes加规则   
[admin@MikroTik] ip route> add dst-address=192.168.0.0/24 gateway=10.0.0.2

B机的ip routes设置
[admin@MikroTik] ip route> add dst-address=192.168.88.0/24 gateway=10.0.0.2
[admin@MikroTik] ip route> add dst-address=10.0.0.0/24 gateway=219.159.78.65(B机网通的外网网关)就是凡是10。0。0段位的全走网通
这样设置后。A机就能真正的借B机的风通线路走了。
以上只是个人理论上的依据,没有实践过。因为我这里全是电信的没有网通的。。更没有电信网通双线的网吧作实验了。
如果那位依本教程成功的话。。记得告诉我一声哦。哈哈。助人为快乐之本。
本人也愿意帮助那些有条件的朋友在线指导他们做虚拟双线。。。。
routeros
回复

使用道具 举报

发表于 2006-1-22 16:58:46 | 显示全部楼层
哥们。你的想法是好的,可是有些问题。

因为据你所讲,是一个单网通和一个单电信,网通的通过IPIP接入电信路由器。。。。

这样,您感觉玩电信游戏会感觉到快么?!

PPTP的VPN接入方式,和这个又有什么不同呢?只不过多建立一个PPTP SERVER,客户端拨上来而矣。用法基本上没有什么不同之处,还需要项到何种程度才肯放出呢?

在这个论坛里,你会,就请教大家好了,根本用不着卖关子。

只有这样才能把这个论坛更好的宣传出去,楼主你说是么?

这个贴子根本就没有解决电信和网通之间的互联互通问题。如果有一个路由器是处于双网,这样才有用。用网通拨入网通,然后走电信出口,这才是最终的解决之道。

各位仔细看了么?   咦?好像还有精呢?
routeros
回复

使用道具 举报

 楼主| 发表于 2006-1-22 17:18:36 | 显示全部楼层

回复 #14 abbass 的帖子

不好意思。上面第一次发只是想让人知道虚拟双线的基本做法。因为我本身条件限制。我没有双线的网吧。我们这里全是电信的ISP。网吧也全用电信的。。不信你可以查219。159。78。68 和219。159。78。87 都是电信的IP。看我的补充那里.13楼。那里有电信单线---------借电信网通双线来实现虚拟双线的补充。。

[ 本帖最后由 glunix 于 2006-1-22 17:22 编辑 ]
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-5 23:27 , Processed in 0.077697 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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