Background: Because notebook configurations are low, if you install an oracle on your laptop it can affect your computer's performance, but you want to be able to program it in a notebook that you can take with you. So, I used VMware to install two virtual machine servers on my home-provisioned desktops, Windows Server 2012 systems and CENTOS6 systems, and I installed the Oracle database on Windows Server 2012. Tomcat is installed on CentOS as a Web server.
Requirement: The extranet accesses its own home desktop database service through a domain name.
Steps:
1. First, I need a router that supports DDNS dynamic domain name resolution, and I find that my Xiaomi Mini router supports this feature
to find it supports peanut shells, Gang Yun and other service providers.
2. Then the next step is to go to any domain Name Service provider official website to register a domain name come on. In fact, I used to buy a. com domain name on the Internet, unfortunately the router does not support the service of the Million network, had to go to the peanut shell re-register a domain name used first. Came to the Peanut Shell official website, found. PW's domain name is engaged in activities, the first year only need 2RMB to be able to register.
3. After successful registration, enter the domain name Management Center, add a new in the Peanut Shell
tab, add a prefix to the WWW, then point to the right of the new, and then click on the peanut shell, you can add the domain name of peanut shell dynamic Domain name resolution.
4. After the successful domain name registration, we return to the router management, enter the common settings, set up the Internet mode for PPPoE dial-up Internet (note!) If your home is light brazing, there is a light cat in front of the router, the default light cat is using the route mode, because the light cat does not have DDNS function, so it has to be changed to bridge mode, and then use their own millet router to dial the Internet to carry out the following steps, but there is a pit, That is, telecommunications do not allow us to change the light of the cat's settings, if you want to change into a bridge, you need to call customer service phone, let them give you the data to change the way to bridge, the result of the change is changed over a period of time may find the network dropped (/-\))
5. Then go back to the DDNS to complete the information, as follows:
At this point our DDNS configuration is basically successful.
6. Then do the lower port forwarding even if you are done.
in the advanced settings of the router, click Port Forwarding. Configure Port forwarding We need to know the IP address and port of the host before I created two virtual machines on my own physical host. The IP address of the physical host is 192.168.31.200, the virtual machine uses the bridge mode, sets the static IP to 192.168.31.202 and 192.168.31.212 respectively (in order to prevent the IP change, it is best to set the IP to static, so as not to change the dynamic IP after the port forwarding failure)
All the steps are complete and you can now try to access your host through the domain name on the external network.
In this build process has occurred in a small episode, is the router often dropped, let me think it is router bad (/-\), but also to the Millet Forum Spit Groove said router has a problem, alas ~ ~ ~ here to Millet Kfz apologized, I was wrong you (/-\) ...
This is the case, my home is the telecommunications 20M fiber, direct and light cat, the Internet is normal, but as long as the middle in the router, sometimes at the beginning is good, but after a while all the equipment at home can not be online, and then a time suddenly connected to the ... Obviously the problem can only be found on the router, tried n methods, restore the factory settings, brush the firmware, call the Telecom Customer Service (/-\) .... But there was no egg to use until one time I noticed that it seemed like every time I started that Linux virtual machine, it would drop, but it was strange to start another Windows The server was fine. At this time I seem to know something, the culprit may be this virtual machine. What will be the factors that will affect the Router? We know that the virtual machine's MAC address is also virtual out, there is a very small probability I hit, that is the MAC address of this virtual machine and the MAC address of the router!! The solution is also very simple, modify the MAC address of this virtual machine is good.
The end!
Documenting the process of building DDNS