Sieci Komputerowe. Ćwiczenie nr.12 Prowadzący: dr Zbigniew

Transkrypt

Sieci Komputerowe. Ćwiczenie nr.12 Prowadzący: dr Zbigniew
Sieci Komputerowe. Ćwiczenie nr.12
Prowadzący: dr Zbigniew Lipiński
Ćwiczenie nr. 12. Podstawowa konfiguracja routera Cisco.
1. Pytania.
Jakie role pełnią routery w sieciach internetowych.
Co to są protokoły routingu? Podać przykłady.
W jaki sposób budowane są tablice routingu na routerach?
Wymienić rodzaje pamięci routera.
Jakie rodzaje interfejsów są dostępne na routerze?
Wymienić tryby pracy routera.
Jakie są metody dostępu do routera.
2. Łączenie się z routerem za pomocą Hyperterminala.
Jakiego rodzaju kabel stosowany jest do łączenia hosta z konsolą routera?
3. Podstawowa konfiguracja routera.
Po zalogowaniu się na router poprzez konsolę (narzędzie Putty) wykonać następujące polecenia.
a. Przejście w tryb uprzywilejowany.
Udostępnienie trybu uprzywilejowanych uprawnień privileged EXEC mode, pojawia się linia poleceń Router#.
Tryb zwykły to user EXEC mode.
Router108> enable
b. Nadanie routerowi nazwy.
Router108#configure terminal
Router(config)#hostname router108
// nadanie routerowi nazwy Router108.
Router108(config)# ?
// przegląd komend w opcji (config)
Router108(config)# exit
// wyjscie z opcji (config)
a. Zabezpieczenie dostępu do routera hasłami.
RU108(config)#enable secret student
RU108(config)#service password-encryption (lub RU108(config)#enable password student)
RU108(config)#line console 0
RU108(config-line)#password cisco1
RU108(config-line)#login
RU108(config)#line vty 0 4
RU108(config-line)#password cisco2
RU108(config-line)#login
RU108(config)#line aux 0
RU108(config-line)#password cisco3
RU108(config-line)#login
RU108(config-line)#exit
RU108(config)#no service password-encryption
c. Przypisanie interfejsowi fastEthernet 0/0 routera adresu IP.
Router108#configure terminal
Router108(config)#interface fastEthernet 0/0
Router108(config-if)#ip address <adres IP > <maska podsieci>
Router108(config-if)#no shutdown
Router108(config-if)# exit
Router108(config)# exit
d. Zapisać konfigurację routera do NVRAM.
RU105G#copy running-config startup-config
1
Sieci Komputerowe. Ćwiczenie nr.12
Prowadzący: dr Zbigniew Lipiński
4. Dostęp do routera za pomocą przelądarki internetowej.
Uruchomienie serwera WWW na routerze.
Router#config terminal
Router108(config)#ip http server
Router108(config)#ip http port 80
Router108(config)# exit
5. Przegląd komend w systemie operacyjnym routera.
Router108#show clock
Shows the time set in the router
Router108# clock set 13:32:00 2 JUNE 2008 Ustawienie czasu na routerze.
Router108#show clock
Shows the time set in the router
Router108#show interfaces
Router108#show controllers
Router108#show interfaces serial 0/1/0
Router108#show interfaces serial 0/1/1
Router108#show controllers serial 0/1/0
Router108#show hosts
//Displays a cached list of host names and addresses.
Router108#show users
//Displays all users who are connected to the router.
Router108#show history
//Displays a history of commands that have been entered.
Router108#show flash
//Displays information about flash memory and what IOS files are stored
there.
Router108#show version
//Displays information about the currently loaded software version along
with hardware and device information.
Router108#show arp
//Displays the ARP table of the router.
Router108#show protocols
//Displays the global and interface-specific status of any configured Layer
3 protocols.
Router108#show startup-config
//Displays the saved configuration located in NVRAM
Router108#show running-config
//Displays the contents of the currently running configuration file or the
configuration for a specific interface, or map class information.
Usunięcie konfiguracji routera.
Router108#erase startup-config
2