You are on page 1of 24

Упражнение №4

Име: Никола Колев


Ф.№: 1229118
Device Interface IPv6 Address/Prefix Default Gateway

G0/0 192.168.1.1/24 N/A


R0 S0/1/0 10.0.0.1/8 N/A
S0/1/1 30.0.0.2/8 N/A
G0/0 192.168.2.1/24 N/A
R1 S0/1/0 10.0.0.2/8 N/A
S0/1/1 20.0.0.1/8 N/A
G0/0 192.168.3.1/24 N/A
R2 S0/0/1 30.0.0.1/8 N/A
S0/1/1 20.0.0.2/8 N/A
PC1 NIC 192.168.1.10 192.168.1.1
PC2 NIC 192.168.2.10 192.168.2.1
PC3 NIC 192.168.3.10 192.168.3.1

//Конфигуриране на R0

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname 1229118-R0
1229118-R0(config)#interface g0/0
1229118-R0(config-if)#ip address 192.168.1.1 255.255.255.0
1229118-R0(config-if)#no shutdown

1229118-R0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state


to up

1229118-R0(config-if)#exit
1229118-R0(config)#int s0/1/0
1229118-R0(config-if)#ip address 10.0.0.1 255.0.0.0
1229118-R0(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down


1229118-R0(config-if)#exit
1229118-R0(config)#int s0/1/1
1229118-R0(config-if)#ip address 30.0.0.2 255.0.0.0
1229118-R0(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1/1, changed state to down


1229118-R0(config-if)#end
1229118-R0#
%SYS-5-CONFIG_I: Configured from console by console

1229118-R0#
1229118-R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R0#

//Конфигуриране на R1

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname 1229118-R1
1229118-R1(config)#interface g0/0
1229118-R1(config-if)#ip address 192.168.2.1 255.255.255.0
1229118-R1(config-if)#no shutdown

1229118-R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state


to up

1229118-R1(config-if)#exit
1229118-R1(config)#interface s0/1/0
1229118-R1(config-if)#ip address 10.0.0.2 255.0.0.0
1229118-R1(config-if)#no shutdown
1229118-R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

1229118-R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

1229118-R1(config-if)#interface s0/1/1
1229118-R1(config-if)#ip address 20.0.0.1 255.0.0.0
1229118-R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1/1, changed state to down


1229118-R1(config-if)#end
1229118-R1#
%SYS-5-CONFIG_I: Configured from console by console

1229118-R1#copy run start


Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R1#

//Конфигуриране на R2

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname 1229118-R2
1229118-R2(config)#int g0/0
1229118-R2(config-if)#ip address 192.168.3.1 255.255.255.0
1229118-R2(config-if)#no shutdown

1229118-R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state
to up

1229118-R2(config-if)#exit
1229118-R2(config)#interface s0/1/1
1229118-R2(config-if)#ip address 20.0.0.2 255.0.0.0
1229118-R2(config-if)#no shutdown

1229118-R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up

1229118-R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up

1229118-R2(config-if)#exit
1229118-R2(config)#interface s0/1/0
1229118-R2(config-if)#ip address 10.0.0.2 255.0.0.0
1229118-R2(config-if)#no shutdown

1229118-R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

1229118-R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

1229118-R2(config-if)#exit
1229118-R2(config)#

//PC0
//Router rip – въвежда рутера в router information configuration

//Въвеждаме маршрутите, които рутера трябва да огласява

1229118-R0>enable
1229118-R0#conf t
Enter configuration commands, one per line. End with CNTL/Z.
1229118-R0(config)#router rip
1229118-R0(config-router)#network 192.168.1.0
1229118-R0(config-router)#network 10.0.0.0
1229118-R0(config-router)#network 30.0.0.0
1229118-R0(config-router)#end
1229118-R0#
%SYS-5-CONFIG_I: Configured from console by console
1229118-R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R0#

//PC1
//Въвеждаме маршрутите, които рутера трябва да огласява

1229118-R1>enable
1229118-R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
1229118-R1(config)#router rip
1229118-R1(config-router)#network 192.168.2.0
1229118-R1(config-router)#network 10.0.0.0
1229118-R1(config-router)#network 20.0.0.0
1229118-R1(config-router)#end
1229118-R1#
%SYS-5-CONFIG_I: Configured from console by console

1229118-R1#copy run start


Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R1#

//PC2
//Въвеждаме маршрутите, които рутера трябва да огласява

1229118-R2>enable
1229118-R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
1229118-R2(config)#router rip
1229118-R2(config-router)#network 192.168.3.0
1229118-R2(config-router)#network 20.0.0.0
1229118-R2(config-router)#network 30.0.0.0
1229118-R2(config-router)#end
1229118-R2#
%SYS-5-CONFIG_I: Configured from console by console
1229118-R2#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R2#

//Проверяваме текущата конфигурацията на R0

1229118-R0>enable
1229118-R0#show running-config
Building configuration...

Current configuration : 830 bytes


!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 1229118-R0
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524C3QB-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 10.0.0.1 255.0.0.0
clock rate 2000000
!
interface Serial0/1/1
ip address 30.0.0.2 255.0.0.0
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 30.0.0.0
network 192.168.1.0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

1229118-R0#
Проверяваме маршрутизиращата таблица с командата на R0 Show ip route
- Имаме 3 динамични маршрута
1229118-R0#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


C 10.0.0.0/8 is directly connected, Serial0/1/0
L 10.0.0.1/32 is directly connected, Serial0/1/0
R 20.0.0.0/8 [120/1] via 10.0.0.2, 00:00:07, Serial0/1/0
30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 30.0.0.0/8 is directly connected, Serial0/1/1
L 30.0.0.2/32 is directly connected, Serial0/1/1
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0
R 192.168.2.0/24 [120/1] via 10.0.0.2, 00:00:07, Serial0/1/0
R 192.168.3.0/24 [120/2] via 10.0.0.2, 00:00:07, Serial0/1/0

1229118-R0#

//Проверяваме текущата конфигурацията на R1

1229118-R1>enable
1229118-R1#show running-config
Building configuration...
Current configuration : 830 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 1229118-R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524T286-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 10.0.0.2 255.0.0.0
!
interface Serial0/1/1
ip address 20.0.0.1 255.0.0.0
clock rate 2000000
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 20.0.0.0
network 192.168.2.0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

1229118-R1#
Проверяваме маршрутизиращата таблица с командата на R1 Show ip route
- Имаме 3 динамични маршрута
1229118-R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


C 10.0.0.0/8 is directly connected, Serial0/1/0
L 10.0.0.2/32 is directly connected, Serial0/1/0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Serial0/1/1
L 20.0.0.1/32 is directly connected, Serial0/1/1
R 30.0.0.0/8 [120/1] via 10.0.0.1, 00:00:11, Serial0/1/0
R 192.168.1.0/24 [120/1] via 10.0.0.1, 00:00:11, Serial0/1/0
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, GigabitEthernet0/0
L 192.168.2.1/32 is directly connected, GigabitEthernet0/0
R 192.168.3.0/24 [120/1] via 20.0.0.2, 00:00:16, Serial0/1/1

1229118-R1#

//Проверяваме текущата конфигурацията на R2

1229118-R2>enable
1229118-R2#show running-config
Building configuration...

Current configuration : 830 bytes


!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 1229118-R2
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524D4Y5-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 10.0.0.2 255.0.0.0
clock rate 2000000
!
interface Serial0/1/1
ip address 20.0.0.2 255.0.0.0
!
interface Vlan1
no ip address
shutdown
!
router rip
network 20.0.0.0
network 30.0.0.0
network 192.168.3.0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

Проверяваме маршрутизиращата таблица с командата на R1 Show ip route


- Имаме 3 динамични маршрута
1229118-R2#
1229118-R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


C 10.0.0.0/8 is directly connected, Serial0/1/0
L 10.0.0.2/32 is directly connected, Serial0/1/0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Serial0/1/1
L 20.0.0.2/32 is directly connected, Serial0/1/1
R 30.0.0.0/8 [120/2] via 20.0.0.1, 00:00:19, Serial0/1/1
R 192.168.1.0/24 [120/2] via 20.0.0.1, 00:00:19, Serial0/1/1
R 192.168.2.0/24 [120/1] via 20.0.0.1, 00:00:19, Serial0/1/1
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.0/24 is directly connected, GigabitEthernet0/0
L 192.168.3.1/32 is directly connected, GigabitEthernet0/0

1229118-R2#
Ping от PC0 към другите PC1
C:\>ping 192.168.2.10

Pinging 192.168.2.10 with 32 bytes of data:

Request timed out.


Reply from 192.168.2.10: bytes=32 time=1ms TTL=126
Reply from 192.168.2.10: bytes=32 time=1ms TTL=126
Reply from 192.168.2.10: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.2.10:


Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms

Ping от PC0 към другите PC1


C:\>ping 192.168.2.10

Pinging 192.168.2.10 with 32 bytes of data:

Reply from 192.168.2.10: bytes=32 time=3ms TTL=126


Reply from 192.168.2.10: bytes=32 time=4ms TTL=126
Reply from 192.168.2.10: bytes=32 time=1ms TTL=126
Reply from 192.168.2.10: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.2.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 4ms, Average = 2ms

Ping от PC0 към другите PC2


C:\>ping 192.168.3.10

Pinging 192.168.3.10 with 32 bytes of data:

Request timed out.


Reply from 192.168.3.10: bytes=32 time=2ms TTL=125
Reply from 192.168.3.10: bytes=32 time=4ms TTL=125
Reply from 192.168.3.10: bytes=32 time=5ms TTL=125

Ping statistics for 192.168.3.10:


Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 5ms, Average = 3ms

Ping от PC0 към другите PC2


C:\>ping 192.168.3.10
Pinging 192.168.3.10 with 32 bytes of data:

Reply from 192.168.3.10: bytes=32 time=2ms TTL=125


Reply from 192.168.3.10: bytes=32 time=2ms TTL=125
Reply from 192.168.3.10: bytes=32 time=5ms TTL=125
Reply from 192.168.3.10: bytes=32 time=5ms TTL=125

Ping statistics for 192.168.3.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 5ms, Average = 3ms

Изпращаме пакет от PC0 до PC0 ( до себе си )


C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time=7ms TTL=128


Reply from 127.0.0.1: bytes=32 time=3ms TTL=128
Reply from 127.0.0.1: bytes=32 time=2ms TTL=128
Reply from 127.0.0.1: bytes=32 time=4ms TTL=128

Ping statistics for 127.0.0.1:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 7ms, Average = 4ms

C:\>

Ping от PC1 към другите PC0


C:\>ping 192.168.1.10

Pinging 192.168.1.10 with 32 bytes of data:

Reply from 192.168.1.10: bytes=32 time=1ms TTL=126


Reply from 192.168.1.10: bytes=32 time=1ms TTL=126
Reply from 192.168.1.10: bytes=32 time=3ms TTL=126
Reply from 192.168.1.10: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.1.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 1ms
Ping от PC1 към другите PC2
C:\>ping 192.168.3.10

Pinging 192.168.3.10 with 32 bytes of data:

Reply from 192.168.3.10: bytes=32 time=1ms TTL=126


Reply from 192.168.3.10: bytes=32 time=3ms TTL=126
Reply from 192.168.3.10: bytes=32 time=1ms TTL=126
Reply from 192.168.3.10: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.3.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 1ms

Изпращаме пакет от PC1 до PC1 ( до себе си )


C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128


Reply from 127.0.0.1: bytes=32 time=2ms TTL=128
Reply from 127.0.0.1: bytes=32 time=3ms TTL=128
Reply from 127.0.0.1: bytes=32 time=3ms TTL=128

Ping statistics for 127.0.0.1:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 3ms, Average = 2ms

C:\>

Ping от PC2 към другите PC0


C:\>ping 192.168.1.10

Pinging 192.168.1.10 with 32 bytes of data:

Reply from 192.168.1.10: bytes=32 time=3ms TTL=125


Reply from 192.168.1.10: bytes=32 time=6ms TTL=125
Reply from 192.168.1.10: bytes=32 time=2ms TTL=125
Reply from 192.168.1.10: bytes=32 time=2ms TTL=125

Ping statistics for 192.168.1.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 6ms, Average = 3ms

Ping от PC2 към другите PC1


C:\>ping 192.168.2.10

Pinging 192.168.2.10 with 32 bytes of data:

Reply from 192.168.2.10: bytes=32 time=5ms TTL=126


Reply from 192.168.2.10: bytes=32 time=1ms TTL=126
Reply from 192.168.2.10: bytes=32 time=4ms TTL=126
Reply from 192.168.2.10: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.2.10:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 5ms, Average = 2ms

Изпращаме пакет от PC1 до PC1 ( до себе си )


C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128


Reply from 127.0.0.1: bytes=32 time=5ms TTL=128
Reply from 127.0.0.1: bytes=32 time=3ms TTL=128
Reply from 127.0.0.1: bytes=32 time=5ms TTL=128

Ping statistics for 127.0.0.1:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 5ms, Average = 3ms

C:\>

You might also like