------------ general info ------------ - note that default hostname for device is 'Router' - basic prompt is {hostname}> - privileged prompt is {hostname}# - to reset configuration, reboot and send break within 60 seconds? = on minicom, hit ctrl+a-f = should get rommon console (i.e. rommon {1-based index}>) - configure router to bypass configuration = type 'confreg 0x2142' = type 'reset' - configure router to use configuration = type 'confreg 0x2102' = type 'reset' ----------------------------- configuring cisco 1841 router ----------------------------- - pc serial port connect to rj45 console port on 1841 = need usb2serial for most pc nowadays = need an rj45-rs232 cable! - i use minicom on slackware = use 9600 8n1 with no flow control - start router, skip all wizards/auto-config = should get 'Router>' prompt = type ? for specific help = typing help will tell you this :p - type 'enable' to get to global config privileged mode = should get 'Router#' prompt * configure basics - type 'conf t' to start configuring = shortcut for 'configure terminal' - configurations: = no ip domain lookup - this disables domain lookup (do not use dns) = no logging console - this disables log messages display on console = hostname my1841 - changes router hostname (prompt should reflect) = enable secret 0 my1pass - default level is 5? but the command above still sets 5 - tested 20161208: show running-config | include enable - maybe add keyword level before 0? = service password-encryption - enables password enryption (on clear text? not needed for secret?) - type 'exit' in config-mode then write * configure wan & lan ports - type 'conf t' to start - configurations: = interface fas0/0 - prompt appended with (config-if) - configuring fast ethernet port 0 = description WAN_LINK - just a label = ip address dhcp client-id FastEthernet0/0 - set to be dhcp client = no shut = exit - get back to global config = interface fas0/1 - configuring fast ethernet port 1 = description LAN_LINK = ip address 192.168.100.1 255.255.255.0 - set private local ip = no shut = exit - get back to global config - type 'exit' in config-mode then write * configure dhcp for lan - type 'conf t' to start - configurations: = ip dhcp pool my1dhcp - prompt appended with (dhcp-config) = network 192.168.100.0 255.255.255.0 = default-router 192.168.100.1 = dns-server 8.8.8.8 = exit - get back to global config = ip dhcp excluded-address 192.168.100.1 192.168.100.9 - 'reserve' these for network management - type 'exit' in config-mode then write * configure gui http server - type 'conf t' to start - configurations: = username admin privilege 15 password check = ip http server = ip http secure-server = ip http authentication local - type 'exit' in config-mode then write * link wan & lan using nat (NOT TESTED!) - type 'conf t' to start - configurations: = interface fas0/0 = ip nat outside = exit = interface fas0/1 = ip nat inside = exit = access-list 100 permit ip any any - simple access-list - just allow everything = ip nat inside source list 100 interface fas0/0 - anything sourced from ACL 100 is permitted - outside interface (FastEthernet 0/0) is the port for PAT - type 'exit' in config-mode then write