IP Services
All hosts act like they always have, with one default router setting that never has to change.
The default routers share a virtual IP address in the subnet, defined by the FHRP.
Hosts use the FHRP virtual IP address as their default router address.
The routers exchange FHRP protocol messages so that both agree as to which router does what work at any point in time.
When a router fails or has some other problem, the routers use the FHRP to choose which router
takes over responsibilities from the failed router.
The Three Solutions for First-Hop Redundancy
First Hop Redundancy Protocol does not name any one protocol. Instead, it names a family of
protocols that fill the same role
HSRP Concepts
operates with an active/standby model(also more generally called active/passive
allows two (or more) routers to cooperate
HSRP Failover
HSRP Load Balancing
you canconfigure multiple instances of HSRP in the same subnet (called multiple HSRP groups),
preferring one router to be active in one group and the other router to be preferred as active in another.
Simple Network Management Protocol
application layer protocol
provides a message format for communication between what are termed managers and agents
manager
a network management application running on a PC or server
typically being called a Network Management Station (NMS)
uses SNMP protocols to communicate with each SNMP agent.
Cisco Primeseries of management products (www.cisco.com/go/prime) use SNMP (and
other protocols) to manage networks.
agents
exist in the network, one per device that is managed.
software running inside each device (router, switch, and so on), with knowledge of all the
variables on that device that describe the device’s configuration, status, and counters.
keeps a operations of the device.database of variables that make up the parameters, status, and counters for the This database, called the Management Information Base (MIB)
IOS on routers and switches include an SNMP agent, with builtwith the configuration shown later -in MIB, that can be enabled
SNMP Variable Reading and Writing: SNMP Get and Set
NMS typically polls the SNMP agent on each device
NMS can notify the human user in front of the PC or send emails, texts, and so on to notify
the network operations staff of any issues identified by the data found by polling the devices. You can even reconfigure the device through these SNMP variables in the MIB if
you permit this level of control.
NMS uses the SNMPGet messages)to ask for information from an agent.Get, GetNext, and GetBulk messages(together referenced simply as
NMS sends an SNMP Set message to write variables on the SNMP agent as a means to change the configuration of the device.
SNMP Notifications: Traps and Informs
SNMP agents can initiate communications to the NMS.
generally called notifications, use two specific SNMP messages: Trap and Inform
SNMP agents MIB variables when those variables reach a certain state.send a Trap or Inform SNMP message to the NMS to list the state of certain
The Management Information Base
Every SNMP agent has its own Management Information Base
defines variables whose values are set and updated by the agent
enable the management software to monitor/control the network device.
defineseach variable as an object ID (OID)
organizes the OIDs based in part on RFC standards, and in part with vendor-proprietary
variables
organizes all the variables into a hierarchy of OIDs, usually shown as a tree
Each node in the tree can be described based on the tree structure sequence, either by name or by number.
you could use an SNMP manager and type MIB variable 1.3.6.1.4.1.9.2.1.58.0 and click a
button to get that variable, to see the current CPU usage percentage from a Cisco router
Securing SNMP
Securing SNMP
use ACLs to limit SNMP messages to those from known servers only.
can configure an IPv4 ACL to filter incoming SNMP messages that arrive in IPv4 packets and an IPv6 ACL to filter SNMP messages that arrive in IPv6 packets.
all versions of SNMP support a basic clear-text password mechanism,
SNMPv1 defined clear-text passwords called SNMP communities.
SNMP agent and the SNMP manager need prior knowledge of the same SNMP community value (called a community string)
Get messages and the Set message include the appropriate community string value, in clear text.
NMS sends a Get or Set with the correct community string, as configured on the
SNMP agent, the agent processes the message.
SNMPv1 defines both a read-only community and a read-write community.
read-only (RO) community allows Get messages, and the read-write (RW)
community allows both reads and writes (Gets and Sets).
FTP and TFTP
example:
show running-config command:Refers to file system:running-config
show startup-config command: Refers to file nvram:startup-config
show flash command: Refers to default flash IFS (usually flash0:)
Upgrading IOS Images
copy command
works through these kinds of questions:
What is the IP address or host name of the TFTP server?
What is the name of the file?
Ask the server to learn the size of the file, and then check the local router’s flash
to ask whether enough space is available for this file in flash memory.
Does the server actually have a file by that name?
Do you want the router to erase any old files in flash?
Afterward
verifies that the checksum for the file shows that no errors occurred
view the contents of the flash file system
show flash
shows the files in the default flash file system (flash0:)
Verifying IOS Code Integrity with MD5
when Cisco builds a new IOS image, it calculates and publishes an MD5 hash value for
that specific IOS file.
IOS verify command.
will list the MD5 hash as recalculated on your router. If both MD5 hashes are
equal, the file has not changed.
Copying Images with FTP
have to include them in the configuration commands ip ftp username wendellcopy command. For instance, the global and ip ftp password odom
would have configured those values.
The FTP and TFTP Protocols
copycommand, when using the tftp or ftp keyword, makes the command act as a client
FTP ProtocolBasics
uses TCP
TCP port 21 and in some cases also well-known port 20.
FTP uses a client/server model for file transfer
FTP uses two types of TCP connections:
Control Connection: Used to exchange FTP commands
Data Connection: Used for sending and receiving data, both for file transfers and for output to display to a user
when a client connects to an FTP server, the client first creates the FTP control connection
server listens for new control connections on its well-known port 21
client allocates any new dynamic port (49222 in this case) and creates a TCP connection to the server
Passive mode helps solve the firewall restrictions by having the FTP client
initiate the FTP data connection to the server.
passive mode does not simply cause the FTP client to connect to a well-known
port on the server;
The FTP client changes to use FTP passive mode, notifying the server using the FTP PASV command.
The server chooses a port to listen on for the upcoming new TCP
FTP over TLS (FTP Secure)
FTPS encrypts both the control and data connections with TLS, including the exchange of the usernames and passwords
FTPS explicit mode process:
The client creates the FTP control TCP connection to server well-known port 21.
The client initiates the use of TLS in the control connection with the FTP AUTH command.
When the user takes an action that requires an FTP data connection, the client
creates an FTP data TCP connection to server well-known port 21.
The client initiates the use of TLS in the data connection with the FTP AUTH
command.
TFTP Protocol Basics
Trivial File Transfer Protocol uses UDP well-known port 69. Because it uses UDP, TFTP adds a
feature to check each file for transmission errors by using a checksum process on each file after the transfer completes.
the code requires less space to install, which can be useful for devices with limited memory.
can Get and Put files, but it includes no commands to change directories, create/remove directories, or even to list files on the server.
does not support even simple clearit should accept requests from any TFTP client.-text authentication. In effect, if a TFTP server is running,