Figure 614 DNS Tree

DNS uses TCP and UDP port 53. UDP is the recommended transport protocol for DNS queries. TCP is the recommended protocol for zone transfers between DNS servers. A DNS query searches for the IP address of a Fully Qualified Domain Name (FQDN), such as www.cisco.com.

SNMP

SNMP is a network protocol for the management of network devices. SNMP allows network managers to inspect or change parameters on a device remotely. SNMP was first defined by RFC 1067 (SNMPvl), which was succeeded by RFCs 1155, 1157, and 1212. Version 2 of SNMP is defined by RFC 1442, with other RFCs providing updates. The latest version of SNMP, version 3, is described in RFC 2573.

In SNMP, managed devices (routers, switches, servers) contain an SNMP agent. The agents collect and store management information. The information is made available to the network management system (NMS). NMS uses read and write commands to query or change information on the SNMP agent. These commands use UDP port 161. Some devices can be configured to send a message to the NMS in the case of an interface failure or other defined event. The message sent to the server is a SNMP trap, which uses UDP port 162.

NAT devices convert internal IP address space into globally unique IP addresses. NAT is specified by RFC 1631. As shown in Figure 6-15, for outgoing IP packets, the source addresses are converted to globally unique IP addresses. The conversion can be statically done, or you can use a global pool of addresses dynamically.

Figure 6-15 Network Address Translation (NAT)

The several forms of NAT follow:

• Static NAT—Maps an unregistered IP address to a registered IP address, configured manually.

• Dynamic NAT—Dynamically maps an unregistered IP address to a registered IP address from a pool (group) of registered addresses. The two subsets of dynamic NAT are overloading and overlapping.

• Overloading—Maps multiple unregistered IP addresses to a single registered IP address by using different ports. Overloading is also known as Port Address Translation (PAT), single address NAT, or port-level multiplexed NAT.

• Overlapping—Maps internal IP addresses to outside IP addresses when the internal addresses are possibly the same as the external addresses. Translates the internal IP addresses to globally unique IP addresses. External addresses can also be mapped to overlapping internal addresses.

Before configuring NAT, you must understand the following terminology:

• Stub domain—Internal network that can use private IP addresses.

• Public network—Outside the stub domain and resides in the Internet. Addresses in the public network are reachable from the Internet.

• Inside local address—Real IP address of the device that resides in the Internal network. The stub domain uses this address.

• Inside global address—Translated IP address of the device that resides in the Internal network. The public network uses this address.

• Outside global address—Real IP address of a device that resides in the Internet, outside of the stub domain.

• Outside local address—Translated IP address of the device that resides in the Internet. The stub domain uses this address.

Figure 6-16 illustrates the previous terms. The real IP address of the host in the stub network is 192.168.10.100, which is the inside local address. The inside local address is translated into the inside global address (200.100.10.100) at the NAT router. Hosts located in the Internet have their real IP address (outside global address) translated. For example, 30.100.2.50 is translated into the outside local address of 192.168.100.50.

Figure 6-16 NAT Terminology Example

Figure 6-16 NAT Terminology Example

Outside local address: 192.168.100.50 <- Outside global address: 30.100.2.50

Outside local address: 192.168.100.50 <- Outside global address: 30.100.2.50

Configuring NAT on Cisco Routers

To configure IP NAT for simple dynamic NAT, performed the following steps:

Step 1 Configure interfaces to be marked as inside or outside. Inside interfaces reside in the stub network, and outside interfaces reside in the public network. Configure inside interfaces with the ip nat inside command. Configure outside interfaces with the ip nat outside command.

Step 2 Configure an address pool to dynamically assign inside global addresses. You can use a range of IP addresses for dynamic translations that are specified with a starting and ending IP address by using the ip nat pool name start-ip end-ip netmask netmask command.

Step 3 Enable the translation of inside local addresses with the ip nat inside source [list acl pool name] command. The name is the same name specified in Step 2. The acl access list specifically defines the inside local addresses that are translated.

Example 6-8 shows a sample configuration for Figure 6-17, which translates the inside

192.168.10.0/24 and 192.168.11.0/24 addresses by using a global pool of 200.100.100.0/24.

Outside global addresses are not translated.

Figure 6-17 NAT Example

Inside Network

Public Network

"^-N Ethernet 0

__ X- Serial 0 r^ \

/ \ (inside)

'-/; (outside) / \

NAT Router

Inside local addresses:

Inside global address pool:

192.168.10.0/24

-> 200.100.100.1 to 200.100.100.254

192.168.11.0/24

Example 6-8 NAT Configuration Example hostname router3

ip nat pool ccie 200.100.100.1 200.100.100.254 netmask 255.255.255.0

ip nat inside source list 5 pool ccie interface ethernet 0 description Inside interface ip address 192.168.10.1 255.255.255.0 ip nat inside interface serial 0 description Outside interface ip address 200.100.101.1 255.255.255.252 ip nat outside access-list 5 permit 192.168.10.0 0.0.0.255 access-list 5 permit 192.168.11.0 0.0.0.255

To verify and troubleshoot NAT, use the commands in Table 6-18.

Table 6-18 NAT Verification Commands

Command

Description

show ip nat translations

Displays active NAT translations

show ip nat statistics

Displays NAT statistics

clear ip nat translation *

Clears all dynamic translations

debug ip nat [list] [detailed]

Provides debugging information for NAT

NAT is usually deployed at the edge of the network where there are two separate administrative domains or at the internal network edge with the Internet.

0 0

Post a comment