Академический Документы
Профессиональный Документы
Культура Документы
Laboratorio
Applicazioni Telematiche
INFOCOM Dept
INFOCOM Dept
Packet Tracer
Cisco Packet Tracer is an academic software that allows to emulate Cisco devices Packet Tracer can be used for
Creating networks composed of generic and/or Cisco devices Emulating the Command Line Interface (CLI) of the Cisco IOS Configuring network devices by means of GUI or CLI and checking their state by creating a traffic scenario and observing the network behaviour Dynamically monitoring the state of every device or the format of all packets sent in the network
INFOCOM Dept
INFOCOM Dept
Network Devices
We can
Use real network devices (Cisco)
Create a new device
INFOCOM Dept
3. Choose a device
INFOCOM Dept
Select tool : select an item on the workspace Move tool: to move the whole topology Note tool: to add a notice Delete tool: to remove links and devices
INFOCOM Dept
Empty device
2. Click on Device
1. Select generic empty device, e.g. Router
INFOCOM Dept
2. Choose the interface you want to install; e.g. Cable Gigabit Ethernet (CGE), Fiber Gigabit Ethernet (FGE), etc
Connecting devices
To connect two devices we need to choose:
a suitable transmission medium (wired or wireless connection?)
Correct interfaces
Smart Connection
4. Click on first device. 5. Click on second device. 2. Click on Connection. 3. Smart Connection.
INFOCOM Dept
Port Status
INFOCOM Dept
Port Labels
Put the mouse cursor over the link to see which are the ports that the "Smart Connection" has used
INFOCOM Dept
Manual Connection
Choose the correct cable
Fiber if you want to use a Fiber Gigabit Ethernet interface
INFOCOM Dept
INFOCOM Dept
Configuring un Router
INFOCOM Dept
Management ports
INFOCOM Dept
Once you have edited the initial configuration, the router can be connected to the network
It is better to use the console port because it allows to display by default router startup, debugging and error messages
It can also be used for recovery procedures (in case of disasters) or for password recovery.
INFOCOM Dept
INFOCOM Dept
INFOCOM Dept
INFOCOM Dept
Now you are connected with the Router You can use the CLI of the Router
INFOCOM Dept
Cisco IOS
A router or a switch cannot work without an operating system The Cisco IOS operating system is the software architecture of Cisco routers and Catalyst switches The Cisco IOS provides the following services:
Basic functions of routing and switching
Secure and reliable access to network resources
INFOCOM Dept
CLI (1/2)
The Cisco IOS uses a command line interface (CLI)
Two possible ways of accessing
Console session
uses a low-speed serial connection or a modem it is not necessary that the router has configured the network services
Telnet session
To establish a Telnet session with a router at least one interface must be configured with an IP address and the virtual terminal must be configured for login and password
INFOCOM Dept
CLI (2/2)
The CLI uses a hierarchical structure
Each level allows to accomplish certain tasks
The sessions EXEC (executive command, the interpreter of IOS commands) supports two levels of access
User EXEC mode
The user EXEC mode allows only a limited number of basic commands for monitoring functions ("view only" mode)
It does not allow any command that could change the router configuration
The Privileged EXEC mode allows to use the whole set of commands:
It is possible to set a password for accessing Privileged EXEC It is recognized for the prompt "#"
INFOCOM Dept
To access the complete set of commands you must enter in the Privileged EXEC mode At the prompt ">" you have to write the command "enable The password to enter in the privileged mode can be set using the commands "enable password" or "enable secret
if you use both commands the latter has priority
When the login has been completed the prompt changes to "#"
INFOCOM Dept
To access the global configuration mode you have to use the command configure terminal
Router#configure terminal Router(config)#
INFOCOM Dept
INFOCOM Dept
You can also enter in the privileged mode using the command "ena
Example: Suppose that we have to set the clock and we dont know the command
Use "?" To find the command to set the clock
INFOCOM Dept
INFOCOM Dept
INFOCOM Dept
The encryption algorithm used by the command enable secret is more robust than the one used by the password encryption service
INFOCOM Dept
flies sored on it
show version shows router and IOS information show ARP shows the ARP table of the router
in the NVRAM
INFOCOM Dept
Router#configure terminal Router(config)#interface gigabitEthernet 0/0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown
INFOCOM Dept
Interface descriptions are inserted with the command "description" in the interface configuration section
INFOCOM Dept
INFOCOM Dept
2. Enter in the specific mode interface with: (for example) 3. Use the command "description" followed by the
information that should be displayed mode
INFOCOM Dept
Click on the PC and then click on the Config tab In GLOBAL Settings, you can change the name of the PC and insert the IP address of the gateway.
INFOCOM Dept
INFOCOM Dept
Configuration files
Running-config file: contains the current configuration Startup-config file: contains the last saved configuration in the NVRAM (and reloaded after the restart) To change the router configuration you have to access the required mode and enter the command To verify the changes "show running-config"
INFOCOM Dept
INFOCOM Dept
To remove the startup-config file use the command "erase startup-config" and reboot the router (you enter in the setup mode)
To save the changes (reloaded after the restart) copy the configuration file in the NVRAM using the command "copy running-config startup-config Router# copy running-config startup-config
INFOCOM Dept
Checking Connectivity
Packet Tracer allows to check network connectivity in different ways. Realtime Mode: opening a command prompt from the desktop PC and trying to ping as in the real world. Simulation Mode: It is possible to create a simulation to see packets along their path and understand how they are processed
INFOCOM Dept
In Realtime mode, select Desktop from the tabbed interface. Click the Command Prompt icon to open a command prompt from the PC.
INFOCOM Dept
INFOCOM Dept
Configuring a router using a Telnet Session Remote devices can be configured by means of a Telnet session
The device must be reachable from your PC Open the Command Prompt Open the Telnet Session You are on the Routers CLI
INFOCOM Dept
INFOCOM Dept
INFOCOM Dept
Scenario 2
Open file Lesson1-Scenario2.pkt
INFOCOM Dept
INFOCOM Dept
Telent bounce
Once you have accessed a device, you can open a telnet session toward onther device in the network, and so on
PC Rome can reach Router Rome but not Router Milan
Router Rome
TELNET TCP IP MAC MAC PHY PHY
DA IP SA
Router Milan
TELNET TCP IP MAC PHY
Works
PC Rome TELNET TCP IP MAC PHY Router Rome IP MAC MAC PHY PHY
DA IP
Doesnt Work
INFOCOM Dept
SA