Showing posts with label video. Show all posts
Showing posts with label video. Show all posts
What is NAT?
Network Address Translation translates your local or private IP addresses to public IP addresses so you can communicate with the internet world.
Why NAT? Because its expensive to buy public IP addresses to each and every computer in a network.

Types of NAT:
Static NAT: This is like one-to-one i.e. your one particular private ip address is always translated to one dedicated public ip address.
Dynamic NAT: This is like many-to-many. Your list of private ip addresses are translated to a pool of public addresses, a public ip dynamically picked from that pool for your private ip addresses.
PAT-Port Address Translation: This is like one to many. Your list of private ip addresses are translated to one public ip address. This uses source port no. of your local network to differentiate individual hosts or computers in your local network. This is also called NAT Overload.


Lab:
Local router:
f0/0 - desktop
f0/1 - vpcs1
s1/0 - border router

Border router:
s1/0 - local router
s1/1 - isp router

Isp router:
s1/1 - border router and f0/0 - vpcs2

Local router configuration:

Border router configuration:

 
Isp router Configuration:

Vpcs Configuration:








  • Desktop( MS Loop back Adapter) gets 10.0.0.2   255.255.255.252, GW: 10.0.0.1, DNS:  10.0.0.1
  • We will use EIGRP in Local and Border routers for routing protocol, so that desktop and vpcs can communicate with Border router via Local router. We will configure them both routers in Autonomous system no 10 so they become neighbours and exchange topology database.

local(config)#router  eigrp 10
local(config-router)#network   10.0.0.0

  • Border router should be able to communicate with both public and private networks. With Eigrp, border router is already communicating with our local networks. In real world, all local computers connect to border router and border router knows how to get to ISP router, these settings are given by ISP provider. For this lab, we will need to configure border router ourselves, it needs to know the routes. We can use any routing protocol but because we only have one network 99.0.1.0 to be included in the routing table, since 99.0.0.0 is directly connected, lets use static routing.

border(config)#router eigrp 10
border(config-router)#network   10.0.0.0
border(config-router)#network   99.0.0.0
border(config)#ip   route   99.0.1.0    255.255.255.252     99.0.0.2
border(config)#ip    default-network    99.0.0.0

  • I also used 'ip default-network' command so EIGRP can adveterise it to local router.
  • With all the above setup we should be able to succefully ping within our local network and within our public i.e. 99.0.0.0 and 99.0.1.0 network. But we can not ping from local network to public network and thats where NAT comes into picture. NAT will translate our local ip addresses to public ip address so we can communicate with our public networks. We are going to implement NAT overload or PAT in our border router.

border(config)#ip   nat   pool   test   99.0.0.1   99.0.0.1  netmast    255.255.255.252
border(config)# access-list   10   permit   10.0.0.0    0.0.255.255
border(config)# ip   nat   inside   source   list   10  pool   test   overload

  • First line creates a pool called 'test' with a range of public addresses. In this case only 99.0.0.1 because we're implementing NAT overload i.e. many-to-one. However, we can use more than one public IP.
  • Second line creates a list of our local addresses identified by no. '10' with 'permit' option.
  • Third line tells NAT to translate inside addresses that are specified in list no. 10 to addresses in pool named 'test', the 'overload' tells NAT to use port no.'s to identify a particular host in the local network.
  • Now we're left configuring interfaces as belonging to inside network or outside network in our border router. In this lab, s1/0 of border router belongs to inside network and s1/1 to the outside.

border(config)#int s1/0
border(config-if)# ip nat inside
border(config-if)#int s1/1
border(config-if)#ip nat outside

Verification:


References:
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml
Posted by Freeman On 3:27 AM 0 comments
Stumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditAdd To FacebookAdd To Yahoo
To use your router as a switch:Right click on router, configure and in the slots tab select NM-16esw for slot1 as shown in fig.


    This is a simple topology to verify VTP. topology is as shown in the picture. I also used VPCS as pcs.
    I used routers as switches in gns3, please be aware that gns3 does not support all of the switch commands ex: port security.

    Topology details:
    -sw1 - f1/0 is connected to      sw2 - f1/0 which is our trunk link.

    -sw1 - f1/1 is connected to Vpcs1( Local port: 30000, Remote host: 127.0.0.1, Remote port:20000)

    -sw2  -  f1/1 is connected to Vpcs2(Local port: 30001, Remote host: 127.0.0.1, Remote port:20001)

    -sw1 - VLAN 1 IP Address is    172.16.1.1    255.255.255.0

    -sw2 - VLAN 1 IP Address is    172.16.1.2    255.255.255.0

    -Ping 172.16.1.2 on sw1  and  Ping 172.16.1.1 on sw2 to verify connectivity.

    -After creating VLAN 2 in sw1's VLAN database  it should appear in sw2 as well due to VTP.

    -Assign port f1/1 to VLAN 2 and give a 'no shutdown' command on both switches.

    -Vpcs1 - IP Address is   10.0.0.1/24,  GW-10.0.0.250 (just for syntax).

    -Vpcs2 - IP Address is   10.0.0.2/24,  GW-10.0.0.250 (just for syntax).

    -Ping 10.0.0.2 from Vpcs1 and Ping 10.0.0.1 from Vpcs2 to verify connectivity.

    VLAN 1 is in its own subnet 172.16.1.0/24 and
    VLAN 2 is in its own subnet 10.0.0.0/24
      Note:
      • Each and every interface must be manually turned on by 'no shutdown' command.
      • We have to set a VTP domain name and ofcourse, same on both the switches. Only then, we will see the Configuration Revision Value and others parameters being updated in the switches.
      Now that the topology is ready, please watch the below videos to see how VTP worked.
      Please watch in full screen for clear view. Videos are playing rather fast, you might want to pause in between to help.

      Part One



      Part Two
      Posted by Freeman On 10:38 PM 0 comments
      Stumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditAdd To FacebookAdd To Yahoo

      Blog Archive

      Related Posts with Thumbnails

      counter

      HTML hit counter - Quick-counter.net
      Copyright 2009 - tips .. come on in. Protected by Copyscape plagiarism checker - duplicate content and unique article detection software. Designed by Gaganpreet Singh