| 644 | |
| 645 | ==== Router Configuration ==== |
| 646 | Now you have complete most of the IPv4 Configurations. Go to DeptPC1 and try a ping to the DNS server (192.248.1.161). You will not get a reply. That is because your PC have a private IP. There must be a method to connect to the outside using a private IP. What we use here is adding a NAT in AccessRt router. There are different NAT types what we use here is the method called NAT overload. In this method we can assign set of local(private) IP's and overload it to a interface with a global(public) IP. So the outside the network will see the traffic coming from local IP's as traffic coming from the global IP. Let's add this configuration to your router. |
| 647 | - Login to AccessRt Router and switch to config mode |
| 648 | - Let's define the local IP set in a ACL. |
| 649 | {{{ |
| 650 | AccessRt(config)#access-list 1 permit 10.0.0.0 0.0.255.255 |
| 651 | }}} |
| 652 | - Then dd the NAT entry. In your router public IP is assign to FastEthernet 0/1 interface |
| 653 | {{{ |
| 654 | AccessRt(config)#ip nat inside source list 1 interface FastEthernet0/1 overload |
| 655 | }}} |
| 656 | - Then define NAT inside & NAT outside. NAT inside is your router's LAN port and Nat outside is your router's WAN port. |
| 657 | {{{ |
| 658 | AccessRt(config)#interface FastEthernet 0/0 |
| 659 | AccessRt(config-if)#ip nat inside |
| 660 | AccessRt(config-if)#exit |
| 661 | AccessRt(config)#interface FastEthernet 0/1 |
| 662 | AccessRt(config-if)#ip nat outside |
| 663 | AccessRt(config-if)#exit |
| 664 | }}} |
| 665 | - Finally add a static route in the router so that the traffic coming to our defined network will redirect to CampusCore switch |
| 666 | {{{ |
| 667 | AccessRt(config)#ip route 10.0.0.0 255.255.0.0 10.0.255.253 |
| 668 | }}} |
| 669 | - Now try a ping from DeptPC1 to the DNS server. It should give reply |
| 670 | |
| 671 | '''You have successfully complete the IPv4 configurations. save all the configurations in all the routers''' |