{"id":483,"date":"2018-09-24T12:34:57","date_gmt":"2018-09-24T12:34:57","guid":{"rendered":"https:\/\/www.secureethics.com\/?p=483"},"modified":"2018-10-01T04:50:15","modified_gmt":"2018-10-01T04:50:15","slug":"how-to-configure-cisco-router-wan-and-lan-interface-with-internet-access","status":"publish","type":"post","link":"https:\/\/secureethics.com\/?p=483","title":{"rendered":"How to configure the cisco router WAN and LAN interface with internet access"},"content":{"rendered":"<p>Network connection diagram of below configuration<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-472\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/Cisco_Router.png\" alt=\"\" width=\"553\" height=\"256\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Cisco_Router.png 600w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Cisco_Router-300x139.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Cisco_Router-520x241.png 520w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Interface IP Configuration:<\/strong><\/span><\/p>\n<p><strong>Step: 1<\/strong><\/p>\n<p>Login into the router with global configuration mode<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#<\/pre>\n<p><strong>Step: 2<\/strong><\/p>\n<p>Here I&#8217;m going to configure <strong>WAN interface <\/strong>of the router with ISP public IP address.<\/p>\n<p>WAN IP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 :\u00a0 <strong>192.168.1.200<\/strong><\/p>\n<p>WAN Subnet\u00a0 :\u00a0 <strong>255.255.255.0<\/strong><\/p>\n<p>GATEWAY\u00a0\u00a0\u00a0\u00a0\u00a0 :\u00a0 <strong>192.168.1.1<\/strong><\/p>\n<p>WAN Interface Name :\u00a0 <strong>FastEthernet0\/0<\/strong><\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#interface FastEthernet 0\/0\r\n\r\nRouter(config-if)#ip address 192.168.1.200 255.255.255.0\r\n\r\nRouter(config-if)#no shutdown\r\n\r\nRouter(config-if)#exit<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-490 aligncenter\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/WAN_IP.png\" alt=\"\" width=\"886\" height=\"147\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/WAN_IP.png 886w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/WAN_IP-300x50.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/WAN_IP-768x127.png 768w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/WAN_IP-520x86.png 520w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/p>\n<p><strong>Step: 3<\/strong><\/p>\n<p>Now I&#8217;m going to configure the LAN interface of the router<\/p>\n<p>LAN IP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 :\u00a0 <strong>10.10.10 1<br \/>\n<\/strong><\/p>\n<p>WAN Subnet\u00a0 :\u00a0 <strong>255.255.255.0<\/strong><\/p>\n<p>LAN Interface Name :\u00a0 <strong>FastEthernet0\/0<\/strong><\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#interface gigabitEthernet 1\/0\r\n\r\nRouter(config-if)#ip address 10.10.10.1 255.255.255.0\r\n\r\nRouter(config-if)#no shutdown\r\n\r\nRouter(config-if)#exit<\/pre>\n<h5><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-492 aligncenter\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/LAN_interface.png\" alt=\"\" width=\"775\" height=\"157\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/LAN_interface.png 888w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/LAN_interface-300x61.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/LAN_interface-768x156.png 768w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/LAN_interface-520x105.png 520w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/h5>\n<h5><\/h5>\n<h5><strong><span style=\"text-decoration: underline;\">NAT Configuration for Internet access from WAN interface to LAN interface:<\/span><\/strong><\/h5>\n<p><strong>Step 4:<\/strong><\/p>\n<p>Enable outside NAT into the WAN interface(FastEthernet 0\/0) of the\u00a0 router<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#interface fastethernet 0\/0\r\n\r\nRouter(config-if)#ip nat outside\r\n\r\nRouter(config-if)#exit<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-502\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/outsidenat.png\" alt=\"\" width=\"447\" height=\"171\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/outsidenat.png 561w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/outsidenat-300x115.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/outsidenat-520x199.png 520w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\n<p><strong>Step 5:<\/strong><\/p>\n<p>Enable inside NAT into the LAN interface(GigabitEthernet 1\/0) of the router.<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#interface Gigabitethernet 1\/0\r\n\r\nRouter(config-if)#ip nat inside<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-505\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/insidenat.png\" alt=\"\" width=\"716\" height=\"67\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/insidenat.png 748w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/insidenat-300x28.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/insidenat-520x49.png 520w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Create an access list for allowing LAN interface IP to WAN interface:<\/strong><\/span><\/p>\n<p><strong>Step 6:<\/strong><\/p>\n<p>create an access list for LAN IP subnet of the router (10.10.10.0\/24)<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#access-list 100 permit ip 10.10.10.0 0.0.0.255 any\r\n\r\nRouter(config)#ip nat inside source list 100 interface fastEthernet 0\/0<\/pre>\n<p><span style=\"text-decoration: underline;\"><strong>Note:<\/strong><\/span><\/p>\n<p>100 is the access list<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-510\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List.png\" alt=\"\" width=\"1812\" height=\"86\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List.png 1455w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List-300x14.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List-768x36.png 768w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List-1024x49.png 1024w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/Access-List-520x25.png 520w\" sizes=\"auto, (max-width: 1812px) 100vw, 1812px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Final step creating a default route for the router:<\/strong><\/span><\/p>\n<p><strong>Step 7:<\/strong><\/p>\n<p>create a default route for accessing the internet<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-511\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/ip-router.png\" alt=\"\" width=\"794\" height=\"54\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/ip-router.png 794w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/ip-router-300x20.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/ip-router-768x52.png 768w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/ip-router-520x35.png 520w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Note:<\/strong><\/span><\/p>\n<p>192.168.1.1 this it is the gateway of ISP<\/p>\n<p><strong>Step 8 :<\/strong><\/p>\n<p>Check the internet connectivity in the router<\/p>\n<pre class=\"theme:classic lang:default decode:true\">Router#ping 8.8.8.8<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-512\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/sucess.png\" alt=\"\" width=\"820\" height=\"99\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/sucess.png 820w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/sucess-300x36.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/sucess-768x93.png 768w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/sucess-520x63.png 520w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/p>\n<p>the same test you check in the PC( before that configure static IP address into PC Local area connection interface due to DHCP server is not enabled in the router)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-513\" src=\"https:\/\/www.secureethics.com\/wp-content\/uploads\/2018\/09\/PC_ping.png\" alt=\"\" width=\"607\" height=\"272\" srcset=\"https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/PC_ping.png 607w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/PC_ping-300x134.png 300w, https:\/\/secureethics.com\/wp-content\/uploads\/2018\/09\/PC_ping-520x233.png 520w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/p>\n<p>Please let me know if you have any doubts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Network connection diagram of below configuration &nbsp; Interface IP Configuration: Step: 1 Login into the router with global configuration mode Router(config)# Step: 2 Here I&#8217;m going to configure WAN interface of the router with ISP public IP address. WAN IP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-483","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking"],"_links":{"self":[{"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/posts\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/secureethics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=483"}],"version-history":[{"count":0,"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/posts\/483\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secureethics.com\/index.php?rest_route=\/wp\/v2\/media\/472"}],"wp:attachment":[{"href":"https:\/\/secureethics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secureethics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secureethics.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}