ROS basic setup wizard 4

Source: Internet
Author: User
Article Title: ROS basic setup wizard 4. Linux is a technology channel of the IT lab in China. Includes desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification/ping command Work methods:
[Admin @ MikroTik] ip route>/ping 10.0.0.4
10.0.0.4 64 byte ping: ttl = 255 time = 7 MS
10.0.0.4 64 byte ping: ttl = 255 time = 5 MS
10.0.0.4 64 byte ping: ttl = 255 time = 5 MS
3 packets transmitted, 3 packets received, 0% packet loss
Round-trip min/avg/max = 5/5. 6/7 MS
[Admin @ MikroTik] ip route>
[Admin @ MikroTik] ip route>/ping 192.168.0.1
192.168.0.1 64 byte ping: ttl = 255 time = 1 MS
192.168.0.1 64 byte ping: ttl = 255 time = 1 MS
192.168.0.1 64 byte ping: ttl = 255 time = 1 MS
3 packets transmitted, 3 packets received, 0% packet loss
Round-trip min/avg/max = 1/1. 0/1 MS
[Admin @ MikroTik] ip route>
This workstation and laptop can ping a vro with the local address 192.168.0.254, if the router address 192.168.0.254 is used as the default gateway, it must be specified in the TCP/IP configuration of this workstation and laptop.
When you ping this vro:
C :\> ping 192.168.0.254
Reply from 192.168.0.254: bytes = 32 time = 10 ms TTL = 253
Reply from 192.168.0.254: bytes = 32 time <10 ms TTL = 253
Reply from 192.168.0.254: bytes = 32 time <10 ms TTL = 253
C :\> ping 10.0.0.217
Reply from 10.0.0.217: bytes = 32 time = 10 ms TTL = 253
Reply from 10.0.0.217: bytes = 32 time <10 ms TTL = 253
Reply from 10.0.0.217: bytes = 32 time <10 ms TTL = 253
C :\> ping 10.0.0.4
Request timed out.
Request timed out.
Request timed out.
Note:
You cannot connect to a remote router (network 10.0.0.0/24 and the Internet ),
Unless you do one of the following:
? Use the MikroTik router to translate your private LAN 192.168.0.0/24 (see the following description) \ 'hide \ 'into the source network address, or
? Add a static route on the ISP \'s gateway 10.0.0.1. the gateway of the specified network host 192.168.0.0/24 is 10.0.0.217. then, all hosts on the ISP, including servers, can be connected to the hosts in the LAN.
To create a route, you must know more about TCP/IP network configuration. If you have difficulties in configuring your network plan Http://www.private.org.il/tcpip_rl.html. A wide range of IP resources are compiled by Uri Raz. We strongly support you to gain more knowledge ,.
Advanced Configuration jobs
Description
The next scenario we will discuss is to use an ISP address 10.0.0.217. \ 'hiding \ 'private LAN 192.168.0.0/24 \ 'behind \'.
Application Instance with Masquerading
If you want to use the IP address 10.0.0.217. \ 'hiding \ 'private LAN 192.168.0.0/24 \ 'behind \ ', you should use the Source Network Address Translation (masquerading) feature of the MikroTik router. if all the requests on the ISP network come from the host 10.0.0.217 when you access the ISP network and the Internet, it is useful to impersonate. when a packet passes through the network 192.168.0.0/24 to the 10.0.0.217 vro, The impersonate changes the source IP address and port of the packet. disguise the number of global IP addresses required for conversion and it connects the entire network to the world's network using a single IP address. to use impersonating, you must add a source NAT rule to the firewall for both activation and activation.
Configuration:
[Admin @ MikroTik] ip firewall src-nat> add action = masquerade out-interface = Public
[Admin @ MikroTik] ip firewall src-nat> print
Flags: X-disabled, I-invalid, D-dynamic
0 out-interface = Public action = masquerade src-address = 192.168.0.0/24
[Admin @ MikroTik] ip firewall src-nat>
Note:
For more information about using impersonations, see Network Address Translation.

Bandwidth management instance
If you want to limit the bandwidth of all hosts in the LAN to kbps for uploading
The bandwidth limit is used securely in the output interface queue in your traffic control.
It can add a sufficient queue to your MikroTik router.
[Admin @ MikroTik] queue simple> add max-limit = 64000/128000 interface = Local
[Admin @ MikroTik] queue simple> print
Flags: X-disabled, I-invalid, D-dynamic
0 name = "queue1" target-address = 0.0.0.0/0 dst-address = 0.0.0.0/0
Interface = Local queue = default priority = 8 limit-at = 0/0
Max-limit = 64000/128000
[Admin @ MikroTik] queue simple>
As an additional parameter from the default value. When the limit is reached, the value of the local network is approximately 128 kbps (download) and the value of the 64 kbps (upload) to the guest network ).
NAT application instance
Suppose we move our servers from a public network to a local network in our private instance:
The address of this server is 192.168.0.4, and we run the web server to listen to port 80 of this TCP. We need to obtain an accessible Internet address and port 10.0.0.217: 80.
In the MikroTik router, he can use this method to translate network addresses (NAT ). the Public address 10.0.0.217: 80 can be translated into the Local address 192.168.0.4: 80. Any destination NAT rule must be translated into the destination address and port:
[Admin @ MikroTik] ip firewall dst-nat> add action = nat protocol = tcp \\
Dst-address = 10.0.0.217/32: 80 to-dst-address = 192.168.0.4
[Admin @ MikroTik] ip firewall dst-nat> print
Flags: X-disabled, I-invalid, D-dynamic
0 dst-address = 10.0.0.217/32: 80 protocol = tcp action = nat
To-dst-address = 192.168.0.4
[Admin @ MikroTik] ip firewall dst-nat>
Note:
For more information about Network Address Translation, see Network Address Translation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.