Sieci i Systemy Operacyjne II |
||
Temat: Konfiguracja sieci na urządzeniach CISCO |
||
Wykonali:
|
Grupa 403 |
Data wykonania 11.05.2010 |
Po skonfigurowaniu HyperTerminal podłączyliśmy router do komputera. Wydruk z uruchomienia routera:
System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 2048 Kbytes of main memory
(…
F3: 3873980+90808+232788 at 0x3000060
cisco 2500 (68030) processor (revision D) with 2048K/2048K bytes of memory.
Processor board ID 03261469, with hardware revision 00000000
Bridging software.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
2 Ethernet/IEEE 802.3 interfaces.
2 Serial network interfaces.
32K bytes of non-volatile configuration memory.
4096K bytes of processor board System flash (Read ONLY)
Podłączyliśmy sieć pod router, skasowaliśmy pamięć komendą erase startup-config i po restarcie rozpoczęliśmy dialog wstępnej konfiguracji tak jak podano to w instrukcji:
--- System Configuration Dialog ---
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Would you like to enter the initial configuration dialog? [yes]: yes
First, would you like to see the current interface summary? [yes]: no
Configuring global parameters:
Enter host name [Router]: pn12
The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.
Enter enable secret: cisco
The enable password is used when there is no enable secret
and when using older software and some boot images.
Enter enable password: cisco
% Please choose a password that is different from the enable secret
Enter enable password: cisco
Enter virtual terminal password: cisco
Configure SNMP Network Management? [yes]: no
Configure IPX? [no]: no
Configure IP? [yes]: yes
Configure IGRP routing? [yes]: no
Configure RIP routing? [no]: no
Configuring interface parameters:
Configuring interface Ethernet0:
Is this interface in use? [yes]: yes
Configure IP on this interface? [yes]: yes
IP address for this interface: 81.26.6.10
Number of bits in subnet field [0]: 16
Class A network is 81.0.0.0, 16 subnet bits; mask is 255.255.255.0
Configuring interface Ethernet1:
Is this interface in use? [yes]: no
Configuring interface Serial0:
Is this interface in use? [yes]: no
Configuring interface Serial1:
Is this interface in use? [yes]: no
The following configuration command script was created:
hostname pn12
enable secret 5 $1$h9Oi$MobxPqYRZDF5P4a3g0TUH1
enable password cisco
line vty 0 4
password cisco
no snmp-server
!
no ipx routing
ip routing
!
interface Ethernet0
ip address 81.26.6.10 255.255.255.0
!
interface Ethernet1
shutdown
no ip address
!
interface Serial0
shutdown
no ip address
!
interface Serial1
shutdown
no ip address
!
end
Use this configuration? [yes/no]: yes
Następnie kontynuowaliśmy konfigurację zgodnie z punktem f) instrukcji by nadać ręcznie maskę dla interfejsu Ethernet0 oraz skonfigurowaliśmy Ethernet1:
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#int eth0
pn12(config-if)#no ip address 81.26.6.10 255.255.255.0
pn12(config-if)#ip address 81.26.6.10 255.255.255.128
pn12(config-if)#^Z
pn12#
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#int eth1
pn12(config-if)#ip address 81.26.14.129 255.255.255.246
Bad mask 255.255.255.246 for address 81.26.14.129
pn12(config-if)#ip address 81.26.14.129 255.255.255.240
pn12(config-if)#^Z
pn12#
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#int eth1
pn12(config-if)#no shutdown
pn12(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1, changed state to up^Z
Następnie ustaliliśmy trasę routowania dla całej sieci oraz ustaliliśmy dodatkowe opcje:
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#ip route 0.0.0.0 0.0.0.0 81.26.6.1
pn12(config)#^Z
pn12#
%SYS-5-CONFIG_I: Configured from console by console
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#ip classless
pn12(config)#ip subnet-zero
pn12(config)#^Z
pn12#
By sprawdzić poprawność konfiguracji dokonaliśmy pingowania dwóch adresów zewnętrznych:
pn12#ping 81.26.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 81.26.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
pn12#ping www.onet.pl
Translating "www.onet.pl"...domain server (255.255.255.255) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 213.180.146.27, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
pn12#
Podłączyliśmy przełącznik i rozpoczęliśmy jego konfigurację czego wynikiem było ustawienie Network Management
Catalyst 1900 - IP Configuration
Ethernet Address: 00-10-07-8D-D5-40
----------------------- Settings ---------------------------------------
[I] IP address 81.26.14.130
[S] Subnet mask 255.255.255.240
[G] Default gateway 81.26.6.10
[V] Management VLAN 1
[X] Exit to previous menu
Podłączyliśmy poprzez przełącznik drugi komputer (laptop), skonfigurowaliśmy jego ustawienia sieciowe następująco:
IP: 81.26.14.131
Maska: 255.255.255.240
Sprawdzenie poprawności podłączenia i konfiguracji sieci zostało zakończone pomyślnie. Strona www.tu.kielce.pl była dostępna na laptopie.
Powróciliśmy do konsoli zarządzania ustawieniami routera i dokonaliśmy pozostałych ustawień:
pn12#conf t
Enter configuration commands, one per line. End with CNTL/Z.
pn12(config)#hostname pt10-12
pt10-12(config)#ip name-server 81.26.0.10
pt10-12(config)#ip name-server 81.26.0.8
pt10-12(config)#ip host eden 81.26.0.8
pt10-12(config)#write
pt10-12(config)#^Z
a) wydruk sh conf:
pt10-12#sh conf
Using 490 out of 32762 bytes
!
version 11.0
service config
service udp-small-servers
service tcp-small-servers
!
hostname pn12
!
enable secret 5 $1$h9Oi$MobxPqYRZDF5P4a3g0TUH1
enable password cisco
!
!
interface Ethernet0
ip address 81.26.6.10 255.255.255.0
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
no ip address
shutdown
!
!
line con 0
exec-timeout 0 0
line aux 0
transport input all
line vty 0 4
password cisco
login
!
end
b) wydruk sh int eth0:
pt10-12#sh int eth0
Ethernet0 is up, line protocol is up
Hardware is Lance, address is 0060.09c4.025c (bia 0060.09c4.025c)
Internet address is 81.26.6.10 255.255.255.128
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 4:00:00
Last input 0:00:00, output 0:00:05, output hang never
Last clearing of "show interface" counters never
Output queue 0/40, 0 drops; input queue 1/75, 0 drops
5 minute input rate 1000 bits/sec, 3 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
9989 packets input, 768118 bytes, 0 no buffer
Received 9804 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
1388 packets output, 144435 bytes, 0 underruns
0 output errors, 19 collisions, 1 interface resets, 0 restarts
0 output buffer failures, 0 output buffers swapped out
c) wydruk sh int eth1:
pt10-12#sh int eth1
Ethernet1 is up, line protocol is up
Hardware is Lance, address is 0060.09c4.025d (bia 0060.09c4.025d)
Internet address is 81.26.14.129 255.255.255.240
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 4:00:00
Last input 0:00:25, output 0:00:06, output hang never
Last clearing of "show interface" counters never
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
313 packets input, 45727 bytes, 0 no buffer
Received 139 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
369 packets output, 87360 bytes, 0 underruns
0 output errors, 7 collisions, 2 interface resets, 0 restarts
0 output buffer failures, 0 output buffers swapped out