Professional Documents
Culture Documents
- Никола Колев - Упражнение 6
- Никола Колев - Упражнение 6
//Конфигуриране на R0
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
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
1229118-R0#
1229118-R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1229118-R0#
//Конфигуриране на R1
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
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
//Конфигуриране на R2
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
//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#
1229118-R0>enable
1229118-R0#show running-config
Building configuration...
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
1229118-R0#
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
1229118-R1#
1229118-R2>enable
1229118-R2#show running-config
Building configuration...
1229118-R2#
Ping от PC0 към другите PC1
C:\>ping 192.168.2.10
C:\>
C:\>
C:\>