{"id":397,"date":"2020-10-10T17:14:40","date_gmt":"2020-10-10T17:14:40","guid":{"rendered":"https:\/\/dft.wiki\/?p=397"},"modified":"2021-02-07T16:57:48","modified_gmt":"2021-02-07T16:57:48","slug":"ppp-chap-on-serial-ports-using-cisco-devices","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=397","title":{"rendered":"PPP\/CHAP on Serial ports using Cisco Devices"},"content":{"rendered":"<p>Setting a serial connection between two routers using PPP with CHAP authentication:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-398 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/10\/Screenshot-from-2020-10-10-12-32-16.png\" alt=\"\" width=\"469\" height=\"86\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/10\/Screenshot-from-2020-10-10-12-32-16.png 469w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/10\/Screenshot-from-2020-10-10-12-32-16-300x55.png 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/p>\n<p>Set PC0: IP 192.168.1.2 gateway 192.168.1.1<\/p>\n<p>Set PC1: IP 192.168.2.2 gateway 192.168.2.1<\/p>\n<p>Issue the following commands in Router0:<\/p>\n<pre>enable\r\nconfigure terminal\r\nhostname Router0\r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\ninterface g0\/0\r\nip address 192.168.1.1 255.255.255.0\r\nno shutdown\r\ninterface s0\/0\/0\r\nip address 10.1.1.1 255.255.255.0\r\nno shutdown<\/pre>\n<p>Then in Router1:<\/p>\n<pre>enable\r\nconfigure terminal\r\nhostname Router1\r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\ninterface g0\/0\r\nip address 192.168.2.1 255.255.255.0\r\nno shutdown\r\ninterface s0\/0\/0\r\nip address 10.1.1.2 255.255.255.0\r\nno shutdown<\/pre>\n<p>Setting up the routing protocol, in this case, OSPF:<\/p>\n<pre>router ospf 1\r\nnetwork 192.168.<strong>1<\/strong>.0 0.0.0.255 area 0\r\nnetwork 10.1.1.0 0.0.0.255 area 0\r\npassive-interface G0\/0<\/pre>\n<p>Note: use the bold number as <strong>1<\/strong> for Router0 and <strong>2<\/strong> for Router1.<\/p>\n<p>You should be able to ping from any to any device now.<\/p>\n<p>Let&#8217;s set up the encapsulation type as PPP and CHAP authentication.<\/p>\n<p>In Router0<\/p>\n<pre>username <strong>Router1<\/strong> password <strong>cisco<\/strong>\r\ninterface s0\/0\/0\r\nencapsulation ppp\r\nppp authentication chap<\/pre>\n<p>In Router1<\/p>\n<pre>username <strong>Router0<\/strong> password <strong>cisco<\/strong>\r\ninterface s0\/0\/0\r\nencapsulation ppp\r\nppp authentication chap<\/pre>\n<p>Note: in Router0 we create one user for Router1, and vice-versa. Replace &#8220;cisco&#8221; by the desired password.<\/p>\n<p>Check the connectivity and if necessary shut the interface off and on again to speed the process up.<\/p>\n<p>Relevant debugging commands:<\/p>\n<pre>debug ppp negotiation\r\ndebug ppp packet\r\ndebug ppp negotiation\r\ndebug ppp packet\r\ndebug ppp authentication\r\nundebug all<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting a serial connection between two routers using PPP with CHAP authentication: Set PC0: IP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":3,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}