Configuration of accessing INTERNET resources directly through a router
Summary:1. Overall idea and device connection methodIn general, the internal LAN of the unit uses reserved addresses on the Internet:10.0.0.0/8:10.0.0.0~10.25…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
1. Overall idea and device connection method
In general, the internal LAN of the unit uses reserved addresses on the Internet:
10.0.0.0/8:10.0.0.0~10.255.255.255
172.16.0.0/12:172.16.0.0~172.31.255.255
192.168.0.0/16:192.168.0.0~192.168.255.255
Under normal circumstances, when the internal workstation of the company directly uses the route to access the outside, it will be filtered out by the router because the workstation uses the reserved address on the Internet, which will result in the inability to access Internet resources. The solution to this problem is to use the NAT (Network Address Translation) address translation function provided by the routing operating system to convert the private address of the intranet into a legal address on the Internet, so that users without a legal IP address can access the external Internet through NAT. The benefits of doing so are that there is no need to equip a proxy server, reducing investment, saving legitimate IP addresses, and improving the security of the internal network.
There are two types of NAT: Single mode and Global mode.
Using NAT's single mode, as its name suggests, can map numerous local LAN hosts to a single Internet address. All hosts within the local area network are considered as Internet users to the external Internet network. Hosts within the local area network continue to use local addresses.
Using NAT's global mode, the router's interface maps numerous local LAN hosts to a certain range of Internet addresses (IP address pool). When a local host port connects to a host on the Internet, an IP address in the IP address pool is automatically assigned to the local host. After the connection is interrupted, the dynamically assigned IP address will be released, and the released IP address can be used by other local hosts.
Taking our company's network environment as an example, the configuration method and process are listed below for your reference.
Our unit uses China Unicom fiber optic cable (V.35) to access the Internet. The router is CISCO2610, and the LAN uses INTEL550 100Mbps switch. China Unicom has provided us with the following four IP addresses:
211.90.137.25 (255.255.255.252) Wide area network port for local router
211.90.137.26 (255.255.255.252) is used for the port of the other party (China Unicom)
211.90.139.41 (255.255.255.252) for personal control
211.90.139.42 (255.255.255.252) for personal control
2. Router configuration
en
config t
ip nat pool c2610 211.90.139.41 211.90.139.42 netmask 255.255.255.252
(Define an address pool c2601, which contains two free valid IP addresses for use in NAT translation)
int e0/0
ip address 192.168.0.3 255.255.255.0
ip nat inside
exit
(Set the IP address of the Ethernet port and designate it as the port for connecting to the internal network)
interface s0/0
ip address 211.90.137.25 255.255.255.252
ip nat outside
exit
(Set the IP address of the wide area network port and designate it as the port for connecting to the external network)
ip route 0.0.0.0 0.0.0.0 211.90.137.26
(Set dynamic routing)
access-list 2 permit 192.168.0.1 0.0.0.255
(Establish Access Control List)
! Dynamic NAT
!
ip nat inside source list 2 pool c2610 overload
(Establish dynamic address translation)
line console 0
exec-timeout 0 0
!
line vty 0 4
end
wr
(Save the settings made)
3. Workstation configuration
Require the use of a static IP address, set it in TCP/IP properties, and set the gateway to 192.168.0.3 (router Ethernet IP address), set DNS to the address provided by the access provider, and do not require any special settings in internet tools such as browsers.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

