An example of IP address translation using a Cisco Router

Source: Internet
Author: User
At present, the computer network of the national statistical system must access the Internet through the exit of the National Bureau of Statistics from the Chinese Emy of sciences. This requires the legal Internet address allocated by the Chinese Emy of Sciences 210. x. x. x, while the IP address used inside the statistics system is 11. x. x. X ., in this way, the following main problems will occur: 1. 210 address resources allocated by each Provincial Bureau of Statistics

At present, the computer network of the national statistical system must access the Internet through the exit of the National Bureau of Statistics from the Chinese Emy of sciences. This requires the legal Internet address allocated by the Chinese Emy of Sciences 210. x. x. x, while the IP address used inside the statistics system is 11. x. x. X ., in this way, the following main problems will occur: 1. 210 address resources allocated by each Provincial Bureau of Statistics

At present, the computer network of the national statistical system must access the Internet from the exit of the Chinese Emy of sciences through the National Bureau of Statistics. Address210. X, and the IP address used inside the statistics system AddressIt is 11. X. This will cause the following problems:

1. 210 allocated by each Provincial Bureau of Statistics AddressResources are very limited and cannot meet Internet access requirements.

2. 210 AddressIs Internet legal AddressTherefore, configure 210 AddressIs vulnerable to attacks by Internet users.

To solve these problems, we consider using Cisco7206 VroInternal Address11. X to the Internet is valid AddressBetween 210. X TranslationThe program is as follows:

1 interface Ethernet0/0

2 ip address

11.35.181.1 55.20.240.0

3 no ip directed?

Broadcast

4 ip nat inside

5!

6 interface Serial0/0.1 point? To? Point

7 ip address 210.72.49.1

255.255.255.252 secondary

8 ip address 11.35.1.38 255.255.255.252

9 no ip directed? Broadcast

10 ip nat outside

11!

12 router VPN 130

13 passive? Interface Ethernet0/0

14 network 11.0.0.0

15 network 210.72.49.0

16!

17 ip nat pool 163net 210.72.49.17

210.72.49.30 netmask 255.255.255.255.240

18 ip nat inside source list 100 pool 163net

Overload

19 ip classless

20!

21 access? List 100 deny ip any 11.0.0.0

0.20.0000255

22 access? List 100 permit ip any

23!

24 end

In the above configuration, there are two points to be explained:

1. IP addresses in lines 7th and 17 Address210.72.49.1, 210.72.49.17 ~ 210.72.49.30 is the Internet allocated to the Provincial Bureau of Statistics. Address.

2. because the National Bureau of Statistics Intranet (11. x. x. x) and Internet (210. x. x. x) The firewall is used for isolation. Therefore, you need to configure 21st rows to enable the provincial/municipal bureau to configure 11. x. x. X AddressCan access both the National Bureau of Statistics Intranet and the Internet. Otherwise, you can only access the Internet but not the Intranet of the National Bureau of Statistics.

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.