Get the App
SLTechnology News&Howtos  ›  Network Security  › 

ROS soft routing: DHCP Server configuration and PPPoE client configuration

Shulou Source: shulou.com Published: 2022-06-01 03:11:46 10月05日 Update

Today, let's first do a simple experiment of ROS, in the average small company of dozens of people or the homes of several people, how to ROS to do the most basic Internet operations.

Knowledge points:

ROS is used as the DHCP Server of intranet.

ROS acts as the Client of PPPOE (ADSL access is rarely used by ordinary people)

ROS makes a PAT so that intranet users can surf the Internet.

The topology diagram is as follows:

In the above topology diagram, a Cisco simulator is used to simulate the server of PPPoE, and ROS and WinXP are installed in the Vmware Workstation virtual machine respectively. Readers only need a computer to complete this experiment.

PPPoE Server configuration:

About the principle of PPPoE and can refer to the author's other blog article http://senyang.blog.51cto.com/3427514/1680155

For the convenience of readers, the following configuration can be copied and pasted directly into the Cisco Simulator.

Enconf thost ISPint lo 0ip add 1.1.1.1 255.255.255.0int f0/0no ip addno shutpppoe enableip local pool ippool 23.1.1.100 23.1.1.200bba-group pppoe global virtual-template 1exit int virtual-template 1ip unnumbered loopback 0peer default ip address pool ippoolppp authentication papexitusername user1 password cisco

Basic ROS configuration:

Ip address add address=192.168.1.1/24 interface=ether3

ROS DHCP Server configuration:

Admin@MikroTik] ip dhcp-server > setupSelect interface to run DHCP server ondhcp server interface: ether3Select network for DHCP addressesdhcp address space: 192.168.1.0/24Select gateway for given networkgateway for dhcp network: 192.168.1.1Select pool of ip addresses given out by DHCP serveraddresses to give out: 192.168.1.2-192.168.2.254Select DNS serversdns servers: 192.168.1.1Select lease timelease time: 3D [admin@MikroTik] ip dhcp-server >

Check on WinXP and you've got the IP address.

Configure Client with a ROS of PPPoE:

Interface pppoe-client add interface=ether3 user=user1 password=cisco add-default-=route=yes use-peer-dns=yes disable=no

View the IP address:

Look at the route, there is a default route

Configure NAT:

Before NAT is configured, WinXP cannot ping 1.1.1.1 on the public network. After configuration, it can ping. The experiment is successful.

The keyword "masquerade" here is PAT, which translates multiple IP addresses into a single IP address.

More about the configuration of ROS, the author will slowly introduce, I will work with you to learn this classic soft routing.

Tags: Configuration address routing author Lab Topology Topology Diagram Simulator Reader Cisco success individual Company key keyword principle basic configuration multiple that is come on Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information macOS Linux vpn