Detailed setting method of RouterOS

Source: Internet
Author: User
Tags routeros winbox
Article Title: Detailed setting method of RouterOS. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The routeos version that can be used now is only 2.7.14, because there is only a number generator, and the new version of 2.8 is not available due to algorithm changes.

Routeos released versions include the optical disk version and the floppy disk version (9). However, these disks cannot be read normally under vmware or vpc, so when I introduce the installation process, I only need to use the text method.

First, make the downloaded CD image or the installation floppy disk into a disk, set the boot sequence in cmos, and start from the CD or floppy disk. The first step of installation will let you select the components to be installed, select and start installation by I, and then press y all the way to complete.

After the installation is complete, the first entry requires entering the registration code. Then, you can use the number generator and enter the machine code in the column above the number generator to get the registration code (note that the input is case sensitive ). The default account for the first entry is admin and the password is blank.

Basic settings: (I will describe via telnet and the winbox that comes with the route)

1. Set the NIC (this step must be performed on the local machine. If the ip address is not set, tools such as telnet cannot be used)

Enter set to set the network card, and enter the network card name in the enable interface line (for the first time, you can use ether1 or eth2-to represent the first and second network cards ); in the ip address line, enter the ip address of the NIC (multiple ip addresses can be bound to one Nic). In the netmask line, enter the subnet mask.

Routeos is powerful in that it can use multiple NICs and can freely specify these NICs as different network segments (whether on the Internet or Intranet)

After all NICs are set, you can use telnet to log on to the route, or you can use http: // Route ip to access the route, A tool named winbox is provided on the webpage of this route. You can use this tool to access the route.

Winbox format

Routeos with the ip address of the NIC still does not allow machines on the LAN to access the Internet. ip spoofing must be set for machines on the LAN to access the Internet.

To set ip spoofing, use the following sentence:/ip firewall src-nat add action masquerade/ip firewall mangle add protocol tcp-options syn-only tcp-mss 1448

Use the following statement to configure a route:/ip route add dst 0.0.0.0/0 gat public network gateway ip configuration adsl line use the following statement:/interface pppoe-client add name arbitrary service server name (random) user name password interface bound Nic name use-peer-dns yes mtu 1492 mru 1492

Routeos can use very powerful functions, but I will not use much. Here I will briefly introduce the basic usage methods and hope that interested netizens can explore the potential of this Dongdong.

If I leave it blank in a few days, I will download the above software.

RouterOS port ing is simple.

In the ip/firewall/dst-nat of the terminal, for example, I want to map port 80 to 192.168.0.100, and the Internet address is 218.26.x.x (Suppose)

Enter add action = nat protocol = tcp dst-address = 218.26.x.x/32: 80 to-dst-address = 192.168.0.100. Note that when performing nat, the subnet mask of dst-address must be 32, that is, 255.255.255.255. Otherwise, it will not work. Many of our friends may have problems here.

Related Article

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.