In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.