Go to computer A and share its internet connection with B by typing the two commands :.Now that we have a connection from A to B, we can tell A to share internet connection with B. If we type route on B, we should have something similar to :ĭefault 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 Now we have to tell B that we want to use the card eth0 from A (labeled 192.168.0.1) for everything :.Then from the machine B, we test if we can reach A: # ping 192.168.0.1.If you have "network unreachable" or if you don't see anything in about 5 seconds, there is a configuration problem. You should see the "X bytes from …" message. From the machine A, we test if we can reach B: # ping 192.168.0.2.Disable all the firewalls you might have to test this. Now we can test that the connection between A and B works. Now that we have an IP address assigned to A network card, we must do something similar to B: ifconfig eth0 192.168.0.2 netmask 255.255.255.0 Test the configuration so far The network 192.168.1.0 is the network that we use for the internet access (the eth0 card of A) and the 192.168.0.0 represents the network that links A with B ( eth1 card of A). If we type route on A, we should see something similar to:ĭestination Gateway Genmask Flags Metric Ref Use Ifaceĭefault 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 We link A and B with a cable that connects its eth1 card to the eth0 card of B.įirst, we configure the eth1 address on A: ifconfig eth1 192.168.0.1 netmask 255.255.255.0 We want to use the eth1 network interface card from A to share the Internet connection with B. We want to make B have Internet access through A. In this case, it will be your gateway's IP address (that A obtained with the DHCP client for example). In some situations, if A will not be behind a NAT router, but will have a default Gateway configured. The main NAT router thought which A gets the Internet on the other end of the eth0 cable has an IP of 192.168.1.1. If in your case A is connected directly to the Internet, then you will have to change the IPs of your computers in order to make it work. In this example, A has Internet reachability through the eth0 interface through another NAT router (but we don't care about this). Supposing you have 2 computers: computer A and computer B. You must be aware of why you need NAT Firewall and its advantages.
#How to change nat type to open pc dlink how to#
We do not explain how to install ethernet cards, but we do explain how to configure them from the beginning. You have 3 working ethernet cards, that are installed and recognized by your computers.You know what " router", " NAT", " IP" and " net-mask" means.2.6 configure DNS (domain name resolution).For example, on a Linksys router your computer would have an IP of 192.168.1.x, with x being the unique digit. The vast majority of the time, your IP address when connected through the router will share the first three number groups as the router itself. This will give you information on your computer and what it's IP address is. When the command utility opens up, type in ipconfig.
#How to change nat type to open pc dlink windows#
To find your computer's IP, go to the Windows Start Menu and type 'cmd.exe' into the run box without the quotes. If you are using port forwarding to open up the NAT settings, you will need your computer's IP address as well as the ports that need to be opened. For many users, this is enough to adjust their NAT settings to open. This works much the same way as Windows Plug and Play but on a network level, and allows your router to work out what it will take for a new item on your network to correctly interface with the Internet. There are a few things to change here to get an open NAT setting, which is the type of NAT needed for local services such as Xbox Live to work the best. Click on it and scroll through the settings here. After you login, look for the phrase "Port Forwarding" on the left hand side of the screen.