Introduction To Network
Introduction To Network
Operating Systems
All end devices and network devices require an operating system (OS).
When using a CLI, the user interacts directly with the system in a text-
based environment by entering commands on the keyboard at a
command prompt.
[analyst@secOps ~]$ ls
Desktop Downloads lab.support.files second_drive
[analyst@secOps ~]$
IOS Navigation
This mode has limited capabilities but is useful for basic operations. It
allows only a limited number of basic monitoring commands but does
not allow the execution of any commands that might change the
configuration of the device. The user EXEC mode is identified by the
CLI prompt that ends with the > symbol.
To enter line sub configuration mode, you use the line command
followed by the management line type and number you wish to access.
Use the exit command to exit a sub configuration mode and return to
global configuration mode.
Switch(config)# line console 0
Switch(config-line)# exit
Switch(config)#
You can also move directly from one sub configuration mode to
another. Notice how after selecting an interface, the command prompt
changes from (config-line)# to (config-if)#.
Switch(config-line)# interface FastEthernet 0/1
Switch(config-if)#
A Cisco IOS device supports many commands. Each IOS command has
a specific format, or syntax, and can only be executed in the
appropriate mode.
Device Names
When the naming convention has been identified, the next step is to
use the CLI to apply the names to the devices.
Switch# configure terminal
Switch(config)# hostname Sw-Floor-1
Sw-Floor-1(config)#
Password Guidelines
When choosing passwords, use strong passwords that are not easily
guessed. There are some key points to consider when choosing
passwords:
Encrypt Passwords
!
line con 0
password 7 094F471A1A0A
login
!
line vty 0 4
password 7 094F471A1A0A
login
line vty 5 15
password 7 094F471A1A0A
login
!
!
end
Save Configurations
Configuration Files
There are two system files that store the device configuration:
IP Addresses
• Network printers
• VoIP phones
• Security cameras
• Smartphones
With the IPv4 address, a subnet mask is also necessary. An IPv4 subnet
mask is a 32-bit value that differentiates the network portion of the
address from the host portion. Coupled with the IPv4 address, the
subnet mask determines to which subnet the device is a member.
The default gateway address is the IP address of the router that the
host will use to access remote networks, including the internet.
Config IP Addressing
******************************************************************
10.0 — Introduction
Router(config)# end
Router# copy running-config startup-config
To configure the device name for R1, use the following commands.
Router> enable
Router# configure terminal
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)# hostname R1
R1(config)#
R1(config-line)# exit
R1(config)#
R1(config)# service password-encryption
R1(config)#
The legal notification warns users that the device should only be
accessed by permitted users. Legal notification is configured as follows.
R1(config)# banner motd #
Enter TEXT message. End with a new line and the #
***********************************************
WARNING: Unauthorized access is prohibited!
***********************************************
#
R1(config)#
For example, the Cisco ISR 4321 router is equipped with two Gigabit
Ethernet interfaces:
R1> enable
R1# configure terminal
Enter configuration commands, one per line.
End with CNTL/Z.
R1(config)# interface gigabitEthernet 0/0/0
R1(config-if)# description Link to LAN
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# ipv6 address 2001:db8:acad:10::1/64
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
*Aug 1 01:43:53.435: %LINK-3-UPDOWN: Interface
GigabitEthernet0/0/0, changed state to down
*Aug 1 01:43:56.447: %LINK-3-UPDOWN: Interface
GigabitEthernet0/0/0, changed state to up
*Aug 1 01:43:57.447: %LINEPROTO-5-UPDOWN: Line protocol on
Interface GigabitEthernet0/0/0, changed state to up
R1(config)#
R1(config)#
R1(config)# interface gigabitEthernet 0/0/1
R1(config-if)# description Link to R2
R1(config-if)# ip address 209.165.200.225 255.255.255.252
R1(config-if)# ipv6 address 2001:db8:feed:224::1/64
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
*Aug 1 01:46:29.170: %LINK-3-UPDOWN: Interface
GigabitEthernet0/0/1, changed state to down
*Aug 1 01:46:32.171: %LINK-3-UPDOWN: Interface
GigabitEthernet0/0/1, changed state to up
*Aug 1 01:46:33.171: %LINEPROTO-5-UPDOWN: Line protocol on
Interface GigabitEthernet0/0/1, changed state to up
R1(config)#
The table summarizes the more popular show commands used to verify
interface configuration.
show ip route
show interfaces
show ip interface
What if PC1 sent a packet to PC3? PC1 would address the packet with
the IPv4 address of PC3, but would forward the packet to its default
gateway, which is the G0/0/0 interface of R1. The router accepts the
packet and accesses its routing table to determine that G0/0/1 is the
appropriate exit interface based on the destination address. R1 then
forwards the packet out of the appropriate interface to reach PC3.
References: