Sunday, September 19, 2010

Configuring Nat Overloading

From global config mode

Type

access-list 1 remark sourav_acl category=2(creating the name of the access list)

access list 1 permit 192.168.0.0 0.0.0.255(permit the 192.168.0.0 network with wildcard mask)

access list 1 permit 192.168.1.0 0.0.0.255(permit the 192.168.1.0 network with wildcard mask)

access list 1 permit 192.168.2.0 0.0.0.255(permit the 192.168.2.0 network with wildcard mask)

exit

int vlan 1

ip nat inside(setting vlan 1 interface as the inside of nat)

exit

int fa 0/0

ip nat outside(setting int fa 0/0 interface as the outside of nat)

exit

ip nat inside source list 1 int fa 0/0 overload (to ip nat using the source list 1 as the inside and int fa 0/0 as the outside with overload so that multiple ip can access the intrernet using the 1 global ip,without overload only one ip will be able to access the internet)

Now from exec mode

Type

sh ip nat translations(to see the inside local and inside global as well as outside local and outside global ip address with associate port number)


Courtesy to Cisco Guru Jeremy Cioara

No comments:

Post a Comment