This article describes the methods for setting up static IP under Windows XP, Windows 7, and Windows 8 systems, and before setting this up, users need to know their network's default gateway address, DNS server address, which can be viewed on the router.
Step one: Get the default gateway and DNS server
@ Echo off
Rem ETH // set the NIC name, for example, "Local Connection"
Set Eth = "Local Connection"
Rem IP // set the IP address
Set IP = 10.11.12.163
Rem GW // set the Gateway
Set GW = 10.11.0000254
Rem netmasks // sets the subnet mask.
Set netmasks = 255.255.0.0
Rem dns1 // set the primary DNS
Set dns1 = 202.96.75.6
I tried to use php to obtain the real IP address. many codes on the Internet won't work, but ip138 can display my real ip address every time. Thank you for your support. For example, the IP address I obtained using the common php
8.1 Address Mapping
At the network level, hosts and routers are identified by their logical addresses (IP addresses). The logical address is unique globally.
At the physical level, hosts and routers are identified by local addresses. 8.1.1 Static Mappings
Map physical and logical addresses to a single table. Save to e
, Realize the communication between intranet and public network. When the connection is closed, the Nat Gateway frees the port assigned to the connection so that subsequent connections can continue to be used. Dynamic port mapping is actually how the Nat gateway works.Static port mapping: is to open a fixed port on the Nat gateway, and then set the data received by this port to be forwarded to the intranet which IP and port, whether or not connected,
WIN10 set local static IP method steps:
The first step: first in the Win10 right corner of the network icon, right-click the mouse, in the pop-up menu, click Enter ldquo; Open Network and Shared center rdquo, as shown.
Step two: After opening the network and Sharing Center, click on the network name that has been connected to the right, as shown.
Note: Small series is wireless network, if it is the loc
### upgrade the kernel
VI/etc/grub. conf ### modify default = 0. The new kernel is started by default.
Reboot ### restart to make the new kernel take effect
Uname-r ### check whether the kernel version is new
Yum install-y http://rdo.fedorapeople.org/rdo-release.rpm ### update rdo RepositoryVim/etc/yum. Repos. d/rdo-release.repo ### modify the file content as follows
[Openstack-Juno]Name = openstack Juno RepositoryBase url = http://repos.fedorapeople.org/repos/openstack/openstack-iceho
### upgrade the kernel
VI/etc/grub. conf ### modify default = 0. The new kernel is started by default.
Reboot ### restart to make the new kernel take effect
Uname-r ### check whether the kernel version is new
Yum install-y http://rdo.fedorapeople.org/rdo-release.rpm ### update rdo RepositoryVim/etc/yum. Repos. d/rdo-release.repo ### modify the file content as follows
[Openstack-Juno]Name = openstack Juno RepositoryBase url = http://repos.fedorapeople.org/repos/openstack/openstack-iceho
policy!
Ip rule add to 192.168.10.xxpref 10001 table NET10
If the destination IP address is 192.168.10.xx, the NET10 route table is used temporarily.
In this way, will there be security problems? If the route changes, will they access the private network?
No, because the routing rule is to 192.168.10.xx, that is, when the target is 96, the route is used. T
changes, will they access the private network?
No, because the routing rule is to 192.168.10.xx, that is, when the target is 96, the route is used. The original route is used to access other websites.
If you access a dedicated network machine, there will be only 10. xx.
Here, we can also do a trick to not tell others the address of 192.168.10.xx, but to tell them that the service exists on the gateway 192.168.1.1.
Iptables-t nat-a prerouting-d 192.16
IP address, DNS, gateway settings
[A]dns setting
Modify File vi/etc/resolv.confModify ContentNameServer 114.114.114.114NameServer 8.8.8.8
[Two]IP settings
Modify File: Vi/etc/sysconfig/network-scripts/ifcfg-eth0Modify ContentDevice=eth0 #描述网卡对应的设备别名, for example, Ifcfg-eth0 in a file that is eth0Bootproto=static #设
Now my retreat is coming to an end. According to the initial plan, I plan to spend about a month studying JavascriptCodeObfuscation. Later, as the engine of Google App Engine is being studied more and more deeply, and code obfuscation is more complicated than I thought, I canceled the plan to study code obfuscation, focus on website-related research.
This article introduces three Rest interface services that I implemented on Google App Engine:
1. query the service of administrative divisions
The CentOS virtual machine we installed in minimal is not directly connected to the Internet, and it needs to be configured with an IP address. There are two ways to configure IP, one is to use the DHCP service to dynamically obtain an IP address, and the other is to manuall
The Client IP address needs to be obtained in the project, and relevant information is searched on the Internet. Here I will summarize some of my usage.For future reference.Generally, we obtain the IP address through the following code:String IP = system. Web. httpcontext. C
address), which is internal to the local organization and can only be seen on local lans. The same 10.xxx.xxx.xxx, from 172.16.xxx.xxx to 172.31.xxx.xxx are private addresses, but also belong to the organization internal access;
169.254.xxx.xxx belongs to the connection local address (link locally IP) and is available in a separate network segment
From 2
Netsh interface ip dump> c: \ pc1.txt
This command is an interface IP Address Configuration that displays "Local Connection" of course, and is stored in the pc1.txt text file.
Check the file c: \ pc1.txt.
The IP configuration of the current "Local Connection" interface is displayed. We can use the command ipconfig/all
Java.util.StringTokenizer;
/**
* 4|4|4|4|4# Total record number |ip Offset | index Offset | data offset
* (4|4|2|2) * #起始IP | end ip| Country Index | Zone index
* (2|4) * #2位索引, 4-bit offset (pointing to the corresponding country|local start position) (countrynull|localnull) *
*
* @author Starfire
*
*/
public class Iptool {
Private String DataPath;
Private Ran
No details no *** get Client IP Address * @ paraminteger $ type return type 0 return IP address 1 return IPV4 address number * @ returnmixed * functionget_client_ip ($ type0) {$ type? 1:0; static $ ipNULL; if ($
MAC address of the VM Nic for the VMnet2 Internet Nic is: 00: 0C: 29: 3C: 78: 4B.
After the above configuration, we start to configure the eth0 and eth1 NICs of the VM, as shown below:
In this VM, The eth0 Nic is configured as an Internet IP address, corresponding to the VMnet0 Nic of VMWare, And the gateway is 192.168.3.1.
Eth1The Intranet
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.