{"id":1462,"date":"2013-05-20T07:36:27","date_gmt":"2013-05-20T06:36:27","guid":{"rendered":"http:\/\/blog.spanger.org\/?p=1462"},"modified":"2013-05-20T07:36:27","modified_gmt":"2013-05-20T06:36:27","slug":"cisco-1841-hwic-4esw-nat","status":"publish","type":"post","link":"https:\/\/blog.spanger.org\/?p=1462","title":{"rendered":"Cisco 1841 + HWIC-4ESW + NAT"},"content":{"rendered":"<p><strong>Cisco 1841 ethernet port + dialer interface<\/strong><\/p>\n<p><strong>interface FastEthernet0\/0<\/strong><br \/>\ndescription == WAN interface<br \/>\nno ip address<br \/>\nduplex auto<br \/>\nspeed auto<br \/>\npppoe enable group global<br \/>\npppoe-client dial-pool-number 1<br \/>\nno cdp enable<br \/>\n!<br \/>\n<strong>interface FastEthernet0\/1<\/strong><br \/>\ndescription == LAN interface<br \/>\nip address 192.168.1.1 255.255.255.0<br \/>\nip nat inside<br \/>\nip virtual-reassembly in<br \/>\nip tcp adjust-mss 1452<br \/>\nduplex auto<br \/>\nspeed auto<br \/>\n!<\/p>\n<p><strong>interface Dialer1<\/strong><br \/>\ndescription == pppoe to ISP<br \/>\nip address negotiated<br \/>\nip mask-reply<br \/>\nip directed-broadcast<br \/>\nip mtu 1492<br \/>\nip nat outside<br \/>\nip virtual-reassembly in<br \/>\nencapsulation ppp<br \/>\ndialer pool 1<br \/>\ndialer-group 1<br \/>\nppp authentication chap pap callin<br \/>\nppp chap hostname username@domain.tld<br \/>\nppp chap password 7 060B162A5D4C222C1F<br \/>\nppp pap sent-username username@domain.tld password 7 030E3100150D592954<br \/>\nppp ipcp dns request<br \/>\nppp ipcp route default<br \/>\nppp ipcp address accept<br \/>\nno cdp enable<br \/>\n!<\/p>\n<p><strong>DHCP POOL<\/strong><\/p>\n<p>ip dhcp pool LAN<br \/>\nnetwork 192.168.2.0 255.255.255.0<br \/>\ndefault-router 192.168.1.1<br \/>\ndns-server 8.8.8.8 4.4.4.4<br \/>\ndomain-name your-domain.tld<\/p>\n<p><strong>VLAN configuration<\/strong><\/p>\n<p>interface Vlan2<br \/>\ndescription == LAN<br \/>\nip address 192.168.2.1 255.255.255.0<br \/>\nip helper-address 192.168.1.1<br \/>\nip nat inside &lt;&#8212; important part in NAT translation<br \/>\nip virtual-reassembly in<\/p>\n<p><strong>HWIC-4ESW ethernet port configuration<\/strong><\/p>\n<p>interface FastEthernet0\/0\/0<br \/>\ndescription == PC LAN<br \/>\nswitchport access vlan 2<br \/>\nno ip address<br \/>\n!<br \/>\ninterface FastEthernet0\/0\/1<br \/>\ndescription == AP LAN<br \/>\nswitchport access vlan 2<br \/>\nno ip address<br \/>\n!<\/p>\n<p><strong>NAT<\/strong><\/p>\n<p>ip nat inside source list 1 interface Dialer1 overload<\/p>\n<p><strong>NAT ACL<\/strong><\/p>\n<p>access-list 1 permit 192.168.1.0 0.0.0.255<br \/>\naccess-list 1 permit 192.168.2.0 0.0.0.255<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cisco 1841 ethernet port + dialer interface interface FastEthernet0\/0 description == WAN interface no ip address duplex auto speed auto pppoe enable group global pppoe-client dial-pool-number 1 no cdp enable ! interface FastEthernet0\/1 description == LAN interface ip address 192.168.1.1 255.255.255.0 ip nat inside ip virtual-reassembly in ip tcp adjust-mss 1452 duplex auto speed auto [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[135,137,136],"class_list":["post-1462","post","type-post","status-publish","format-standard","hentry","category-cisco","tag-cisco-1841","tag-hwic-4esw","tag-nat"],"_links":{"self":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1462"}],"version-history":[{"count":3,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1462\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1462\/revisions\/1465"}],"wp:attachment":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}