Step1: Configure IP address on the interface where Modem or ISP cable is connected. Assume Internet Cable is connected on Fa0/2 of the Cisco Router.
Router(config)# interface fa0/2
Router(config-if)# ip address 54.1.1.1 255.255.255.224
Router(config-if)# no shutdown
Note: Here 54.1.1.1 is the public ip address
Step2: Configure Static Default Route Pointing towards the interface where Internet Cable is connected,
Router(config)# ip route 0.0.0.0 0.0.0.0 fa0/2
Note: Now you should get Internet access from the Cisco Router, test it by pinging to 8.8.8.8 from Cisco Router.
Step3: Now Configure NAT in Cisco Router so that users in the LAN should get Internet Access.
Router(config)# access-list 100 permit 192.168.1.0 255.255.255.0
Router(config)# ip nat inside source list 100 interface fa0/2 overload
Router(config)# interface fa0/1
Router(config-if)# ip nat inside
Router(config)# interface fa0/2
Router(config)# ip nat outside
Now PC's in LAN should get Internet Access....
Router(config)# interface fa0/2
Router(config-if)# ip address 54.1.1.1 255.255.255.224
Router(config-if)# no shutdown
Note: Here 54.1.1.1 is the public ip address
Step2: Configure Static Default Route Pointing towards the interface where Internet Cable is connected,
Router(config)# ip route 0.0.0.0 0.0.0.0 fa0/2
Note: Now you should get Internet access from the Cisco Router, test it by pinging to 8.8.8.8 from Cisco Router.
Step3: Now Configure NAT in Cisco Router so that users in the LAN should get Internet Access.
Router(config)# access-list 100 permit 192.168.1.0 255.255.255.0
Router(config)# ip nat inside source list 100 interface fa0/2 overload
Router(config)# interface fa0/1
Router(config-if)# ip nat inside
Router(config)# interface fa0/2
Router(config)# ip nat outside
Now PC's in LAN should get Internet Access....
thanks!
ReplyDelete