0% found this document useful (0 votes)
29 views5 pages

Vlan 2,3,4,5

The document configures VLANs, interfaces, trunk ports, IP addresses, routing protocols, and access lists on a network switch. VLANs 10-13 and 99-100 are created and assigned to various switch ports and trunk links. OSPF and static routes are used to connect the internal network to an ISP link.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views5 pages

Vlan 2,3,4,5

The document configures VLANs, interfaces, trunk ports, IP addresses, routing protocols, and access lists on a network switch. VLANs 10-13 and 99-100 are created and assigned to various switch ports and trunk links. OSPF and static routes are used to connect the internal network to an ISP link.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

vlan 2,3,99,100

///////////////////////////////////////
en
conf t
vlan 10
name vlan10
vlan 11
name vlan11
vlan 12
name vlan12
vlan 13
name vlan13
vlan 99
name Native
vlan 100
name Admin
exit
///////////////////////////////////////////
int range f0/1-2
sw mode access
sw access vlan 13

int f0/2
sw mode access
sw access vlan 13

/////////////////////////////////////
portchannel
int range f0/23-24
channel-group 1 mode active
exit
int po1
sw mode trunk
sw trunk native vlan 99
sw trunk allowed vlan 2,3,4,5,99
exit
///////////////////////////////////////
int g0/1
sw mode trunk
sw trunk native vlan 99
sw trunk allowed vlan 10,11,12,13,99,100
int g0/2
sw mode trunk
sw trunk native vlan 99
sw trunk allowed vlan 10,11,12,13,99,100

int f0/2
sw mode trunk
sw trunk native vlan 99
sw trunk allowed vlan 10,11,12,13,99,100

int f0/3
sw mode trunk
sw trunk native vlan 99
sw trunk allowed vlan 10,11,12,13,99,100
/////////////////////////////////////////////////////////////////////////////

int vlan 100


ip add 10.0.8.2 255.255.255.192
ip default-gateway 10.0.8.1

int vlan 100


ip add 10.0.8.3 255.255.255.192
ip default-gateway 10.0.8.1

int vlan 100


ip add 10.0.8.4 255.255.255.192
ip default-gateway 10.0.8.1

int vlan 100


ip add 10.0.8.5 255.255.255.192
ip default-gateway 10.0.8.1
/////////////////////////

HTTP/DNS
10.0.8.82
255.255.255.240
10.0.8.81
10.0.8.82

FTP
10.0.8.83
255.255.255.240
10.0.8.81
10.0.8.82

////////////////////////////////////
int g0/0
no shutdown
exit
int g0/0.10
description Gateway para vlan 10
encapsulation dot1q 10
ip add 10.0.0.1 255.255.252.0

int g0/0.11
description Gateway para vlan 11
encapsulation dot1q 11
ip add 10.0.4.1 255.255.254.0

int g0/0.12
description Gateway para vlan 12
encapsulation dot1q 12
ip add 10.0.6.1 255.255.254.0

int g0/0.13
description Gateway para vlan 13
encapsulation dot1q 13
ip add 10.0.8.81 255.255.255.240

int g0/0.99
description Gateway para vlan 99
encapsulation dot1q 99 native
ip add 10.0.8.65 255.255.255.240

int g0/0.100
description Gateway para vlan 100
encapsulation dot1q 100
ip add 10.0.8.1 255.255.255.192

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

int g0/0.555
description Gateway para VLAN 555
encapsulation dot1q 555
ip add 2.2.48.1 255.255.240.0
exit
int g0/0.999
description Gateway para VLAN 999
encapsulation dot1q 99 native
ip add 2.2.112.1 255.255.240.0
exit

ip dhcp pool PoolVLAN111


network 2.2.0.0 255.255.240.0
default-router 2.2.0.1
dns-server 2.2.32.2
ip dhcp excluded-address 2.2.0.1

ip dhcp pool PoolVLAN222


network 2.2.16.0 255.255.240.0
default-router 2.2.16.1
dns-server 2.2.32.2
ip dhcp excluded-address 2.2.16.1

ip dhcp pool PoolVLAN333


network 2.2.32.0 255.255.240.0
default-router 2.2.32.1
dns-server 2.2.32.2
ip dhcp excluded-address 2.2.32.1

ip dhcp pool PoolVLAN555


network 2.2.48.0 255.255.240.0
default-router 2.2.48.1
dns-server 2.2.32.2
ip dhcp excluded-address 2.2.48.1

ip dhcp pool PoolVLAN999


network 2.2.112.0 255.255.240.0
default-router 2.2.112.1
dns-server 2.2.32.2
ip dhcp excluded-address 2.2.112.1
ena
conf t
int s0/0/0
ip add 30.30.30.1 255.255.255.252
no sh
exit
ena
conf t
int s0/1/0
ip add 30.30.30.17 255.255.255.252
no sh
exit
ena
conf t
int s0/1/0
ip add 30.30.30.18 255.255.255.252
no sh
exit
int g0/1
ip add 2.2.128.5 255.255.255.0
no sh
router ospf 7
router-id 2.2.2.2
int s0/1/1
ip ospf 7 area 0
router ospf 7
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0

network 2.2.16.0 0.0.15.255 area 0


network 2.2.32.0 0.0.15.255 area 0
network 2.2.48.0 0.0.15.255 area 0
network 2.2.112.0 0.0.15.255 area 0
ena
conf t
router ospf 7
router-id 4.4.4.4
int s0/0/0
ip ospf 7 area 0

ip route 200.200.200.0 255.255.255.252 s0/0/0

ISP

default-information originate esto para indicar un router isp

red publica a la cual se le da una ip "200.200.200.0 255.255.255.252" el cual sera


entre el router isp
y el router de nuestra red
despues se le dara una comunicacion publica tal como:
ip route 0.0.0.0 0.0.0.0 s0/0/0
eso entre ambas interfaces
para que haya comunicacion entre el internet y nuestra red

int g0/1
ip ospf priority 250
end
clear ospf process

int g0/1
ip ospf priority 200
end
clear ip ospf process
int s0/0/0
ip ospf hello-interval 35
ip ospf dead-interval 140

listas de acceso

show ip access-lists

access-list 10 deny host 192.168.1.2


access-list 10 remark ACE deniega ping con pc4
int g0/0
ip access-group 10 out

You might also like