Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Vlan Packet Tracer

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Router

> ena
#conf t
(config)# int g0/0
# no sh

(config)#inter g0/0.10
#encapsulation dot1q 10
#ip address 192.168.10.1 255.255.255.0

(config)#inter g0/0.20
#encapsulation dot1q 20
#ip address 192.168.20.1 255.255.255.0

(config)#inter g0/0.30
#encapsulation dot1q 30
#ip address 192.168.30.1 255.255.255.0

DHCP para las van


(config)#ip dhcp pool vlan10
network 192.168.10.1 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8
exit
(config)#ip dhcp pool vlan20
network 192.168.20.1 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8
exit
(config)#ip dhcp pool vlan30
network 192.168.30.1 255.255.255.0
default-router 192.168.30.1
dns-server 8.8.8.8
exit
(config)#ip dhcp excluded-address 192.168.10.1
(config)#ip dhcp excluded-address 192.168.20.1
(config)#ip dhcp excluded-address 192.168.30.1

SWICHT
>enable
#conf t
(config)#vlan 10
name servidores
(config)#vlan 20
name secRRHH
(config)#vlan 30
name secPlanificacion

(config)#interface range fastEthernet 0/1-8


switchport mode access
switchport access vlan 10
exit

(config)#interface range fastEthernet 0/9-16


switchport mode access
switchport access vlan 20
exit

(config)#interface range fastEthernet 0/17-24


switchport mode access
switchport access vlan 30
exit

(config)#interface fastEthernet 0/1


switchport mode trunk
switchport trunk allowed vlan 10,20,30

You might also like