找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 7423|回复: 3

[基础] roteros vlan 问题

[复制链接]
发表于 2013-1-7 13:15:42 | 显示全部楼层 |阅读模式

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

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

×
1、在二层交换机上划分vlan,1-23口每个端口一个vlan,24口接routerosRouterOS上启用vlan划分地址段,交换机一个端口划一个地址,一共3台交换机,都这样配置。
2、routeros上4块网卡,内外3块,每个网卡接一个交换机的24口。
3、现在测试每个交换机端口都可以ping通routeROS上启用的路由网关,也可以ping通其他网卡上vlan的网关,而且最奇怪的是不同交换机的电脑之间也可以ping通。
4、现在怎样能让不同vlan下的电脑不能互相ping通?
附routeros的配置:
添加vlan的配置
  1. /interface ethernet
  2. set 0 arp=enabled auto-negotiation=yes cable-settings=default comment=\
  3.     "\CB\C4\C2\A5" disable-running-check=yes disabled=no full-duplex=yes \
  4.     mac-address=00:01:EB:55:63:12 mtu=1500 name=silou speed=100Mbps
  5. set 1 arp=enabled auto-negotiation=yes cable-settings=default comment=\
  6.     "\CE\E5\C2\A5" disable-running-check=yes disabled=no full-duplex=yes \
  7.     mac-address=00:0A:EB:12:79:30 mtu=1500 name=wulou speed=100Mbps
  8. set 2 arp=enabled auto-negotiation=yes cable-settings=default comment=\
  9.     "\C1\F9\C2\A5" disable-running-check=yes disabled=no full-duplex=yes \
  10.     mac-address=00:0A:EB:02:26:8C mtu=1500 name=liulou speed=100Mbps
  11. set 3 arp=enabled auto-negotiation=yes cable-settings=default comment=\
  12.     "\CD\E2\CD\F8" disable-running-check=yes disabled=no full-duplex=yes \
  13.     mac-address=00:14:2A:01:12:B3 mtu=1500 name=wan speed=100Mbps
  14. /interface vlan
  15. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=401 \
  16.     vlan-id=401
  17. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=402 \
  18.     vlan-id=402
  19. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=403 \
  20.     vlan-id=403
  21. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=410 \
  22.     vlan-id=410
  23. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=404 \
  24.     vlan-id=404
  25. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=405 \
  26.     vlan-id=405
  27. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=406 \
  28.     vlan-id=406
  29. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=407 \
  30.     vlan-id=407
  31. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=408 \
  32.     vlan-id=408
  33. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=409 \
  34.     vlan-id=409
  35. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=411 \
  36.     vlan-id=411
  37. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=412 \
  38.     vlan-id=412
  39. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=413 \
  40.     vlan-id=413
  41. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=414 \
  42.     vlan-id=414
  43. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=415 \
  44.     vlan-id=415
  45. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=416 \
  46.     vlan-id=416
  47. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=417 \
  48.     vlan-id=417
  49. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=418 \
  50.     vlan-id=418
  51. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=419 \
  52.     vlan-id=419
  53. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=420 \
  54.     vlan-id=420
  55. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=421 \
  56.     vlan-id=421
  57. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=422 \
  58.     vlan-id=422
  59. add arp=enabled comment="" disabled=no interface=silou mtu=1500 name=423 \
  60.     vlan-id=423
  61. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=501 \
  62.     vlan-id=501
  63. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=502 \
  64.     vlan-id=502
  65. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=503 \
  66.     vlan-id=503
  67. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=504 \
  68.     vlan-id=504
  69. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=505 \
  70.     vlan-id=505
  71. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=506 \
  72.     vlan-id=506
  73. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=507 \
  74.     vlan-id=507
  75. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=508 \
  76.     vlan-id=508
  77. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=509 \
  78.     vlan-id=509
  79. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=510 \
  80.     vlan-id=510
  81. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=511 \
  82.     vlan-id=511
  83. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=512 \
  84.     vlan-id=512
  85. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=513 \
  86.     vlan-id=513
  87. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=514 \
  88.     vlan-id=514
  89. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=515 \
  90.     vlan-id=515
  91. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=516 \
  92.     vlan-id=516
  93. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=517 \
  94.     vlan-id=517
  95. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=518 \
  96.     vlan-id=518
  97. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=519 \
  98.     vlan-id=519
  99. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=520 \
  100.     vlan-id=520
  101. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=521 \
  102.     vlan-id=521
  103. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=522 \
  104.     vlan-id=522
  105. add arp=enabled comment="" disabled=no interface=wulou mtu=1500 name=523 \
  106.     vlan-id=523
  107. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=601 \
  108.     vlan-id=601
  109. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=602 \
  110.     vlan-id=602
  111. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=603 \
  112.     vlan-id=603
  113. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=604 \
  114.     vlan-id=604
  115. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=605 \
  116.     vlan-id=605
  117. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=606 \
  118.     vlan-id=606
  119. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=607 \
  120.     vlan-id=607
  121. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=608 \
  122.     vlan-id=608
  123. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=609 \
  124.     vlan-id=609
  125. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=610 \
  126.     vlan-id=610
  127. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=611 \
  128.     vlan-id=611
  129. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=612 \
  130.     vlan-id=612
  131. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=613 \
  132.     vlan-id=613
  133. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=614 \
  134.     vlan-id=614
  135. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=615 \
  136.     vlan-id=615
  137. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=616 \
  138.     vlan-id=616
  139. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=617 \
  140.     vlan-id=617
  141. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=618 \
  142.     vlan-id=618
  143. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=619 \
  144.     vlan-id=619
  145. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=620 \
  146.     vlan-id=620
  147. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=621 \
  148.     vlan-id=621
  149. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=622 \
  150.     vlan-id=622
  151. add arp=enabled comment="" disabled=no interface=liulou mtu=1500 name=623 \
  152.     vlan-id=623
复制代码
添加ip地址的配置
  1. /ip address
  2. add address=192.168.4.1/28 broadcast=192.168.4.15 comment="" disabled=no \
  3.     interface=404 network=192.168.4.0
  4. add address=192.168.2.1/28 broadcast=192.168.2.15 comment="" disabled=no \
  5.     interface=402 network=192.168.2.0
  6. add address=192.168.3.1/28 broadcast=192.168.3.15 comment="" disabled=no \
  7.     interface=403 network=192.168.3.0
  8. add address=192.168.1.1/28 broadcast=192.168.1.15 comment="" disabled=no \
  9.     interface=401 network=192.168.1.0
  10. add address=192.168.10.1/28 broadcast=192.168.10.15 comment="" disabled=no \
  11.     interface=410 network=192.168.10.0
  12. add address=192.168.5.1/28 broadcast=192.168.5.15 comment="" disabled=no \
  13.     interface=405 network=192.168.5.0
  14. add address=192.168.6.1/28 broadcast=192.168.6.15 comment="" disabled=no \
  15.     interface=406 network=192.168.6.0
  16. add address=192.168.7.1/28 broadcast=192.168.7.15 comment="" disabled=no \
  17.     interface=407 network=192.168.7.0
  18. add address=192.168.8.1/28 broadcast=192.168.8.15 comment="" disabled=no \
  19.     interface=408 network=192.168.8.0
  20. add address=192.168.9.1/28 broadcast=192.168.9.15 comment="" disabled=no \
  21.     interface=409 network=192.168.9.0
  22. add address=192.168.11.1/28 broadcast=192.168.11.15 comment="" disabled=no \
  23.     interface=411 network=192.168.11.0
  24. add address=192.168.12.1/28 broadcast=192.168.12.15 comment="" disabled=no \
  25.     interface=412 network=192.168.12.0
  26. add address=192.168.13.1/28 broadcast=192.168.13.15 comment="" disabled=no \
  27.     interface=413 network=192.168.13.0
  28. add address=192.168.14.1/28 broadcast=192.168.14.15 comment="" disabled=no \
  29.     interface=414 network=192.168.14.0
  30. add address=192.168.15.1/28 broadcast=192.168.15.15 comment="" disabled=no \
  31.     interface=415 network=192.168.15.0
  32. add address=192.168.16.1/28 broadcast=192.168.16.15 comment="" disabled=no \
  33.     interface=416 network=192.168.16.0
  34. add address=192.168.17.1/28 broadcast=192.168.17.15 comment="" disabled=no \
  35.     interface=417 network=192.168.17.0
  36. add address=192.168.18.1/28 broadcast=192.168.18.15 comment="" disabled=no \
  37.     interface=418 network=192.168.18.0
  38. add address=192.168.19.1/28 broadcast=192.168.19.15 comment="" disabled=no \
  39.     interface=419 network=192.168.19.0
  40. add address=192.168.20.1/28 broadcast=192.168.20.15 comment="" disabled=no \
  41.     interface=420 network=192.168.20.0
  42. add address=192.168.21.1/28 broadcast=192.168.21.15 comment="" disabled=no \
  43.     interface=421 network=192.168.21.0
  44. add address=192.168.22.1/28 broadcast=192.168.22.15 comment="" disabled=no \
  45.     interface=422 network=192.168.22.0
  46. add address=192.168.23.1/28 broadcast=192.168.23.15 comment="" disabled=no \
  47.     interface=423 network=192.168.23.0
  48. add address=192.168.101.1/28 broadcast=192.168.101.15 comment="" disabled=no \
  49.     interface=501 network=192.168.101.0
  50. add address=192.168.102.1/28 broadcast=192.168.102.15 comment="" disabled=no \
  51.     interface=502 network=192.168.102.0
  52. add address=192.168.103.1/28 broadcast=192.168.103.15 comment="" disabled=no \
  53.     interface=503 network=192.168.103.0
  54. add address=192.168.104.1/28 broadcast=192.168.104.15 comment="" disabled=no \
  55.     interface=504 network=192.168.104.0
  56. add address=192.168.105.1/28 broadcast=192.168.105.15 comment="" disabled=no \
  57.     interface=505 network=192.168.105.0
  58. add address=192.168.106.1/28 broadcast=192.168.106.15 comment="" disabled=no \
  59.     interface=506 network=192.168.106.0
  60. add address=192.168.107.1/28 broadcast=192.168.107.15 comment="" disabled=no \
  61.     interface=507 network=192.168.107.0
  62. add address=192.168.108.1/28 broadcast=192.168.108.15 comment="" disabled=no \
  63.     interface=508 network=192.168.108.0
  64. add address=192.168.109.1/28 broadcast=192.168.109.15 comment="" disabled=no \
  65.     interface=509 network=192.168.109.0
  66. add address=192.168.110.1/28 broadcast=192.168.110.15 comment="" disabled=no \
  67.     interface=510 network=192.168.110.0
  68. add address=192.168.111.1/28 broadcast=192.168.111.15 comment="" disabled=no \
  69.     interface=511 network=192.168.111.0
  70. add address=192.168.112.1/28 broadcast=192.168.112.15 comment="" disabled=no \
  71.     interface=512 network=192.168.112.0
  72. add address=192.168.113.1/28 broadcast=192.168.113.15 comment="" disabled=no \
  73.     interface=513 network=192.168.113.0
  74. add address=192.168.114.1/28 broadcast=192.168.114.15 comment="" disabled=no \
  75.     interface=514 network=192.168.114.0
  76. add address=192.168.115.1/28 broadcast=192.168.115.15 comment="" disabled=no \
  77.     interface=515 network=192.168.115.0
  78. add address=192.168.116.1/28 broadcast=192.168.116.15 comment="" disabled=no \
  79.     interface=516 network=192.168.116.0
  80. add address=192.168.117.1/28 broadcast=192.168.117.15 comment="" disabled=no \
  81.     interface=517 network=192.168.117.0
  82. add address=192.168.118.1/28 broadcast=192.168.118.15 comment="" disabled=no \
  83.     interface=518 network=192.168.118.0
  84. add address=192.168.119.1/28 broadcast=192.168.119.15 comment="" disabled=no \
  85.     interface=519 network=192.168.119.0
  86. add address=192.168.120.1/28 broadcast=192.168.120.15 comment="" disabled=no \
  87.     interface=520 network=192.168.120.0
  88. add address=192.168.121.1/28 broadcast=192.168.121.15 comment="" disabled=no \
  89.     interface=521 network=192.168.121.0
  90. add address=192.168.122.1/28 broadcast=192.168.122.15 comment="" disabled=no \
  91.     interface=522 network=192.168.122.0
  92. add address=192.168.123.1/28 broadcast=192.168.123.15 comment="" disabled=no \
  93.     interface=523 network=192.168.123.0
  94. add address=192.168.201.1/28 broadcast=192.168.201.15 comment="" disabled=no \
  95.     interface=601 network=192.168.201.0
  96. add address=192.168.202.1/28 broadcast=192.168.202.15 comment="" disabled=no \
  97.     interface=602 network=192.168.202.0
  98. add address=192.168.203.1/28 broadcast=192.168.203.15 comment="" disabled=no \
  99.     interface=603 network=192.168.203.0
  100. add address=192.168.204.1/28 broadcast=192.168.204.15 comment="" disabled=no \
  101.     interface=604 network=192.168.204.0
  102. add address=192.168.205.1/28 broadcast=192.168.205.15 comment="" disabled=no \
  103.     interface=605 network=192.168.205.0
  104. add address=192.168.206.1/28 broadcast=192.168.206.15 comment="" disabled=no \
  105.     interface=606 network=192.168.206.0
  106. add address=192.168.207.1/28 broadcast=192.168.207.15 comment="" disabled=no \
  107.     interface=607 network=192.168.207.0
  108. add address=192.168.208.1/28 broadcast=192.168.208.15 comment="" disabled=no \
  109.     interface=608 network=192.168.208.0
  110. add address=192.168.209.1/28 broadcast=192.168.209.15 comment="" disabled=no \
  111.     interface=609 network=192.168.209.0
  112. add address=192.168.210.1/28 broadcast=192.168.210.15 comment="" disabled=no \
  113.     interface=610 network=192.168.210.0
  114. add address=192.168.211.1/28 broadcast=192.168.211.15 comment="" disabled=no \
  115.     interface=611 network=192.168.211.0
  116. add address=192.168.212.1/28 broadcast=192.168.212.15 comment="" disabled=no \
  117.     interface=612 network=192.168.212.0
  118. add address=192.168.213.1/28 broadcast=192.168.213.15 comment="" disabled=no \
  119.     interface=613 network=192.168.213.0
  120. add address=192.168.214.1/28 broadcast=192.168.214.15 comment="" disabled=no \
  121.     interface=614 network=192.168.214.0
  122. add address=192.168.215.1/28 broadcast=192.168.215.15 comment="" disabled=no \
  123.     interface=615 network=192.168.215.0
  124. add address=192.168.216.1/28 broadcast=192.168.216.15 comment="" disabled=no \
  125.     interface=616 network=192.168.216.0
  126. add address=192.168.217.1/28 broadcast=192.168.217.15 comment="" disabled=no \
  127.     interface=617 network=192.168.217.0
  128. add address=192.168.218.1/28 broadcast=192.168.218.15 comment="" disabled=no \
  129.     interface=618 network=192.168.218.0
  130. add address=192.168.219.1/28 broadcast=192.168.219.15 comment="" disabled=no \
  131.     interface=619 network=192.168.219.0
  132. add address=192.168.220.1/28 broadcast=192.168.220.15 comment="" disabled=no \
  133.     interface=620 network=192.168.220.0
  134. add address=192.168.221.1/28 broadcast=192.168.221.15 comment="" disabled=no \
  135.     interface=621 network=192.168.221.0
  136. add address=192.168.222.1/28 broadcast=192.168.222.15 comment="" disabled=no \
  137.     interface=622 network=192.168.222.0
  138. add address=192.168.223.1/28 broadcast=192.168.223.15 comment="" disabled=no \
  139.     interface=623 network=192.168.223.0
  140. /ip dhcp-server config
  141. set store-leases-disk=5m
  142. /ip dhcp-server network
  143. add address=192.168.1.0/28 comment="" dns-server=202.100.96.68 gateway=\
  144.     192.168.1.1
  145. add address=192.168.2.0/28 comment="" gateway=192.168.2.1
  146. add address=192.168.3.0/28 comment="" gateway=192.168.3.1
  147. add address=192.168.4.0/28 comment="" gateway=192.168.4.1
  148. add address=192.168.5.0/28 comment="" gateway=192.168.5.1
  149. add address=192.168.6.0/28 comment="" gateway=192.168.6.1
  150. add address=192.168.7.0/28 comment="" gateway=192.168.7.1
  151. add address=192.168.8.0/28 comment="" gateway=192.168.8.1
  152. add address=192.168.9.0/28 comment="" gateway=192.168.9.1
  153. add address=192.168.10.0/28 comment="" gateway=192.168.10.1
  154. add address=192.168.11.0/28 comment="" gateway=192.168.11.1
  155. add address=192.168.12.0/28 comment="" gateway=192.168.12.1
  156. add address=192.168.13.0/28 comment="" gateway=192.168.13.1
  157. add address=192.168.14.0/28 comment="" gateway=192.168.14.1
  158. add address=192.168.15.0/28 comment="" gateway=192.168.15.1
  159. add address=192.168.16.0/28 comment="" gateway=192.168.16.1
  160. add address=192.168.17.0/28 comment="" gateway=192.168.17.1
  161. add address=192.168.18.0/28 comment="" gateway=192.168.18.1
  162. add address=192.168.19.0/28 comment="" gateway=192.168.19.1
  163. add address=192.168.20.0/28 comment="" gateway=192.168.20.1
  164. add address=192.168.21.0/28 comment="" gateway=192.168.21.1
  165. add address=192.168.22.0/28 comment="" gateway=192.168.22.1
  166. add address=192.168.23.0/28 comment="" gateway=192.168.23.1
  167. add address=192.168.101.0/28 comment="" gateway=192.168.101.1
  168. add address=192.168.102.0/28 comment="" gateway=192.168.102.1
  169. add address=192.168.103.0/28 comment="" gateway=192.168.103.1
  170. add address=192.168.104.0/28 comment="" gateway=192.168.104.1
  171. add address=192.168.105.0/28 comment="" gateway=192.168.105.1
  172. add address=192.168.106.0/28 comment="" gateway=192.168.106.1
  173. add address=192.168.107.0/28 comment="" gateway=192.168.107.1
  174. add address=192.168.108.0/28 comment="" gateway=192.168.108.1
  175. add address=192.168.109.0/28 comment="" gateway=192.168.109.1
  176. add address=192.168.110.0/28 comment="" gateway=192.168.110.1
  177. add address=192.168.111.0/28 comment="" gateway=192.168.111.1
  178. add address=192.168.112.0/28 comment="" gateway=192.168.112.1
  179. add address=192.168.113.0/28 comment="" gateway=192.168.113.1
  180. add address=192.168.114.0/28 comment="" gateway=192.168.114.1
  181. add address=192.168.115.0/28 comment="" gateway=192.168.115.1
  182. add address=192.168.116.0/28 comment="" gateway=192.168.116.1
  183. add address=192.168.117.0/28 comment="" gateway=192.168.117.1
  184. add address=192.168.118.0/28 comment="" gateway=192.168.118.1
  185. add address=192.168.119.0/28 comment="" gateway=192.168.119.1
  186. add address=192.168.120.0/28 comment="" gateway=192.168.120.1
  187. add address=192.168.121.0/28 comment="" gateway=192.168.121.1
  188. add address=192.168.122.0/28 comment="" gateway=192.168.122.1
  189. add address=192.168.123.0/28 comment="" gateway=192.168.123.1
  190. add address=192.168.201.0/28 comment="" dns-server=\
  191.     202.100.96.68,222.75.152.129 gateway=192.168.201.1
  192. add address=192.168.202.0/28 comment="" gateway=192.168.202.1
  193. add address=192.168.203.0/28 comment="" gateway=192.168.203.1
  194. add address=192.168.204.0/28 comment="" gateway=192.168.204.1
  195. add address=192.168.205.0/28 comment="" gateway=192.168.205.1
  196. add address=192.168.206.0/28 comment="" gateway=192.168.206.1
  197. add address=192.168.207.0/28 comment="" gateway=192.168.207.1
  198. add address=192.168.208.0/28 comment="" gateway=192.168.208.1
  199. add address=192.168.209.0/28 comment="" gateway=192.168.209.1
  200. add address=192.168.210.0/28 comment="" gateway=192.168.210.1
  201. add address=192.168.211.0/28 comment="" gateway=192.168.211.1
  202. add address=192.168.212.0/28 comment="" gateway=192.168.212.1
  203. add address=192.168.213.0/28 comment="" gateway=192.168.213.1
  204. add address=192.168.214.0/28 comment="" gateway=192.168.214.1
  205. add address=192.168.215.0/28 comment="" gateway=192.168.215.1
  206. add address=192.168.216.0/28 comment="" gateway=192.168.216.1
  207. add address=192.168.217.0/28 comment="" gateway=192.168.217.1
  208. add address=192.168.218.0/28 comment="" gateway=192.168.218.1
  209. add address=192.168.219.0/28 comment="" gateway=192.168.219.1
  210. add address=192.168.220.0/28 comment="" gateway=192.168.220.1
  211. add address=192.168.221.0/28 comment="" gateway=192.168.221.1
  212. add address=192.168.222.0/28 comment="" gateway=192.168.222.1
  213. add address=192.168.223.0/28 comment="" gateway=192.168.223.1
复制代码
routeros
 楼主| 发表于 2013-1-7 14:02:31 | 显示全部楼层

具体的规则怎么写?请指教,没有三层交换机,二层的交换机上没有办法起路由!
routeros
回复

使用道具 举报

 楼主| 发表于 2013-1-8 08:47:53 | 显示全部楼层
有人会吗?
routeros
回复

使用道具 举报

发表于 2013-1-8 10:11:34 | 显示全部楼层
/ip firewall filter
add action=drop chain=forward dst-address=192.168.0.0/16 src-address=\
    192.168.0.0/16
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 23:34 , Processed in 0.066336 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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