Вы находитесь на странице: 1из 5

------------------------SITE1---------------------------configure terminal

no ip domain-lookup
interface s0/0/0
ip addres 192.168.10.105 255.255.255.252
no shutdown
interface g0/0.45
encapsulation dot1Q 45
ip address 192.168.45.1 255.255.255.0
interface g0/0.47
encapsulation dot1Q 47
ip address 192.168.47.1 255.255.255.0
interface g0/0.101
encapsulation dot1Q 101
ip address 192.168.101.1 255.255.255.0
interface g0/0
no shutdown
end
configure terminal
hostname SITE1
enable secret class
line console 0
password cisco
login
logging synchronous
line vty 0 15
password cisco
login
logging synchronous
exit
service password-encryption
banner motd %Precaucion%
end
configure terminal
interface s0/0/0
clock rate 128000
no shutdown
end
configure terminal
ip route 0.0.0.0 0.0.0.0 s0/0/0
end
configure terminal
router ospf 10
network 192.168.10.104 0.0.0.3 area 0
network 192.168.45.0 0.0.0.255 area 0
network 192.168.47.0 0.0.0.255 area 0
network 192.168.101.0 0.0.0.255 area 0
end
configure terminal
int s0/0/0
bandwidth 128
router ospf 10
router-id 1.1.1.1
exit
interface s0/0/0
ip ospf cost 7500
exit
router ospf 10
passive-interface g0/0.45
passive-interface g0/0.47

passive-interface g0/0.101
end
configure terminal
ip dhcp excluded-address 192.168.45.1 192.168.45.20
ip dhcp excluded-address 192.168.47.1 192.168.47.20
ip dhcp pool vlan45
default-router 192.168.45.1
dns-server 192.168.18.100
network 192.168.45.0 255.255.255.0
ip dhcp pool vlan47
default-router 192.168.47.1
dns-server 192.168.18.100
network 192.168.47.0 255.255.255.0
end
-------------------------HQ-----------------------------configure terminal
no ip domain-lookup
interface s0/0/0
ip addres 192.168.10.106 255.255.255.252
clock rate 128000
no shutdown
interface s0/0/1
ip addres 192.168.10.113 255.255.255.252
no shutdown
interface s0/1/0
ip addres 198.51.100.1 255.255.255.240
no shutdown
interface g0/0
ip addres 192.168.18.41 255.255.255.248
no shutdown
end
configure terminal
interface s0/0/0
clock rate 128000
no shutdown
interface s0/0/1
clock rate 128000
no shutdown
interface s0/1/0
clock rate 128000
no shutdown
end
configure terminal
ip route 0.0.0.0 0.0.0.0 s0/1/0
ip route 192.168.200.0 255.255.252.0 s0/0/1
end
configure terminal
router ospf 10
network 192.168.10.104 0.0.0.3 area 0
network 192.168.10.112 0.0.0.3 area 0
network 192.168.18.40 0.0.0.7 area 0
end
configure terminal
int s0/0/0
bandwidth 128
int s0/0/1
bandwidth 128
router ospf 10
router-id 2.2.2.2

exit
interface s0/0/0
ip ospf cost 7500
exit
router ospf 10
passive-interface g0/0
end
configure terminal
ip nat inside source static 192.168.18.46 198.51.100.14
int s0/1/0
ip nat outside
int g0/0
ip nat inside
ip nat pool INTERNET 198.51.100.3 198.51.100.13 netmask 255.255.255.240
access-list 1 permit 192.168.45.0 0.0.0.255
access-list 1 permit 192.168.47.0 0.0.0.255
access-list 1 permit 192.168.200.0 0.0.3.255
ip nat inside source list 1 pool INTERNET
end
configure terminal
ip access-list standard MANAGE
permit host 203.0.113.18
exit
line vty 0 15
password cisco
login
ip access-class MANAGE in
access-list 101 permit ip host 203.0.113.18 any
access-list 101 permit tcp any host 198.51.100.14 eq www
access-list 101 permit tcp any any established
access-list 101 deny ip any any
int s0/1/0
ip access-group 101 in
end
------------------------SITE2---------------------------configure terminal
no ip domain-lookup
interface s0/0/0
ip addres 192.168.10.126 255.255.255.252
no shutdown
interface s0/0/1
ip addres 192.168.10.114 255.255.255.252
no shutdown
end
configure terminal
interface s0/0/0
clock rate 128000
no shutdown
interface s0/0/1
clock rate 128000
no shutdown
end
configure terminal
ip route 0.0.0.0 0.0.0.0 s0/0/1
ip route 192.168.200.0 255.255.252.0 s0/0/0
end
configure terminal
router ospf 10
network 192.168.10.112 0.0.0.3 area 0

end
configure terminal
int s0/0/1
bandwidth 128
router ospf 10
router-id 3.3.3.3
end
----------------------SITE1-SW1-------------------------configure terminal
no ip domain-lookup
hostname Site1-SW1
interface vlan 101
ip addres 192.168.101.11 255.255.255.0
no shutdown
end
configure terminal
vlan 45
name finance
vlan 47
name sales
vlan 101
name netadmin
exit
interface range g0/1-2
switchport mode trunk
interface f0/10
switchport mode access
switchport access vlan 45
interface f0/15
switchport mode access
switchport access vlan 47
exit
ip default-gateway 192.168.101.1
interface range f0/1-9,f0/11-14, f0/16-24
switchport mode access
shutdown
end
----------------------SITE1-SW2-------------------------configure terminal
no ip domain-lookup
hostname Site1-SW2
interface vlan 101
ip addres 192.168.101.22 255.255.255.0
no shutdown
end
configure terminal
vlan 45
name finance
vlan 47
name sales
vlan 101
name netadmin
exit
interface g0/2
switchport mode trunk
interface f0/3
switchport mode access
switchport access vlan 45

interface f0/21
switchport mode access
switchport access vlan 47
exit
ip default-gateway 192.168.101.1
interface range f0/1-2, f0/4-20, f0/22-24, g0/1
switchport mode access
shutdown
end