- ipconfig - shows the configuration of IP Addresses
- Subnet Mask - Differentiates between host portion and network portion.
- 192.168.1.106
- 106 represents the host portion.
- 192.168.1 represents the network portion
- 255 means that it is fixed and cannot be changed.
- 0 indicates host portion.
- the dots are called octates
- Divided into 4 sections
- One section consists of 8 bits
- Total 32 bits
- Default Gateway - it is the router's IP address
- communicates with different devices.
- ipconfig /all - shows IPs info in detail
- DHCP - Dynamic Host Control Protocol - This assigns the IPs dynamically.
- Lease Obtained - When the IP is assigned
- Lease Expires - when the IP will be taken
- DNS Server
- Points the IP to the domain
- Physical Address is also known as MAC Address
- ping -t hostname
- -t means it will keep pinging
- DNS translates the domain to the IPs.
- tracert - shows the complete route from source to the destination
- hop count = the amount of routes it will go through
- nslookup - to find the IPs bound to the name servers.
- Initial Configuration of Router - do not write yes to enter initial configuration
- symbol > user mode is usually the default when entered into router terminal
- To enter into the privilleges mode, just write enable, symbol #
- To enter into the global configuration mode, just write configure terminal
- the symbol is (config)
- To move back to the previous mode, just write exit
- To change the hostname of the router, just write hostname newhostname
- line console 0 - this means that the console port is being accessed
- to change the password, write password new password
- after changing password, write login on same mode to save the password
- then you can write end in line configuration to completely go out from all the mods
- CTRL + SHIFT + 6 - to quit when it is stuck
- to disable terminal from getting stuck due to random characters
- no ip domain-lookup
- to show a banner or motd(message of the day) when client logins into the router
- banner motd "Welcome to Main Router"
- If motd needs to be defined without " then use a same character to begin and start wiht
- e.g
- banner motd @ Welcome to Main Router @
- to put password to enter into the privilleges mode, write enable password your password
- use show ? to see all the commands.
- show clock - to show the date and time of the system
- changing the clock settings:
- clock set 16:05:00 28 February 2022
- show running-config - this command shows all the configuration done by the user
- reload - to reboot the operating system
Recent Pastes