Ros Soft Routing: DHCP Server configuration and PPPoE client configuration

Source: Internet
Author: User

Let's do a simple experiment on Ros today, in a typical dozens of-person small company or a few people's home, if you come to how Ros do the most basic internet operation.


Knowledge Points:

    1. Ros as a DHCP Server for the intranet.

    2. Ros as the client of PPPoE (the average person rarely uses ADSL access)

    3. Ros makes a pat so that intranet users can surf the Internet.


The topology diagram is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/A0/wKiom1YCY-zRO1sKAAGlvUoLYzU474.jpg "title=" Ros basic applications. png "alt=" wkiom1ycy-zro1skaaglvuolyzu474.jpg "/>

In the topology diagram above, a Cisco emulator was used to simulate PPPoE servers, and Ros and WinXP were installed in the VMware Workstation virtual machines. The reader will be able to complete this experiment with only a single computer.


PPPoE Server configuration:

On the principle of PPPoE and can see the author of another blog post http://senyang.blog.51cto.com/3427514/1680155


For the convenience of the reader, the following configuration is directly copied and pasted into the Cisco emulator.

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 addr ESS 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:

[Email protected]] IP dhcp-server> setupselect interface to run DHCP server ONDHCP server Interface:ether3select network for DHCP address  ESDHCP 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 the DHCP serveraddresses to give Out:192.168.1.2-192.168.2.254select DNS Serversdns servers:192.168. 1.1Select lease Timelease Time:3d[[email protected]] IP dhcp-server>


Viewed on WinXP, the IP address has been obtained.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/A1/wKiom1YCZ0fBcVlfAAE_4BVFl5w666.jpg "title=" 1.png " alt= "Wkiom1ycz0fbcvlfaae_4bvfl5w666.jpg"/>

Configure Ros for the client of PPPoE:

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

View IP Address:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/9E/wKioL1YCaY3xEAeLAADjJ9n5wok509.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1ycay3xeaelaadjj9n5wok509.jpg "/>

View routes, with a default route

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/A1/wKiom1YCaYzTiEiHAAEFZWvsCYk089.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1ycayztieihaaefzwvscyk089.jpg "/>


To configure NAT:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/9E/wKioL1YCaveisk4iAAD0yAA5TBE792.jpg "title=" 4.png " alt= "Wkiol1ycaveisk4iaad0yaa5tbe792.jpg"/>


Before NAT is configured, WinXP cannot ping the 1.1.1.1 on the public network, after the configuration, you can ping pass, the experiment was successful.

The keyword "Masquerade" Here is Pat, which translates multiple IP addresses into an IP address.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/9E/wKioL1YCa3LQB-jvAAFpivToumc096.jpg "title=" 5.png " alt= "Wkiol1yca3lqb-jvaafpivtoumc096.jpg"/>

More about the configuration of Ros, I will slowly introduce, I will work with you to learn this fine classic soft route.

This article is from "Yang Sen's It Road" blog, please be sure to keep this source http://senyang.blog.51cto.com/3427514/1697531

Ros Soft Routing: DHCP Server configuration and PPPoE client configuration

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.