vlan examen de grado

12

Click here to load reader

Upload: alexander-torres

Post on 29-May-2017

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Vlan Examen de Grado

interface range fastethernet 0/1-2channel-group 1 mode onexit

interface range fastethernet 0/1-2channel-group 2 mode onexit

interface port-channel 1switchport mode trunkexit

interface port-channel 2switchport mode trunkexit

show etherchannel port-channel

hostname SW-EC-1

vlan 10name Area1exit

vlan 20name Area2exit

vlan 30name Area3exit

vlan 40name Area4exit

vlan 50name Area5exit

vlan 60name Area6exit

vlan 70name Area7exit

vlan 80name Area8exit

vlan 90

Page 2: Vlan Examen de Grado

name Area9exit

vlan 100name Servidoresexit

vlan 110name AccessPointexit

vlan 120name Camarasexit

interface range fastEthernet 0/1-24shutdownexit

vlan 90name Nativaexit

vtp domain CASO3vtp mode servervtp password cisco

int range fa 0/1-5switchport mode trunkswitchport trunk native vlan 90no shutdownexit

hostname SW-EC-2

vtp domain CASO3vtp mode transparentvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/1-12switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/13-24shutdownexit

hostname SW-EC-3

vtp domain CASO3vtp mode transparentvtp password cisco

Page 3: Vlan Examen de Grado

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/1-10switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/11-24shutdownexit

hostname SW-EC-4

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-19switchport mode access switchport access vlan 10switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-5

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24

Page 4: Vlan Examen de Grado

shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-19switchport mode access switchport access vlan 20switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-6

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-17switchport mode access switchport access vlan 30switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security

Page 5: Vlan Examen de Grado

switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-7

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-17switchport mode access switchport access vlan 40switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-8

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90

Page 6: Vlan Examen de Grado

no shutdownexit

interface range fastEthernet 0/1-14switchport mode access switchport access vlan 50switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-9

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-14switchport mode access switchport access vlan 60switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

Page 7: Vlan Examen de Grado

hostname SW-EC-10

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-14switchport mode access switchport access vlan 70switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

hostname SW-EC-11

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/22-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-14switchport mode access switchport access vlan 80switchport port-security switchport port-security maximum 2

Page 8: Vlan Examen de Grado

switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/21switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

---------------------------------------------

hostname SW-O1-01

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/23-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-15switchport mode access switchport access vlan 90switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/22switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

----------------------------------------------------hostname SW-SE-02

vtp domain CASO3vtp mode clientvtp password cisco

Page 9: Vlan Examen de Grado

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/23-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-3switchport mode access switchport access vlan 100switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

-------------------------------------------------------------

hostname SW-O1-01

vtp domain CASO3vtp mode clientvtp password cisco

interface range fastEthernet 0/1-24shutdownexit

int range fa 0/23-24switchport mode trunkswitchport trunk native vlan 90no shutdownexit

interface range fastEthernet 0/1-15switchport mode access switchport access vlan 100switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address stickyno shutdownexit

interface range fastEthernet 0/22switchport mode access switchport access vlan 120switchport port-security switchport port-security maximum 2switchport port-security violation shutdown switchport port-security mac-address sticky

Page 10: Vlan Examen de Grado

no shutdownexit

HOSTNAME RO-OC-1

interface fa0/1.10encapsulation dot1q 10ip add 172.16.1.30 255.255.255.224no shutdownexit

interface fa0/1.20encapsulation dot1q 20ip add 172.16.1.62 255.255.255.224no shutdownexit

interface fa0/1.30encapsulation dot1q 30ip add 172.16.1.94 255.255.255.224no shutdownexit

interface fa0/1.40encapsulation dot1q 40ip add 172.16.1.126 255.255.255.224no shutdownexit

interface fa0/1.50encapsulation dot1q 50ip add 172.16.1.158 255.255.255.240no shutdownexit

interface fa0/1.60encapsulation dot1q 60ip add 172.16.1.190 255.255.255.240no shutdownexit

interface fa0/1.70encapsulation dot1q 70ip add 172.16.1.222 255.255.255.248no shutdownexit

interface fa0/1.80encapsulation dot1q 80ip add 172.16.1.254 255.255.255.248no shutdown

Page 11: Vlan Examen de Grado

exit

interface fa0/1.90encapsulation dot1q 90ip add 172.16.2.30 255.255.255.224no shutdownexit

interface fa0/1.100encapsulation dot1q 100ip add 172.16.3.30 255.255.255.224no shutdownexit

interface fa0/1.110encapsulation dot1q 110ip add 172.16.4.30 255.255.255.224no shutdownexit

interface fa0/1.120encapsulation dot1q 120ip add 172.16.5.30 255.255.255.224no shutdownexit

ip route 172.16.2.0 255.255.255.224 172.16.3.2ip route 172.16.2.32 255.255.255.240 172.16.3.2ip route 172.16.2.48 255.255.255.240 172.16.3.2ip route 172.16.2.64 255.255.255.240 172.16.3.2ip route 172.16.2.80 255.255.255.240 172.16.3.2ip route 172.16.2.96 255.255.255.240 172.16.3.2ip route 172.16.2.112 255.255.255.248 172.16.3.2

-------------------------------------------------------------------

enableconfigure terminalip domain-name www.utepsa.educrypto key generate rsahostname sshcrypto key generate rsa1024line vty 0 4transport input sshlogin localexit

username admin1 privilege 15 password Disenh0username admin2 privilege 15 password Disenh0username soporte privilege 10 password Disenh0ip ssh time-out 30 ip ssh autentication-retries 3

Page 12: Vlan Examen de Grado

------------------------------------------------------------------ip nat pool DINA1 8.8.8.1 8.8.8.5 netmask 255.255.255.248////////asignamos las ip que se enmascaran las ip falsasaccess-list 10 permit 172.16.0.0 0.0.7.255////////////// se hace un acl con la la red de nuestra lan y su willcardip nat inside source list 10 pool DINA1///////// asigamos el nombre del nateo a la aclinterface f0/0//////////entramos a la interface donde esta conectada nuestra red lan con el routerip nat inside exinterface f0/1//////////// el puerto donde esta conectado nuestro ISPip nat outside ex

-----------------------------------------------access-list 11 deny 160.130.16.66access-list 11 permit anyinterface f0/0 ip access-group 11 out

--------------------------------------------

ip dhcp EXCLuded-address 172.16.4.1 172.16.4.2ip dhcp pool DHCP1default-router 172.16.4.1network 172.16.4.0 255.255.255.224

-----------------------------------------------