650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/7E/E5/wKioL1cMkVrg-mFyAAD7DRRDcEs940.png "height=" 532 "/>
One or one-way fiber multiple public IP settings
Company 192.168.1.0/24 subnet for server cluster, 192.168.0.0/24 subnet for office subnets, two subnets physically not in one piece.
When the company opened, applied for telecom 40Mbps optical fiber, 5 IP address, Gateway: *.168.112.9 255.255.255.248, address block: *.168.112.10-14, the telecommunications company sent a light cat, a router, 5 public IP is bound together, Now you need to set up the public IP in the router, convenient for the server to post information, the method has two:
1, from the router sent by the telecommunications cable to the h3c-msr930 router, such as plug-in h3c-msr930 router G0, G1, G2 port, each port set a public IP, and then set the routing policy, you can use multiple public IP, but this method is troublesome.
2, because the h3c-msr930 router is a gigabit router, and only 5 ports, the resources are very valuable, so decided to send a router from the telecom only pull a cable into the h3c-msr930 G0 port, using sub-interface, the public network is set in this G0 port, so the router setup also easy Ah, Settings are as follows:
Interface Vlan-interface1
IP address 192.168.0.1 255.255.255.0
DHCP server apply Ip-pool Vlan1
#
Interface Vlan-interface2
IP address 192.168.1.1 255.255.255.0
#
Interface gigabitethernet0/0
Port Link-mode Route
Nat Outbound 2000
IP Address *.168.112.10 255.255.255.248
IP Address *.168.112.11 255.255.255.248 Sub
IP Address *.168.112.12 255.255.255.248 Sub
IP Address *.168.112.13 255.255.255.248 Sub
IP address *.168.112.14 255.255.255.248 sub
DDNS Apply Policy 9xiang.picp.net
DNS Server 202.96.209.133
DNS Server 202.96.209.5
#
Interface GIGABITETHERNET0/1
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/2
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/3
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/4
Port Link-mode Bridge
Port Link-type Trunk
Port Trunk Permit VLAN All
#
IP route-static 0.0.0.0 0.0.0.0 gigabitethernet0/0 *.168.112.9
(Note: The real address is hidden under the * number, the reason we know, mainly red character set)
Second, intranet server map to public network access
Software companies to do software products, to publish to the outside of the network testing, use, only need to do a NAT translation on the export line, the following on the router's exit configuration Nat.
#
Interface gigabitethernet0/0
Port Link-mode Route
Nat Outbound 2000
NAT Server Protocol TCP global *.168.112.11 8088 inside 192.168.1.1 8088
NAT server Protocol TCP global *.168.112.11 8888 inside 192.168.1.170 8181
NAT server Protocol TCP global *.168.112.10 8888 inside 192.168.1.168 8080
NAT server Protocol TCP global *.168.112.11 8181 inside 192.168.0.56 8181
NAT server Protocol TCP global *.168.112.11 18080 inside 192.168.0.36 8080
NAT server Protocol TCP global *.168.112.11 www inside 192.168.1.197 8080
IP address *.168.112.10 255.255.255.248
IP Address *.168.112.11 255.255.255.248 Sub
IP Address *.168.112.12 255.255.255.248 Sub
IP Address *.168.112.13 255.255.255.248 Sub
IP Address *.168.112.14 255.255.255.248 Sub
DDNS Apply Policy 9xiang.picp.net
DNS Server 202.96.209.133
DNS Server 202.96.209.5
#
Third, intranet through the public address to access internal server
Now after the intranet server is published to the outside network, the extranet is a normal access to the company's server, but the problem is published to the outside, such as the use of the browser on the network outside the company access to http://*.168.112.11:8888 is normal access, But the company intranet 192.168.0.0/24 office network segment Access this http://*.168.112.11:8888 can not access. The problem is on the router, originally, such as IP is 192.168.0.50 's computer issued an access http://*.168.112.11:8888 instruction, the target address specified in the TCP protocol is *. 168.112.11:8888, the source address is 192.168.0.50,h3c-msr930 router in the NAT address Table A match, found *.168.112.11:8888 corresponding IP is 192.168.1.170 : 8181, the request is forwarded to the 192.168.1.170:8181 server, the 192.168.1.170:8181 server responds to the request, Give the source address 192.168.0.50 give the desired response, when the response message is packaged into the destination address is 192.168.0.50, the source address is 192.168.1.170 : 8181 sent to the target host 192.168.0.50, but 192.168.0.50 received this response package, to unlock a look, the source address is 192.168.1.170:8181 sent the package, TM I was to *.168.112.11:8888 sent a request, 192.168.1.170:8181 is which two goods ah, so the router decisively put this bag as garbage discarded, Bitter 192.168.0.50 on the browser, but also in the bitter Baba's response, waiting for a half-day did not respond, had to show the future a dark, nothing, this is in the intranet through the public address access to internal server common fault, the solution is to build a NAT conversion table on the intranet VLAN1, so that the response server 192.168.1 .170:8,181 to the target host 192.168.0.50 information is re-blocked in the router to the destination address is 192.168.0.50, the source address is *. 168.112.11:8888, will not be the IP is 192.168.0.50 computer to lose the package, the following settings:
#
Interface Vlan-interface1
IP address 192.168.0.1 255.255.255.0
DHCP server apply Ip-pool Vlan1
NAT Server Protocol TCP global *.168.112.11 8888 inside 192.168.1.170 8181
NAT server Protocol TCP global *.168.112.11 8181 inside 192.168.0.56 8181
NAT server Protocol TCP global *.168.112.11 9090 inside 192.168.1.197 8080
NAT server Protocol TCP global *.168.112.10 8888 inside 192.168.1.168 8080
NAT server Protocol TCP global *.168.112.11 18080 inside 192.168.0.36 8080
NAT server Protocol TCP global *.168.112.11 www inside 192.168.1.197 8080
#
Interface Vlan-interface2
IP address 192.168.1.1 255.255.255.0
#
Interface gigabitethernet0/0
Port Link-mode Route
Nat Outbound 2000
NAT server Protocol TCP global *.168.112.11 8088 inside 192.168.1.1 8088
NAT server Protocol TCP global *.168.112.11 8888 inside 192.168.1.170 8181
NAT server Protocol TCP global *.168.112.10 8888 inside 192.168.1.168 8080
NAT server Protocol TCP global *.168.112.11 8181 inside 192.168.0.56 8181
NAT server Protocol TCP global *.168.112.11 18080 inside 192.168.0.36 8080
NAT server Protocol TCP global *.168.112.11 www inside 192.168.1.197 8080
IP address *.168.112.10 255.255.255.248
IP Address *.168.112.11 255.255.255.248 Sub
DDNS Apply Policy 9xiang.picp.net
DNS Server 202.96.209.133
DNS Server 202.96.209.5
#
Interface GIGABITETHERNET0/1
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/2
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/3
Port Link-mode Bridge
Port Access VLAN 2
#
Interface GIGABITETHERNET0/4
Port Link-mode Bridge
Port Link-type Trunk
Port Trunk Permit VLAN All
#
IP route-static 0.0.0.0 0.0.0.0 gigabitethernet0/0 *.168.112.9
Iv. VPN to the company Home Office
There are many resources on the company's servers and Nas, at home to access the company's internal resources, it is best to establish a L2TP VPN, so at home after a pull, and in the same company, all the resource address is directly open, to achieve this function, need to be configured on the router and computer, first, Router-side:
1, set up to L2TP VPN login user Pppvpn, password: [Email protected]#$
#
Local-user Admin
Password cipher $c $3$3l/gdc59tw4jjl61545454lbskbluvhut5wq3
Authorization-attribute Level 3
Service-type Telnet
Service-type Web
Local-user Pppvpn
password cipher [email protected]#$
Service-type PPP
#
2. Assign IP address pool 1 for VPN users who are logged in.
#
Domain system
Access-limit Disable
State Active
Idle-cut Disable
Self-service-url Disable
IP Pool 1 192.168.2.10 192.168.2.20
#
3, the establishment of VPN closed mode and virtual interface, access to the VPN gateway is 192.168.2.1
#
L2tp-group 1
Undo Tunnel Authentication
Allow L2TP virtual-template 0
#
Interface Aux0
Async Mode Flow
Link-protocol PPP
#
Interface cellular0/0
Async Mode Protocol
Link-protocol PPP
TCP MSS 1024
#
Interface Virtual-template0
PPP Authentication-mode CHAP domain system
Remote Address Pool 1
IP address 192.168.2.1 255.255.255.0
#
4, computer-side settings (WIN10)
4.1 Increased VPN (open network connection or network settings)
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A37% 3a10.png?version=1&modificationdate=1448469453000&api=v2 "alt=" Image2015-11-26%200%3a37%3a10.png?versio "/>
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A37% 3a35.png?version=1&modificationdate=1448469478000&api=v2 "alt=" Image2015-11-26%200%3a37%3a35.png?versio "/>
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/7E/E5/wKioL1cMkVvCH7JvAAFMLs21A0M639.png "height=" 595 "/>
The connection name can be written by itself, and the server IP address is filled in as: *.168.112.10
Flip down as follows:
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/7E/E5/wKioL1cMkVyBIx7KAACV1BbY04k235.png "height=" 433 "/>
4.2. Turn on "Change adapter Options" or open network connection
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A38% 3a6.png?version=1&modificationdate=1448469510000&api=v2 "alt=" Image2015-11-26%200%3a38%3a6.png?version " />
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A38% 3a22.png?version=1&modificationdate=1448469526000&api=v2 "alt=" Image2015-11-26%200%3a38%3a22.png?versio "/>
Modify the settings as follows and determine.
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A38% 3a41.png?version=1&modificationdate=1448469544000&api=v2 "alt=" Image2015-11-26%200%3a38%3a41.png?versio "/>
4.3. VPN connection
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A38% 3a54.png?version=1&modificationdate=1448469558000&api=v2 "alt=" Image2015-11-26%200%3a38%3a54.png?versio "/>
650) this.width=650; "Src=" http://192.168.1.195:8090/download/attachments/1703964/image2015-11-26%200%3A39% 3a3.png?version=1&modificationdate=1448469566000&api=v2 "alt=" Image2015-11-26%200%3a39%3a3.png?version " />+
Software company Development Network Environment Construction