Port Address Translation (overload)

Port Address Translation (overload)


Syntax to implement NAT on Router

Syntax:

Router(config)#interface <type> <no>

Router(config-if)#ip NAT inside

This command need to be given on interface where LAN (Private) Network is present

Router(config-if)#ip NAT outside
This command need to be given on interface where WAN (Public) Network is present



Syntax for configuring PAT is as Follows :

Syntax:

Router(config)#ip nat inside source list <ACL-NO> <Pubiic IP / interface <type> <No> > [overload]


Network Address Translation - NAT

Network Address Translation - NAT
(Static)


Network Address Translation is a feature to modify the Network address information, it is basically mapping feature which is mapped one IP address to another.

Syntax to implement NAT on Router

Syntax:

Router(config)#interface <type> <no>


Router(config-if)#ip NAT inside

This command need to be given on interface where LAN (Private) Network is present


Router(config-if)#ip NAT outside 
This command need to be given on interface where WAN (Private) Network is present

Syntax for configuring static NAT is as Follows:

Router(config)#ip nat inside source static <Private IP> <Public IP>

Spanning Tree Protocol - Verification

SPANNING TREE PROTOCOL - VERFICATION

Switch#sh spanning-tree
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32769
             Address     0001.43D4.9A23
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0001.43D4.9A23
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Desg FWD 19        128.1    P2p
Fa0/2            Desg FWD 19        128.2    P2p
Fa0/3            Desg FWD 19        128.3    P2p
Fa0/4            Desg FWD 19        128.4    P2p

PORT-SECURITY

PORT-SECURITY

The Port Security feature is used to restrict traffic on a switch interface (also called a "switchport") by identifying and limiting traffic allowed to enter that port based on source Ethernet MAC addresses.

Syntax to configure port security on a switch interface

Syntax:

Port Security:

Switch(config)#interface <type> <No.>

Switch(config-if)#switchport mode access

Switch(config-if)#Switchport port-security maximum <No. of MAC address>

Switch(config-if)#Switchport port-security mac-address <MAC ADDRESS/ sticky>

Switch(config-if)#Switchport port-security violation <shutdown/protect/restrict>

Switch(config-lf)#Switchport port-security

INTER-VLAN ROUTING

INTER-VLAN ROUTING


Inter-VLAN routing is the process of forwarding network traffic from one VLAN to another VLAN using a router.


To Create a VLAN on a Switch

Configure VLAN on switch

Syntax:

Switch(config)#vlan <VLAN No.>

Switch(config-vlan)#name <name>




To assign a interface to VLAN


Switch(config)#interface <type> <No.>

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan <VLAN No.>

Switch(config-if)#exit