Загрузка данных


enable
configure terminal
hostname HQ
no ip domain-lookup
enable secret class
service password-encryption
line console 0
 password cisco
 login
exit
line vty 0 4
 password cisco
 login
exit
banner motd #Access denied for unauthorized users!#

interface g0/0
 description HQ 16000 Host LAN
 ip address 172.16.128.1 255.255.192.0
 no shutdown
exit

interface g0/1
 description HQ 8000 Host LAN
 ip address 172.16.192.1 255.255.224.0
 no shutdown
exit

interface s0/0/0
 description Link to BR1 S0/0/0
 ip address 172.16.254.1 255.255.255.252
 clock rate 128000
 no shutdown
exit

interface s0/0/1
 description Link to BR2 S0/0/1
 ip address 172.16.254.5 255.255.255.252
 clock rate 128000
 no shutdown
exit

! Статические маршруты к удалённым сетям
ip route 172.16.224.0 255.255.240.0 172.16.254.2
ip route 172.16.240.0 255.255.248.0 172.16.254.2
ip route 172.16.248.0 255.255.252.0 172.16.254.6
ip route 172.16.252.0 255.255.254.0 172.16.254.6
ip route 172.16.254.8 255.255.255.252 172.16.254.2
ip route 172.16.254.8 255.255.255.252 172.16.254.6

end
write




enable
configure terminal
hostname BR1
no ip domain-lookup
enable secret class
service password-encryption
line console 0
 password cisco
 login
exit
line vty 0 4
 password cisco
 login
exit
banner motd #Access denied for unauthorized users!#

interface g0/0
 description BR1 2000 Host LAN
 ip address 172.16.240.1 255.255.248.0
 no shutdown
exit

interface g0/1
 description BR1 4000 Host LAN
 ip address 172.16.224.1 255.255.240.0
 no shutdown
exit

interface s0/0/0
 description Link to HQ S0/0/0
 ip address 172.16.254.2 255.255.255.252
 no shutdown
exit

interface s0/0/1
 description Link to BR2 S0/0/0
 ip address 172.16.254.9 255.255.255.252
 clock rate 128000
 no shutdown
exit

! Статические маршруты
ip route 172.16.128.0 255.255.192.0 172.16.254.1
ip route 172.16.192.0 255.255.224.0 172.16.254.1
ip route 172.16.248.0 255.255.252.0 172.16.254.10
ip route 172.16.252.0 255.255.254.0 172.16.254.10
ip route 172.16.254.4 255.255.255.252 172.16.254.1

end
write






enable
configure terminal
hostname BR2
no ip domain-lookup
enable secret class
service password-encryption
line console 0
 password cisco
 login
exit
line vty 0 4
 password cisco
 login
exit
banner motd #Access denied for unauthorized users!#

interface g0/0
 description BR2 500 Host LAN
 ip address 172.16.252.1 255.255.254.0
 no shutdown
exit

interface g0/1
 description BR2 1000 Host LAN
 ip address 172.16.248.1 255.255.252.0
 no shutdown
exit

interface s0/0/0
 description Link to BR1 S0/0/1
 ip address 172.16.254.10 255.255.255.252
 no shutdown
exit

interface s0/0/1
 description Link to HQ S0/0/1
 ip address 172.16.254.6 255.255.255.252
 no shutdown
exit

! Статические маршруты
ip route 172.16.128.0 255.255.192.0 172.16.254.5
ip route 172.16.192.0 255.255.224.0 172.16.254.5
ip route 172.16.224.0 255.255.240.0 172.16.254.9
ip route 172.16.240.0 255.255.248.0 172.16.254.9
ip route 172.16.254.0 255.255.255.252 172.16.254.5

end
write