|
|
||||||||||||||||||||||||||||||||||
|
This Month
Month Archive
Login
|
Tuesday, August 25
by
sparky
on Tue 25 Aug 2009 11:22 BST
Well, after a year studying the CCNA at the Cisco Networking Academy at Leeds City College I sat the CCNA exam last Monday morning and passed with flying colours!!
On to the CCNP in September starting with the ISCW course. Friday, August 7
by
sparky
on Fri 07 Aug 2009 08:31 BST
Configuring NAT is covered in this article : Configuring Network Address Translation
by
sparky
on Fri 07 Aug 2009 08:28 BST
Introduction to How Network Address Translation Works ![]() Network Address Translation helps improve security by reusing IP addresses. The NAT router translates traffic coming into and leaving the private network. If you are reading this article, you are most likely connected to the Internet and viewing it at the HowStuffWorks Web site. There's a very good chance that you are using Network Address Translation (NAT) right now. The Internet has grown larger than anyone ever imagined it could be. Although the exact size is unknown, the current estimate is that there are about 100 million hosts and more than 350 million users actively on the Internet. That is more than the entire population of the United States! In fact, the rate of growth has been such that the Internet is effectively doubling in size each year. So what does the size of the Internet have to do with NAT? Everything! For a computer to communicate with other computers and Web servers on the Internet, it must have an IP address. An IP address (IP stands for Internet Protocol) is a unique 32-bit number that identifies the location of your computer on a network. Basically, it works like your street address -- as a way to find out exactly where you are and deliver information to you. When IP addressing first came out, everyone thought that there were plenty of addresses to cover any need. Theoretically, you could have 4,294,967,296 unique addresses (232). The actual number of available addresses is smaller (somewhere between 3.2 and 3.3 billion) because of the way that the addresses are separated into classes, and because some addresses are set aside for multicasting, testing or other special uses. With the explosion of the Internet and the increase in home networks and business networks, the number of available IP addresses is simply not enough. The obvious solution is to redesign the address format to allow for more possible addresses. This is being developed (called IPv6), but will take several years to implement because it requires modification of the entire infrastructure of the Internet. This is where NAT (RFC 1631) comes to the rescue. Network Address Translation allows a single device, such as a router, to act as an agent between the Internet (or "public network") and a local (or "private") network. This means that only a single, unique IP address is required to represent an entire group of computers. But the shortage of IP addresses is only one reason to use NAT. In this edition of HowStuffWorks, you will learn more about how NAT can benefit you. But first, let's take a closer look at NAT and exactly what it can do...
What Does NAT Do? NAT is like the receptionist in a large office. Let's say you have left instructions with the receptionist not to forward any calls to you unless you request it. Later on, you call a potential client and leave a message for that client to call you back. You tell the receptionist that you are expecting a call from this client and to put her through. The client calls the main number to your office, which is the only number the client knows. When the client tells the receptionist that she is looking for you, the receptionist checks a lookup table that matches your name with your extension. The receptionist knows that you requested this call, and therefore forwards the caller to your extension. Developed by Cisco, Network Address Translation is used by a device (firewall, router or computer) that sits between an internal network and the rest of the world. NAT has many forms and can work in several ways:
NAT Configuration NAT can be configured in various ways. In the example below, the NAT router is configured to translate unregistered (inside, local) IP addresses, that reside on the private (inside) network, to registered IP addresses. This happens whenever a device on the inside with an unregistered address needs to communicate with the public (outside) network.
NAT overloading utilizes a feature of the TCP/IP protocol stack, multiplexing, that allows a computer to maintain several concurrent connections with a remote computer (or computers) using different TCP or UDP ports. An IP packet has a header that contains the following information:
The addresses specify the two machines at each end, while the port numbers ensure that the connection between the two computers has a unique identifier. The combination of these four numbers defines a single TCP/IP connection. Each port number uses 16 bits, which means that there are a possible 65,536 (216) values. Realistically, since different manufacturers map the ports in slightly different ways, you can expect to have about 4,000 ports available. Dynamic NAT and Overloading Here's how dynamic NAT works:
Here's how overloading works:
Stub Domains Look at this table to see how the computers on a stub domain might appear to external networks.
You can still have some computers on the stub domain that use dedicated IP addresses. You can create an access list of IP addresses that tells the router which computers on the network require NAT. All other IP addresses will pass through untranslated. The number of simultaneous translations that a router will support are determined mainly by the amount of DRAM (Dynamic Random Access Memory) it has. But since a typical entry in the address-translation table only takes about 160 bytes, a router with 4 MB of DRAM could theoretically process 26,214 simultaneous translations, which is more than enough for most applications. IANA has set aside specific ranges of IP addresses for use as non-routable, internal network addresses. These addresses are considered unregistered (for more information check out RFC 1918: Address Allocation for Private Internets, which defines these address ranges). No company or agency can claim ownership of unregistered addresses or use them on public computers. Routers are designed to discard (instead of forward) unregistered addresses. What this means is that a packet from a computer with an unregistered address could reach a registered destination computer, but the reply would be discarded by the first router it came to. There is a range for each of the three classes of IP addresses used for networking:
Although each range is in a different class, your are not required to use any particular range for your internal network. It is a good practice, though, because it greatly diminishes the chance of an IP address conflict. Security and Administration Implementing dynamic NAT automatically creates a firewall between your internal network and outside networks, or between your internal network and the Internet. NAT only allows connections that originate inside the stub domain. Essentially, this means that a computer on an external network cannot connect to your computer unless your computer has initiated the contact. You can browse the Internet and connect to a site, and even download a file; but somebody else cannot latch onto your IP address and use it to connect to a port on your computer. In specific circumstances, Static NAT, also called inbound mapping, allows external devices to initiate connections to computers on the stub domain. For instance, if you wish to go from an inside global address to a specific inside local address that is assigned to your Web server, Static NAT would enable the connection.
Some NAT routers provide for extensive filtering and traffic logging. Filtering allows your company to control what type of sites employees visit on the Web, preventing them from viewing questionable material. You can use traffic logging to create a log file of what sites are visited and generate various reports from it. NAT is sometimes confused with proxy servers, but there are definite differences between them. NAT is transparent to the source and to destination computers. Neither one realizes that it is dealing with a third device. But a proxy server is not transparent. The source computer knows that it is making a request to the proxy server and must be configured to do so. The destination computer thinks that the proxy server IS the source computer, and deals with it directly. Also, proxy servers usually work at layer 4 (transport) of the OSI Reference Model or higher, while NAT is a layer 3 (network) protocol. Working at a higher layer makes proxy servers slower than NAT devices in most cases.
A real benefit of NAT is apparent in network administration. For example, you can move your Web server or FTP server to another host computer without having to worry about broken links. Simply change the inbound mapping at the router to reflect the new host. You can also make changes to your internal network easily, because the only external IP address either belongs to the router or comes from a pool of global addresses. NAT and DHCP (dynamic host configuration protocol ) are a natural fit. You can choose a range of unregistered IP addresses for your stub domain and have the DHCP server dole them out as necessary. It also makes it much easier to scale up your network as your needs grow. You don't have to request more IP addresses from IANA. Instead, you can just increase the range of available IP addresses configured in DHCP to immediately have room for additional computers on your network.
Multi-homing As businesses rely more and more on the Internet, having multiple points of connection to the Internet is fast becoming an integral part of their network strategy. Multiple connections, known as multi-homing, reduces the chance of a potentially catastrophic shutdown if one of the connections should fail. In addition to maintaining a reliable connection, multi-homing allows a company to perform load-balancing by lowering the number of computers connecting to the Internet through any single connection. Distributing the load through multiple connections optimizes the performance and can significantly decrease wait times. Multi-homed networks are often connected to several different ISPs (Internet Service Providers). Each ISP assigns an IP address (or range of IP addresses) to the company. Routers use BGP (Border Gateway Protocol), a part of the TCP/IP protocol suite, to route between networks using different protocols. In a multi-homed network, the router utilizes IBGP (Internal Border Gateway Protocol) on the stub domain side, and EBGP (External Border Gateway Protocol) to communicate with other routers. Multi-homing really makes a difference if one of the connections to an ISP fails. As soon as the router assigned to connect to that ISP determines that the connection is down, it will reroute all data through one of the other routers. NAT can be used to facilitate scalable routing for multi-homed, multi-provider connectivity. For more on multi-homing, see Cisco: Enabling Enterprise Multihoming.
by
sparky
on Fri 07 Aug 2009 08:20 BST
Configure DHCP on a Cisco Router
Steps are as follows: 1. Define the DHCP address pool, Router(config)#ip dhcp pool POOLNAME Router(dhcp-config)#network XXX.XXX.XXX.XXX YYY.YYY.YYY.YYY where, XXX.XXX.XXX.XXX is the network address to be used by the DHCP pool YYY.YYY.YYY.YYY is the subnet mask for the network. You can replace the subnet mask by a (/PREFIX) to provide the subnet mask. 2. Configure the parameters to be sent to the client, Router(dhcp-config)#dns-server XXX.XXX.XXX.XXX To provide the DNS server IP address Router(dhcp-config)#default-router XXX.XXX.XXX.XXX To provide the IP address of the default gateway Router(dhcp-config)#domain-name NAME To provide the name of the domain of the network (if in a domain environment) Router(dhcp-config)#netbios-name-server XXX.XXX.XXX.XXX To provide the IP address of the NetBIOS name server Router(dhcp-config)#lease DAYS HOURS MINUTES To define the lease time of the addresses given to the client. You can make it infinite by using this command instead; lease infinite There is a large group of settings that you can configure to be sent to the clients, and I have only mentioned the most frequently used. 3. Configure the IP addresses to be excluded from the pool. This is usually done to avoid the conflicts caused by the DHCP with servers and printers. Remember to give ALL servers and network printers static IP addresses in the same range of the DHCP pool. And then exclude these addresses from the pool to avoid conflicts. Router(config)#ip dhcp excluded-address XXX.XXX.XXX.XXX Use the command in the previous form to excluded a single address. You can repeat it as much as you see fit for the IP addresses you want to exclude. Or, Router(config)#ip dhcp excluded-address YYY.YYY.YYY.YYY ZZZ.ZZZ.ZZZ.ZZZ where, YYY.YYY.YYY.YYY is the start of the range to be excluded from the pool ZZZ.ZZZ.ZZZ.ZZZ is the end of the range This way you can exclude a range or ranges of IP addresses and reserve them for static addresses use. 4. Enable the DHCP service in the router Router(config)#service dhcp To disable it use Router(config)#no service dhcp Usually the DHCP service is enabled by default on your router. 5. Use the following commands to check the DHCP operation on the router: Router#show ip dhcp binding This command shows the current bindings of addresses given to clients Router#show ip dhcp server statistics This command show the DHCP server statistics. Router#debug ip dhcp server This debug command is used to troubleshoot DHCP issues. Implementation notes: 1. If you have a DHCP server other than the router, and you would like to let the router to forward the DHCP requests from a certain LAN to the DHCP server laying outside that LAN, go to the Ethernet interface that does not have the DHCP server and type the following command: Router(config-if)#ip helper-address XXX.XXX.XXX.XXX where XXX.XXX.XXX.XXX is the IP address of the server laying outside this LAN. 2. You can create a DHCP database agent that stores the DHCP binding database. A DHCP database agent is any host, for example, an FTP, TFTP, or RCP server that stores the DHCP bindings database. You can configure multiple DHCP database agents and you can configure the interval between database updates and transfers for each agent. To configure a database agent and database agent parameters, use the following command in global configuration mode: Router(config)#ip dhcp database url [timeout seconds | write-delay seconds] An example url is this ftp://user:password @ 192.168.0.3/router-dhcp (remove the spaces before implementing) If you choose not to configure a DHCP database agent, disable the recording of DHCP address conflicts on the DHCP server. To disable DHCP address conflict logging, use the following command in global configuration mode: Router(config)#no ip dhcp conflict logging 3. DHCP service uses port 67 and 68. So, if you are using a firewall, remember to open these ports. 4. To clear DHCP server variables, use the following commands as needed: Router#clear ip dhcp binding * If you want to clear a certain binding not all of them, replace the * in the previous command with the IP address to be cleared. Router#clear ip dhcp server statistics ----------------------------------------Article courtesy of www.routergeek.com |
|||||||||||||||||||||||||||||||||






