Nat forwarding Instance (ii)

Source: Internet
Author: User

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/35/wKioL1gMlRWhk0v7AAB-C_sR3F4306.png "title=" 1-2. PNG "alt=" Wkiol1gmlrwhk0v7aab-c_sr3f4306.png "/>

As shown in the following:

We need to have two PCs in the intranet able to access the PC2 of the extranet.

But because the extranet also has a router

So we need that PC on the outside network (PC2)

Add a gateway (the gateway address is the address connected to the router)

The specific configuration is as follows


The configuration of the ROUTER5 is as follows:

router>en

router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with cntl/z.

Router (config) # inF0/1

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface FASTETHERNET0/1, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed

Router (config-if) #IP add 192.168.1.254 255.255.255.0

Router (config-if) #IP nat inside

Router (config-if) #e

Router (config) # inf0/0

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface fastethernet0/0, CHANGED state-to-up

Router (config-if) #IP add 135.12.45.20 255.255.255.0

Router (config-if) #IP nat outside

Router (config) #IP route 0.0.0.0 0.0.0.0 f0/0

Router (config) #IP nat inside source static 192.168.1.1 135.12.45.20

Router (config) #IP nat inside source static 192.168.1.2 135.12.45.20

Router (config) #end

router#

%sys-5-config_i:configured from console by console

W

Building configuration ...

[OK]

router#

%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed

router#

The ROUTER6 configuration file is as follows:

router>en

router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with cntl/z.

Router (config) # inF0/1

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface FASTETHERNET0/1, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed

Router (config-if) #IP add 135.12.45.24 255.255.255.0

Router (config-if) #e

Router (config) # inf0/0

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface fastethernet0/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed

Router (config-if) #IP add 138.67.77.10 255.255.255.0

Router (config-if) #e

Router (config) #IP route 192.168.0.0 255.255.0.0 F0/1

Router (config) #end

router#

%sys-5-config_i:configured from console by console

router#W

Building configuration ...

[OK]

router#


Instance point I download

This article is from the "Jimmy-hu" blog, make sure to keep this source http://jimmy1688.blog.51cto.com/12174375/1864771

Nat forwarding Instance (ii)

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.