TEXT 23
Data Communication & Network Lab 2 Guest on 28th February 2022 12:16:33 PM
  1. ipconfig - shows the configuration of IP Addresses
  2.  
  3. Subnet Mask - Differentiates between host portion and network portion.
  4.  
  5. 192.168.1.106
  6. 106 represents the host portion.
  7. 192.168.1 represents the network portion
  8.  
  9. 255 means that it is fixed and cannot be changed.
  10. 0 indicates host portion.
  11.  
  12.  
  13. the dots are called octates
  14. Divided into 4 sections
  15. One section consists of 8 bits
  16. Total 32 bits
  17.  
  18. Default Gateway - it is the router's IP address
  19. communicates with different devices.
  20.  
  21. ipconfig /all - shows IPs info in detail
  22.  
  23. DHCP - Dynamic Host Control Protocol - This assigns the IPs dynamically.
  24.  
  25. Lease Obtained - When the IP is assigned
  26. Lease Expires - when the IP will be taken
  27.  
  28. DNS Server
  29. Points the IP to the domain
  30.  
  31. Physical Address is also known as MAC Address
  32.  
  33. ping -t hostname
  34. -t means it will keep pinging
  35.  
  36. DNS translates the domain to the IPs.
  37.  
  38. tracert - shows the complete route from source to the destination
  39.  
  40. hop count = the amount of routes it will go through
  41.  
  42. nslookup - to find the IPs bound to the name servers.
  43.  
  44. Initial Configuration of Router - do not write yes to enter initial configuration
  45. symbol > user mode is usually the default when entered into router terminal
  46.  
  47. To enter into the privilleges mode, just write enable, symbol #
  48.  
  49. To enter into the global configuration mode, just write configure terminal
  50. the symbol is (config)
  51.  
  52. To move back to the previous mode, just write exit
  53.  
  54. To change the hostname of the router, just write hostname newhostname
  55.  
  56. line console 0 - this means that the console port is being accessed
  57. to change the password, write password new password
  58. after changing password, write login on same mode to save the password
  59. then you can write end in line configuration to completely go out from all the mods
  60.  
  61. CTRL + SHIFT + 6 - to quit when it is stuck
  62.  
  63. to disable terminal from getting stuck due to random characters
  64. no ip domain-lookup
  65.  
  66. to show a banner or motd(message of the day) when client logins into the router
  67. banner motd "Welcome to Main Router"
  68. If motd needs to be defined without " then use a same character to begin and start wiht
  69. e.g
  70. banner motd @ Welcome to Main Router @
  71.  
  72. to put password to enter into the privilleges mode, write enable password your password
  73.  
  74. use show ? to see all the commands.
  75. show clock - to show the date and time of the system
  76.  
  77. changing the clock settings:
  78. clock set 16:05:00 28 February 2022
  79.  
  80. show running-config - this command shows all the configuration done by the user
  81.  
  82. reload - to reboot the operating system

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.