:::: MENU ::::
Showing posts with label Computer Networking. Show all posts
Showing posts with label Computer Networking. Show all posts

Saturday, April 20, 2024

It stands for Secure Socket Layer/Transport layer Security. It is encryption based internet security protocol which works on transport layer of OSI model. It was first developed by Netscape in 1995. After that some modification was made by IETF (Internet Engineering Task Force) and renamed as TLS. So SSL is direct predecessor of TLS, and both are logically same except some insignificant modification.

It prevents man in the middle (MITM) attack. The intruders can intercept data and can damage data integrity without awareness of senders and recipents. A web server with SSL protocol behave like HTTPS.

How does SSL/TLS work?

SSL/TLS protocol need activation between client-server. Symmetric key encryption is going for data integrity. But asymmetric key encryption technique is required for exchanging symmetric key between client-server. Without asymmetric key technique, symmetric key can be vulnerable.



SSL handshake has multiple steps. Without handshaking TCP/UDP connection won’t be established. The picture below is trying to explain the abstract required steps.


Credits:

https://www.youtube.com/watch?v=0yw-z6f7Mb4&t=1051s

https://www.cloudflare.com/learning/ssl/what-is-ssl/

Friday, June 17, 2022

OSPF stands for Open Shortest Path First. OSPFv2 is used along with IPv4 network layer protocol. But OSPFv3 is for IPv6.
It is developed as an alternative distance vector algorithm (routing information protocol. abbreviation- RIP).
Lets make clear concept about link state: Every router has multiple interfaces and each interface acts of a network segment and each of them is called a link of network. Network segment could be stub network, connected two routers etc. So Link-State refers the information of the state of link. A link-state info could have the network prefix, prefix length, and cost etc.
OSPF protocol can be summarize into three components. 
They are 
1. Routing protocol messages: They are five types. 
2. Constructing data structures: they are three types; Each of them has special significance. They are 
a. adjacency database:
It keeps information about its neighbors e.g. a router has 3 interfaces connected with other routers, so it has 3 neighors. this database will be unique for each router.
b. Link-state database: 
Most important table it is. This database has complete struture of topology. E.g. suppose a router belongs to an area 0 in which somehow total 5 routers are connected with each others and they could be in star topology, mesh topology etc. So all router belong to same topology must have identical LSDB.
c. Forwarding database: 
It keeps routes generated by running routing algorithms (Shortest path first)
3. Applied algorithm: Dijkstra Shortest path first.
routing protocol messages:
Routers running OSPF exchange messages to convey routing information using five types of packets. These packets, as shown in the figure, are as follows:

1. Hello packet
Discovering neighbour routers.
2. Database description packet (DBD). 
Note that it means exchaning LSDB/ topology table to other routers. It is necessary, to make sure the LSDB is identical on every router in the area.
3. Link-state request packet (LSR)
Note that, it is used by a router when a router needs specific info about an entry of link state table.
4. Link-state update packet (LSU)
it is actually a response of request of LSR.
5. Link-state acknowledgment packet
it is an acknowledgment of receivng response packet (LSU).

Most generic processes that a router go through to build its routing table are:
1. collect neighbouring info and build neighbour table using Hello protocol packet.
2. exchange neighbour table-info other router; its called exchaning link state advertisements (LSAs) and LSUs contains LSAs.
3. establishing link state database
4. execute SPF (Shortest Path First) algorithm
5. build routing table


OSPF configuration
1. enable OSPFv2 on router
command: (config)# router ospf <process id>
Note for process id:
The process-id value represents a number between 1 and 65,535 and is selected by the network administrator. The process-id value is locally significant, which means that it does not have to be the same value on the other OSPF routers to establish adjacencies with those neighbors. It is considered best practice to use the same process-id on all OSPF routers.
Some important terms:
Router id:
It is represented as IPv4 address. The router ID is used to uniquely identify an OSPF router. All OSPF packets exchanged among other routers have the router ID of the originating router. Every router requires a router ID to participate in an OSPF domain. The router ID can be defined by an administrator or automatically assigned by the router.
So, adminstrator could have good control on network, if the router id is configured in the recommanded ways.
there are three available ways:
1. explicitly configure the router id through command. It is highly recommanded way.
(config-router)# router-id <rid>
2. Secondly if it's not configured in explicit way, router tries to choose configured highest IPv4 loopback address.
(config)#interface loopback 1
(config-if)# ip address 1.1.1.1 255.255.255.255
(config-if)# end
justifying:
R1# show ip protocols | include Router ID
Expected output: Router ID 1.1.1.1

3. Lastly, router uses highest IPv4 address from active IPv4 interface's addresses.


OSPF configuration on networks:
There are two types of networks: point-to-point and multiaccess network.
OSPF can be enabled on router using Network command.
(config-router)# network <network-address> <wildcard-address> area <area-id>
alternative process is:
(config-router)# network <direct interface address> <quad zero> area <area-id>
The advantages of this command is no need to calculate wildcard address from subnet mask.
Another alternative process is:
(config-if)# ip ospf <process-id> area <area-id>
(when an interface or a router is activated as OSPF router. All OSPF interface sends out hello packet and by default they are supposed to be in multiaccess network.
so to make an interface as point-to-point network the following command is applied on that interface:
(config-if)# ip ospf network point-to-point
Note:
1. The network-address wildcard-mask syntax is used to enable OSPF on interfaces. Any interfaces on a router that match the network address in the network command are enabled to send and receive OSPF packets.
    2.The area area-id syntax refers to the OSPF area. When configuring single-area OSPFv2, the network command must be configured with the same area-id value on all routers. Although any area ID can be used, it is good practice to use an area ID of 0 with single-area OSPFv2. This convention makes it easier if the network is later altered to support multiarea OSPFv2.
OSPF in Multi-Access Network:
One important difference apart from point-to-point network is DR controls the distribution of LSAs. DR uses multicast address 224.0.0.5 for distribution and 224.0.0.6 multicast address is used for listening from DROTHER routers. Because DROTHERs use the multiaccess address 224.0.0.6 (all designated routers) to send OSPF packets to the DR and BDR.
In brief the role of DR is:
Only the DR and the BDR process the LSA sent by DROTHER router using the multicast IPv4 address 224.0.0.6. The DR then sends out the LSA to all OSPF routers using the multicast IPv4 address 224.0.0.5.
(Ethernet LANs are the most common example of broadcast multiaccess networks.)
verifying interface ospf state:
# show ip ospf interface <interface name>
It shows neighbor list of router:
#show ip ospf neighbor 
OSPF DR and BDR elections are not pre-emptive. If a new router with a higher priority or higher router ID is added to the network after the DR and BDR election, the newly added router does not take over the DR or the BDR role. This is because those roles have already been assigned. The addition of a new router does not initiate a new election process.
Router(config-router)# auto-cost reference-bandwidth Mbps
ip ospf cost 
Verification:
# show ip ospf
Verify the OSPF process
# show ip ospf neighbor
to display neighbor adjacencies.
# show ip protocols
# show ip ospf interface brief
# show ip ospf interface <interface name>
# show ip route ospf

Wednesday, June 1, 2022

NAT: Network Address Translation and PAT: Port Address Translation

Terms:
NAT Pool: A container of Public IPv4 addresses maintained NAT-enabled router. NAT enabled router can pull one of the public IPv4 addresses from NAT Pool while translating from private IPv4
addresses to public addresses.
Note: A NAT router typically operates at the border of a stub network; A stub network comprises one or more network with a single connection from neighboring network. 

NAT Terminalogy:
- Inside local
- Inside global
- Outside local
- Outside global
Local address - A local address is any address that appears on the inside portion of the network.
Global address - A global address is any address that appears on the outside portion of the network.
Inside address - The address of the device which is being translated by NAT.
Outside address - The address of the destination device.


Lets make it clear with an example:
Suppose a personal computer PC1 (ip:192.168.0.1) is connected to a private network with a NAT-enabled router. NAT pool has one public IPv4 address (201.165.12.1). Now PC1 is trying to send a data packet to a web server (105.15.12.5). 

NAT table will be generated as follow:
Inside local address: 192.168.0.1
Outside local address: 105.15.12.5

Inside global address: 201.165.12.1
Outside global address: 105.15.12.5
NAT technology can be divided into two important types:
1. Static NAT
2. Dynamic NAT
Useful Commands for static NAT configuration:
make translation entry:
    (config) # ip nat inside source static <private-address> <public-address>
configuring inside and outside interface:
    (config-if)# ip nat [inside | outside]
Verification:
# show ip nat translation
# show ip nat statistics
Useful Commands for Dynamic NAT Configurations:
Step 1: make NAT Pool:
(config)# ip nat pool <pool-name> <starting-address> <end-address> <net-mask>
Step 2: make a ACL list
(config)# access-list <access-list-number> <ip-address> <wildcard-mask>
Step 3: bind ACL list to NAT pool
(config)# ip nat inside source list <ACL name/number> pool <NAT-pool-name>
Step 4: configuring inside interface similiar to static NAT
(config-if)# ip nat inside
Step 5: configuring outside interface similiar to statice NAT
(confi-if)# ip nat outside
Verification commands are the same as Static NAT.
Note: # show running-config | include NAT
can be useful to verify actual commands.
    PAT configuration:
1. Single inside global address
R2(config)# ip nat inside source list 1 interface serial 0/1/1 overload
R2(config)# access-list 1 permit 192.168.0.0 0.0.255.255
R2(config)# interface serial0/1/0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# interface Serial0/1/1
R2(config-if)# ip nat outside

2. Pool of inside global address
R2(config)# ip nat pool NAT-POOL2 209.165.200.226 209.165.200.240 netmask 255.255.255.224
R2(config)# access-list 1 permit 192.168.0.0 0.0.255.255
R2(config)# ip nat inside source list 1 pool NAT-POOL2 overload
R2(config)# 
R2(config)# interface serial0/1/0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# interface serial0/1/1
R2(config-if)# ip nat outside
R2(config-if)# end

Wednesday, May 25, 2022

What is ACL in OSI Network Layer? 
It stands for Access Control List and it is a packet filtering technique. It works in the same way as a router determines a route for an incoming packet. ACL is a sequential list of permits or denies statements and each statement is called Access Control Entry (ACE).
What is Packet Filtering in terms of ACL??
When network traffic passes through a router's interface which is configured with an ACL, that router takes the packet IP information and compares that information against each ACE, in sequential order, to determine if the packet matches one of the ACEs. This process is called packet filtering.

Understanding of the Difference between Inbound and outbound ACLs:
Inbound ACLs are best used to filter packets when the network attached to an inbound interface is the only source of packets that need to be examined. For example, a gateway router has an interface for a corporate private network and the admin of that network wants to impose Access Control on the browsing activities of office employers. So Admin can apply inbound ACLs on the gateway router's interface to implement his desire. 
Outbound ACLs are best used when the same filter will be applied to packets coming from multiple inbound interfaces before exiting the same outbound interface. So it works when network packets are supposed to exit an interface.

Classes of ACLs seen from another perspective:

A. Standard ACLs: Let's understand the Characteristics of Standard ACLs:
  1. It only examines the source IP address of the network packet.
  2. Preferred placement is as close as the destination. If so, then the network system could utilise the bandwidth of the network.
  3. Command could be executed in global configuration mode while configuring numbered ACLs, or else using named ACL configuration mode. Example:
        A command for Numbered ACLs
(config)# access-list <acl-number> [permit | deny] <source-IP-address> <wildcard-mask> 
or
        Command for Named ACLs
(config)# ip access-list standard <name>
(config-ext-nacl)# [permit | deny] <source-IP-address> <wildcard-mask> 
B. Extended ACLs: Let's explore the Characteristics of Extended ACLs:
  1. It can examine the source and destination IP address along with layer-4 protocol (TCP/UDP) and port number.
  2. Preferred placement is as close as the source of network packet.
  3. Command could be executed in global configuration mode while configuring numbered ACLs or named ACL configuration mode. Example:
    (config)# access-list 10 remark ACE permits ONLY host 192.168.10.10 to the internet
     (config)# access-list 10 permit <layer-4-protocol> <source-IP-address> <wildcard-mask> <destination-IP> <wildcard-mask> eq www
or
(config)# ip access-list extended <name>
       (config-ext-nacl)# permit <source-IP-address> <wildcard-mask>  <destination-IP> <wildcard-mask>


```
Special note for Numbered and Named ACLs:
        How to know the number range for standard and extended ACLs??
(config)# access-list ?
[ this will show the number range for standard and extended access-list. ]
But Named ACLs are the preferred method.
For example:
(config)# ip access-list extended FTP-FILTER
[ this will create an ACL named "FTP-FILTER". Use of Block letters in naming ACL is best practice.]
```
Now bind created ACLs (numbered/Named) with an router interface:
    (config-if) # ip access-group [access-list-number | access-list-name] [in | out]
    [ access-group is keyword and [in | out] is required for inbound / outbound respectively.]
Let's say, If an ACLs is created with some bug, now how to Remove that ACL??
    (config)# no access-list <access-list-name or number>


Now how to verify whether the configuration succeeds or not: 
Verification Commands:
# show IP interface <interface name> 
            [It helps to clarify which access lists are applied to it and in which direction.]
# show access-lists
```
ACL Statistics:
By default, for every ACEs a counter is showing while # show access-lists is entered. 
If anyone wants to remove the counter, then the following command will clear the counter. privileged mode command:
# clear access-list counters <ACL-Name or Number>
```
How can you secure Vty line using ACLs??
It's an important concept about ACLs. To secure Vty (virtual teletype) line, network engineer can apply ACL to the Vty line.
That command is executed in line configuration mode. 
(config-line)# access-class <access-list-number or name> <in | out>
Example:
R1(config)# username ADMIN secret class
R1(config)# ip access-list standard ADMIN-HOST
R1(config-std-nacl)# remark This ACL secures incoming vty lines
R1(config-std-nacl)# permit 192.168.10.10
R1(config-std-nacl)# deny any
R1(config-std-nacl)# exit
R1(config)# line vty 0 4
R1(config-line)# login local
R1(config-line)# transport input ssh
R1(config-line)# access-class ADMIN-HOST in
R1(config-line)# end


Let's summarise the most important and useful ACLs Commands:
Suppose we are configuring numbered 10 ACLs or HTTP-FILTER named ACLs.
        (config)# access-list 10 permit 192.168.0.1 0.0.0.0.
        (config)# IP access-list standard HTTP-FILTER
        (config-std-nacl)# remark HTTP filter for hosts
        (config-std-nacl)# permit 192.168.0.1 0.0.0.0
        (config-if)# IP access-group HTTP-FILTER in
        (config-line)# access-class ADMIN-HOST in


```
The last ACE statement of an ACL is always implicit deny that blocks all traffic. This statement is automatically implied at the end of an ACL by default even though it is hidden and not displayed in the configuration.
```

Sunday, June 27, 2021

There are 7 layers in OSI (Open Systems Interconnection) model. The Data-link layer is the 2nd layer of the OSI model. LAN Switch is the most popular data link layer device. Data link layer address or MAC address (Media Access control) is used for performing switch basic functionalities. LAN switch has some features to alleviate network congestion, one of them is high dense ethernet-ports orientation. Those ports are name ingress and egress ports according to their uses.

Ingress: the ports that are responsible for entering data-frame into LAN switch.

Egress: the ports that are responsible for leaving the data frame from the LAN switch.

Note: Ethernet frame will never be forwarded out using the same port, from where the frame is received.

 

LAN switch is made up of integrated circuit and software that 

can control paths of data-frame. Some fundamental roles of 

switch are:

  • receive ethernet frame using ingress ports.
  • are responsible for forwarding incoming data-frame by using egress ports.
  • responsible for learning (MAC address to port) mapping and maintain MAC address table or CAM (content addressable memory)

 

The data-link layer frame is made up of useful fields, there are: 

Preamble, Destination Mac address, source MAC address, FCS checksum (CRC) etc. These fields are used to operate switch functions. Switches receive incoming ethernet frame, then choose egress ports based on destination MAC address, references table.

The Switch functions can be divided into two steps:

Step 1. Learn – Examining the source MAC Address

Switch checks for new information by investigating source MAC address, and ingress port/incoming port. Then it stores the collected information in its MAC address table.

  • If the source MAC the address does not exist in the MAC address table, the MAC address and incoming port number is added to the table.


  • If the source MAC address does exist, the switch updates the refresh timer for that entry. By default, most Ethernet switches keep an entry in the table for five minutes. If the source MAC address does exist in the table but on a different port, the switch treats this as a new entry. The entry is replaced using the same MAC address, but with the more current port number.

 
Step 2. Forward - Examining the Destination MAC Address
If the destination MAC the address is a unicast address, the switch will look for a match between the destination MAC address of the frame and an entry in its MAC address table:
·       If the destination MAC the address is in the table, it will forward the frame out of the specified port.
 
·       If the destination MAC address is not in the table, the switch will forward the frame out all ports except the incoming port. This is called an unknown unicast. If the destination MAC address is a broadcast or a multicast, the frame is also flooded out all ports except the incoming port.
Concerning security, latency issues, there are two types of forwarding methods in switch. Layer 2 switches use one of two methods to switch frames:
  • Store-and-forward switching - This method makes a forwarding decision on a frame after it has received the entire frame and checked the frame for errors using a mathematical error-checking mechanism known as a cyclic redundancy check (CRC). Store-and-forward switching is Cisco’s primary LAN switching method. it is more distinguishable for its error checking, automatic buffering features.
 
  • Cut-through switching - This method begins the forwarding process after the destination MAC address of an incoming frame and the egress port have been determined. So, it is capable of performing rapid frame switching. It has two variants: fast-forward switching, fragment-free switching.
 
Conclusion is that layer-2 switch is better than legacy hub network device and can operate in full duplex mode. It minimizes the collision domain, when it operates in full duplex mode. It maintains MAC address table and switching frame more intelligently. In addition, it has some useful characteristics such as fast port speeds, fast internal switching, large frame buffers, high port density etc. that upgrade network performance by reducing network congestion.

Monday, March 22, 2021

IPv6 - 128 bit
enhancement: ICMPv6, includes address resolution and address auto-configuration

NAT technology is problematic:
- for many applications.
- creates latency
- has limitations that severely impede peer-to-peer communications.



There are three broad categories of IPv6 addresses:
1. Unicast 
2. Multicast
3. Anycast


The prefix length is used in IPv6, unlike slash notation.
example:


Strongly recommended using 64-bit interface id for most networks, because SLAAC uses 64bits for the interface-id as well as makes subnetting easier to create and manage.

IPv6 Unicast address types:
1. Global unicast - use GUA (Global unicast Address) for routing globally and reach the remote network host.
2. link-local - use fe80::/10 - febf::/10 type address to send a packet to the any destination in its own network.
3. loopback::1 - a special type of address, which is used to check its own functions of a host.
4. Unique Local - fc00::/7 - fdff::/7
5. embedded ipv4
6. unspecified address


Link-local address (LLA):

Every ipv6-enabled network interface must an LLA. Ipv6-enabled host creates an IPv6 LLA even if the device hasnot been assigned a GUA. LLA has a specified range of fe80::/10 - febf::/10. There are two ways the device can obtain an LA.
1. Statically.
2. Dynamically
-> By using randomly generated values.
-> extended unique identifier (EUI) method which uses MAC address along with additional bits.
Note: Best practice is to set the default gateway address equal to Router's LLA. Though the Router's GUA will work fine.



Ipv6 Global unicast address (GUA):

001 or 2000::/3 is fixed for GUA. So it begins with 2 or 3 e.g. 2000::/3 - 3fff::/3. As a result, 1/8th if the total available ipv6 address space is being used worldwide.

Note: 2001:db8::/32 address has been reserved for documentation purposes as well as used in examples.


global routing prefix - 48 bits
subnet id - 16 bits
interface-id - 64 bits

Note: GUA is not a requirement for a host for being active in its own network. Only LLA needs for 


There are two ways in which a device can obtain an IPv6 GUA.
1. Statically
2. Dynamically
-> Stateless
-> SLAAC only
-> SLAAC with DHCPv6 server (Stateless DHCPv6)
-> Stateful
-> DHCPv6 server (Stateful DHCPv6)


SLAAC only:
The router sends a Router Advertisation message with Some information every 200 seconds:
- Network prefix
- prefix-length
- default gateway, the LLA for router
- DNS server
- MTU

Use the EUI-64 process or randomly generated 64 bit for interface id. A host can also send a Router Solicitation (RS) message requesting that an IPv6-enabled router send the host an RA. 

Note: There is no further information available from a DHCPv6 server.

Stateless DHCPv6:
The router sends Router Advertisation message with:
- Network prefix
- prefix-length
- default gateway, the LLA for router

stateless DHCPv6 provides:
- DNS server address
- Domain name
similarly, EUI-64 or randomly generated process can be used for interface id.



EUI-64 - The host creates an interface ID using its 48-bit MAC address. The host inserts the hex value of fffe in the middle of the address and flips the seventh bit of the interface ID. This changes the value of the second hexadecimal digit of the interface ID. Some operating systems default to the randomly generated interface ID instead of the EUI-64 method, due to privacy concerns. This is because the Ethernet MAC address of the host is used by EUI-64 to create the interface ID.

Stateful DHCPv6:
The router sends a Router Advertisation message with:
-default gateway, the LLA for router

DHCPv6 provides:
- GUA
- DNS server address
- Domain name 


Note: Serial interface doesn't have an ethernet MAC address.


Multicast address: have fix prefix bit ff00::/8. this address can only be used as a destination address and not for the source address.
there are two types of IPv6 multicast addresses:
- Well-known multicast addresses.
--> ff02::1 means all node
--> ff02::2 means all router
-  Solicited node multicast address



 









Tuesday, March 9, 2021

VLAN is a technology of switched network that provides segmentation on physical LAN and creates logical LAN without connecting end-devices via physical cable.

Characteristics of A simple VLAN configuration:
1. Each VLAN is associated with each subnet and subnet mask
2. it is considered a separate logical network.
3. layer-3 devices are necessary for communication between two separate VLAN.
4. a VLAN creates a logical broadcast domain.

 


 


Important benefits of having VLAN:
1. smaller broadcast domains
2. improved security
3. improved IT efficiency
4. Reduced cost
5. Better performance
6. Simpler project and application management

Friday, January 8, 2021

 

Contents Index:

 

Cisco networking device’s Operating System:  Each hardware device has an Operating system such as windows, Linux, macOS. Operating systems are required for making hardware device interactive between application software and user. Hence every cisco networking device requires an operating system that is named the Internetwork Operating System (IOS). Two types of secondary memory unit are in router and switch. There are Flash memory and NVRAM. Cisco IOS is located in flash memory. NVRAM is another type of secondary memory which is specific for storing a startup configuration file.

Router and switch configuration mode: For configuring switch and router networking device, two major configuration mode have to be known to all.

Two main configuration mode are:

  •        User Exec mode
  •        Privileged Exec mode

To configure the device, the Administrator must enter to Global Configuration mode referred to as global config mode. There are two sub-configuration modes referred to as line-configuration mode and interface-configuration mode. For configuring interfaces of router and switch, interface configuration mode is required as well as to configure console, SSH connects, line-configuration mode is required. For security reason, Cisco IOS separates whole management mode into these various modes.

User Exec mode: In this mode, very few monitoring commands can be executed. That’s why it is referred to as “view-only” mode. The mode can be identified by examining the Command Line The interface of Cisco IOS. In the CLI of a switch networking device, “switch >” indicates User Exec mode. As well as “router>” indicates User Exec mode of router intermediary device.

Privileged Exec Mode: This the main authorized mode. The administrator has to access this mode to perform all commands and features and can utilize any display commands and management commands. The mode can be identified by examining the Command Line Interface of Cisco IOS. In the CLI of a switch networking device, “switch#” indicates privilege Exec mode. As well as “router#” indicates Privilege Exec mode of router intermediary device.

Navigation among various modes: Several commands are used to move to and from different modes. By default, the device’s CLI program holds on User Exec mode on starting of the program. To enter privileged EXEC mode from User Exec mode, enable command is used and to back from privilege to user Exec mode, disable command is required to enter.


Switch> enable

Switch#

Switch#configure terminal

Switch(config)#

Switch(config)#interface fa0/0

Switch(config-if)#

Switch(config)#line console 0

Switch(config-line)#

Router> enable

Router#

Router#configure terminal

Router(config)#

Router(config)#interface fa0/0

Router(config-if)#

Router(config)#line console 0

Router(config-line)#


To get entered into global configuration mode, configure terminal privilege Exec command is required. Then to enter sub-configuration mode, interface and line commands are required. To move from any sub-configuration mode to the privileged EXEC mode, enter the end command or enter the key combination “Ctrl+Z”.

 

Basic commands for the router to ready to use:

Set hostname: --> (config)#

hostname [name]

set domain name: --> (config)#

IP domain-name know-inform.blogspot.com

Set Banner: -->(config)#

banner motd $This is Router$

 

Device Hardening:

Console line security --> (config-line)#

line console 0

password cisco12345

login

logging synchronous

exec-timeout 60

exit

 

Privileged Exec level security -->(config)#

enable secret class12345

service password-encryption

security passwords min-length 10

login block-for 120 attempts 2 within 30

crypto key generate rsa general-key modulus 1024

 

Remote access level security -->(config-line)#

line vty 0 4

password cisco12345

transport input ssh

login local

logging synchronous

exec-timeout 60

exit

 

line aux 0

password cisco12345

login

logging synchronous

exec-timeout 60

exit

 

creating Local database: --> (config)#

username [admin] privilege 15 secret [Cisco_CCNA7]




References:

1. Cisco- Cisco Certified Network Associated Course Contents

2. Cisco Website