en
conf t
service password-encryption
hostname R1
no ip domain lookup
username root password toor
interface FastEthernet0/0
ip address 192.168.45.145 255.255.255.0
ip nat outside
no shutdown
!
interface FastEthernet0/1
ip address 192.168.8.253 255.255.255.0
ip nat inside
no shutdown
!
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 192.168.45.254
ip route 192.168.0.0 255.255.252.0 FastEthernet0/1 192.168.8.254
!
ip nat pool pub 192.168.45.145 192.168.45.145 netmask 255.255.255.0
ip nat inside source list 1 pool pub overload
!
access-list 1 permit 192.168.0.0 0.0.15.255
!
line con 0
exec-timeout 0 0
logging synchronous
login local
line vty 0
login local
transport input telnet
R1#