Sei sulla pagina 1di 6

////////////////////////////////////////////

SWITCH 0

////////////////////////////////////////////

enable
config t

vlan 10
name Red0
vlan 20
name Red1

int range fa0/1 - 10


sw mode access
sw access vlan 10

int range fa0/11-20


sw mode access
sw access vlan 20

int fa0/24
sw mode trunk

////////////////////////////////////////////

ROUTER 0

////////////////////////////////////////////

enable
config t

int fa0/1
no shutdown

int fa0/1.10
encapsulation dot1q 10
ip address 192.13.0.1 255.255.255.0

int fa0/1.11
encapsulation dot1q 20
ip address 192.13.1.1 255.255.255.0

int fa0/0
ip address 10.0.0.1 255.255.255.252
no shut

////////////////////////////////////////////

SWITCH MULTICAPA

////////////////////////////////////////////

enable
config t
vlan 10
name Red2
vlan 20
name Red3

int range fa0/1 - 10


sw mode acc
sw acc vlan 10

int range fa0/11 - 20


sw mode acc
sw acc vlan 20

exit

int vlan 10
ip address 192.13.2.1 255.255.255.0
no shut

int vlan 20
ip address 192.13.3.1 255.255.255.0
no shut

int fa0/24
no switchport
ip address 10.0.0.2 255.255.255.252
no shut

int fa0/23
no switchport
ip address 10.0.0.5 255.255.255.252

do show ip route
exit

ip routing

do show ip route

////////////////////////////////////////////

ROUTER 1

////////////////////////////////////////////

enable
config t

int fa0/0
ip address 10.0.0.6 255.255.255.252
no shut

in fa0/1
ip address 192.13.4.1 255.255.255.0
no shutdown

////////////////////////////////////////////
COMPUTADORA RED 0

////////////////////////////////////////////

Direccion IP 192.13.0.10
Mascara de Subred 255.255.255.0
Gateway 192.13.0.1

////////////////////////////////////////////

COMPUTADORA RED 1

////////////////////////////////////////////

Direccion IP 192.13.1.10
Mascara de Subred 255.255.255.0
Gateway 192.13.1.1

////////////////////////////////////////////

COMPUTADORA RED 2

////////////////////////////////////////////

Direccion IP 192.13.2.10
Mascara de Subred 255.255.255.0
Gateway 192.13.2.1

////////////////////////////////////////////

SERVIDOR RED 3

////////////////////////////////////////////

Direccion IP 192.13.3.10
Mascara de Subred 255.255.255.0
Gateway 192.13.3.1

////////////////////////////////////////////

COMPUTADORA RED 4

////////////////////////////////////////////

Direccion IP 192.13.4.10
Mascara de Subred 255.255.255.0
Gateway 192.13.4.1

-----------------------------------------------------
ENRUTAMIENTO
-----------------------------------------------------

////////////////////////////////////////////

ROUTER 0

////////////////////////////////////////////
enable
config t

router rip
version 2
no auto

net 10.0.0.0
net 192.13.0.0
net 192.13.1.0

pass fa0/1.10
pass fa0/1.20
pass fa0/1.11

////////////////////////////////////////////

SWITCH MULTICAPA

////////////////////////////////////////////

enable
config t

router rip
version 2
no auto

net 10.0.0.0
net 10.0.0.4
net 192.13.2.0
net 192.13.3.0

pass vlan 10
pass vlan 20

////////////////////////////////////////////

ROUTER 1

////////////////////////////////////////////

enable
config t

router rip
version 2
no auto

net 10.0.0.4
net 192.13.4.0
pass fa0/1

-----------------------------------------------------
LISTAS DE ACCESO
-----------------------------------------------------

////////////////////////////////////////////
SWITCH MULTICAPA

////////////////////////////////////////////

enable
config t

ip access-list standard Red2


permit 192.13.0.0 0.0.0.255
deny any

in vlan 10
ip access-group Red2 out

**CHECK VID1

////////////////////////////////////////////

ROUTER 1

////////////////////////////////////////////

enable
config t

access-list 10 deny 192.13.1.0 0.0.0.255


access-list 10 permit any

int fa0/1
ip access-group 10 out
exit
ip access-list extended Red4
permit tcp 192.13.4.0 0.0.0.255 192.13.3.10 0.0.0.0 eq 80
permit ip 192.13.4.0 0.0.0.255 192.13.3.0 0.0.0.255
deny ip any any
exit

int fa0/1
ip access-group Red4 in
do show ip acc
ip access-list extended Red4
15 deny ip 192.13.4.0 0.0.0.255 192.13.3.10 0.0.0.0
do show ip acc

ip access-list extended Red4


25 permit ip any any

Potrebbero piacerti anche