Board logo

標題: 【RouterOS】—— Two routers and four network segments [打印本頁]

作者: 角色    時間: 2015-5-24 01:47     標題: 【RouterOS】—— Two routers and four network segments

本帖最後由 角色 於 2015-5-24 02:43 編輯

Please take a look at the following diagram.

The objectives of this example are
1. Both PCs can ping each other.
2. Both PCs can be able to access the Internet using hostname.

[attach]3549[/attach]

R1 settings

/ip address
  1. [admin@MikroTik] > ip address print
  2. Flags: X - disabled, I - invalid, D - dynamic
  3. #   ADDRESS            NETWORK         INTERFACE                             
  4. 0   192.168.1.1/24     192.168.1.0     ether1                                
  5. 1   192.168.2.1/24     192.168.2.0     ether2                                
  6. 2   10.0.81.102/24     10.0.81.0       ether5                                
複製代碼
/ip route
  1. [admin@MikroTik] > /ip route print
  2. Flags: X - disabled, A - active, D - dynamic,
  3. C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
  4. B - blackhole, U - unreachable, P - prohibit
  5. #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
  6. 0 A S  0.0.0.0/0                          10.0.81.101               1
  7. 1 ADC  10.0.81.0/24       10.0.81.102     ether5                    0
  8. 2 ADC  192.168.1.0/24     192.168.1.1     ether1                    0
  9. 3 ADC  192.168.2.0/24     192.168.2.1     ether2                    0
  10. 4 A S  192.168.3.0/24                     192.168.2.2               1
複製代碼
/ip dns
  1. [admin@MikroTik] > /ip dns print
  2.                 servers: 10.0.81.101
  3.         dynamic-servers:
  4.   allow-remote-requests: yes
  5.     max-udp-packet-size: 4096
  6.    query-server-timeout: 2s
  7.     query-total-timeout: 10s
  8.              cache-size: 2048KiB
  9.           cache-max-ttl: 1w
  10.              cache-used: 156KiB
複製代碼
.
.
R2 settings

/ip address
  1. [admin@MikroTik] > /ip address print
  2. Flags: X - disabled, I - invalid, D - dynamic
  3. #   ADDRESS            NETWORK         INTERFACE                       
  4. 0   192.168.2.2/24     192.168.2.0     ether1                          
  5. 1   192.168.3.1/24     192.168.3.0     ether2                          
複製代碼
/ip route
  1. [admin@MikroTik] > /ip route print
  2. Flags: X - disabled, A - active, D - dynamic,
  3. C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
  4. B - blackhole, U - unreachable, P - prohibit
  5. #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
  6. 0 A S  0.0.0.0/0                          192.168.2.1               1
  7. 1 A S  10.0.81.0/24                       192.168.2.1               1
  8. 2 A S  192.168.1.0/24                     192.168.2.1               1
  9. 3 ADC  192.168.2.0/24     192.168.2.2     ether1                    0
  10. 4 ADC  192.168.3.0/24     192.168.3.1     ether2                    0
複製代碼
/ip dns
  1. [admin@MikroTik] > /ip dns print
  2.                 servers: 192.168.2.1
  3.         dynamic-servers:
  4.   allow-remote-requests: yes
  5.     max-udp-packet-size: 4096
  6.    query-server-timeout: 2s
  7.     query-total-timeout: 10s
  8.              cache-size: 2048KiB
  9.           cache-max-ttl: 1w
  10.              cache-used: 135KiB
複製代碼





歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2