Vlan 6

Descargar como docx, pdf o txt
Descargar como docx, pdf o txt
Está en la página 1de 12

CONFIGURACION DE VLAN

Configuración PC1

Dirección IP: 192.168.10.10

Máscara: 255.255.255.0

Default Gateway: 192.168.10.1

Configuración PC2

Dirección IP: 192.168.10.20

Máscara: 255.255.255.0 Default

Gateway: 192.168.10.1

Configuración PC3

Dirección IP: 192.168.20.10

Máscara: 255.255.255.0 Default

Gateway: 192.168.20.1

Configuración PC4

Dirección IP: 192.168.20.20

Máscara: 255.255.255.0
Default Gateway: 192.168.20.1

Configuración PC5

Dirección IP: 192.168.40.10

Máscara: 255.255.255.0

Default Gateway: 192.168.40.1

Configuración PC6

Dirección IP: 192.168.40.20

Máscara: 255.255.255.0

Default Gateway: 192.168.40.1

Configuración PC7

Dirección IP: 192.168.50.10

Máscara: 255.255.255.0

Default Gateway: 192.168.50.1

Configuración PC8

Dirección IP: 192.168.50.20

Máscara: 255.255.255.0

Default Gateway: 192.168.50.1

Configuración Sw0

Sw0#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw0(config)#enable secret clave0
Crear uno o varios usuarios para el acceso por consola o telnet
Sw0(config)#username Cesar passwords profe
Sw0(config)#username otrousuario passwords otraclave
Para asociarlos con la consola y la línea vty
Sw0(config)#line console 0
Sw0(config-line)#login local
Sw0(config-line)#exit
Sw0(config)#line vty 0 15
Sw0(config-line)#login local

Crear diferentes vlan y sus nombres


Sw0(config)#vlan 10
Sw0(config-vlan)#name seccion1
Sw0(config-vlan)#vlan 100
Sw0(config-vlan)#name seccion2
Sw0(config-vlan)#exit
Configurar la interfaz f0/1 en modo Access y unido a vlan 10
Sw0(config)#int f0/1
Sw0(config-if)#switchport mode access
Sw0(config-if)#switchport access vlan 10
Configurar la interfaz f0/2 en modo Access y unido a vlan 10
Sw0(config-if)#int f0/2
Sw0(config-if)#switchport mode access
Sw0(config-if)#switchport access vlan 10
La interfaz f0/24 en modo trunk
Sw0(config-if)#int f0/24
Sw0(config-if)#switchport mode trunk
En modo trunk pueden pasar la vlan 10 y la vlan 100
Sw0(config-if)#exit
Configurar la IP de administración por la vlan 100
Sw0(config)#int vlan 100
Sw0(config-if)#ip address 192.168.100.10 255.255.255.0
Sw0(config-if)#exit
Para que pueda llegar a otras redes configurar una IP gateway
Sw0(config)#ip default-gateway 192.168.100.1
Sw0(config)#exit
Sw0#copy running-config startup-config

Configuracion Sw1
Switch>ena
Switch#Sw1
Translating "Sw1"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw1
Sw1(config)#enable secret clave1
Sw1(config)#username Cesar pass <Tab>
Sw1(config)#username Cesar password profe
Sw1(config)#username otrousuario pass<Tab>
Sw1(config)#username otrousuario password otraclave
Sw1(config)#vlan 20
Sw1(config-vlan)#name seccion3
Sw1(config-vlan)#vlan 100
Sw1(config-vlan)#name seccion2
Sw1(config-vlan)#exit
Sw1(config)#line console 0
Sw1(config-line)#login local
Sw1(config-line)#line vty 0 15
Sw1(config-line)#login local
Sw1(config-line)#exit
Sw1(config)#int f0/1
Sw1(config-if)#switchport mode acces
Sw1(config-if)#switchport access vlan 20
Sw1(config-if)#int f0/2
Sw1(config-if)#switchport mode acces
Sw1(config-if)#switchport access vlan 20

Las interfaces 1 y 2 se pueden configurar de forma simultánea así:


Sw1(config-if)#int range f0/1-2
Sw1(config-if-range)#switchport mode access
Sw1(config-if-range)#switchport access vlan 20

Sw1(config-if)#int f0/24
Sw1(config-if)#switchport mode trunk

Sw1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up


Sw1(config)#exit

Configurar la IP de administración por la vlan 100


Sw1(config)#int vlan 100
Sw1(config-if)#ip address 192.168.100.20 255.255.255.0
Sw1(config-if)#exit
Sw1(config)#ip default-gateway 192.168.100.1
Sw1(config)#exit
Sw1#
%SYS-5-CONFIG_I: Configured from console by console
Sw1#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Gig0/1, Gig0/2
20 seccion3 active Fa0/1, Fa0/2
100 seccion2 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs


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

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
Sw1#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual up up
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
Vlan100 192.168.100.20 YES manual up up
Sw1#wr mem
Building configuration...
[OK]
Sw1#

Configuracion Sw2
Switch>ena
Switch#Sw2
Translating "Sw1"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw1
Sw2(config)#enable secret clave2
Sw2(config)#username Cesar pass <Tab>
Sw2(config)#username Cesar password profe
Sw2(config)#username otrousuario pass<Tab>
Sw2(config)#username otrousuario password otraclave
Sw2(config)#vlan 40
Sw2(config-vlan)#name seccion5
Sw2(config-vlan)#vlan 200
Sw2(config-vlan)#name seccion2
Sw2(config-vlan)#exit
Sw2(config)#line console 0
Sw2(config-line)#login local
Sw2(config-line)#line vty 0 15
Sw2(config-line)#login local
Sw2(config-line)#exit
Sw2(config-if)#int range f0/1-2
Sw2(config-if-range)#switchport mode access
Sw2(config-if-range)#switchport access vlan 40

Sw2(config-if)#int f0/24
Sw2(config-if)#switchport mode trunk

Sw2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up


Sw2(config-if)#exit
Sw2(config)#int vlan 200
Sw2(config-if)#
%LINK-5-CHANGED: Interface Vlan200, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up

Sw2(config-if)#ip address 192.168.200.30 255.255.255.0


Sw2(config-if)#exit
Sw2(config)#ip default-gateway 198.168.200.1
Sw2(config)#exit
Sw2# wr
Building configuration...
[OK]

Configuracion Sw3

Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw3
Sw3(config)#enable secret clave3
Sw3(config)#username Cesar secret profe
Sw3(config)#vlan 50
Sw3(config-vlan)#name seccion6
Sw3(config)#vlan 200
Sw3(config-vlan)#name seccion2
Sw3(config-vlan)#exit

Sw3(config-vlan)#exit
Sw3(config)#line console 0
Sw3(config-line)#login local
Sw3(config-line)#line vty 0 15
Sw3(config-line)#login local
Sw3(config-line)#exit
Sw3(config)#int range f0/1-2
Sw3(config-if-range)#switchport mode access
Sw3(config-if-range)#switch access vlan 50
Sw3(config-if-range)#int f0/24
Sw3(config-if)#switchport mode trunk

Sw3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

Sw3(config)#int vlan 200


Sw3(config-if)#
%LINK-5-CHANGED: Interface Vlan200, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up

Sw3(config-if)#ip address 192.168.200.40 255.255.255.0


Sw3(config-if)#exit
Sw3(config)#ip default-gateway 192.168.200.1
Sw3(config)#exit
Sw3#
%SYS-5-CONFIG_I: Configured from console by console

Sw3#wr
Building configuration...
[OK]
Sw3#

Configuracion Sw4 (Multicapa L2/L3)


Sw4>
Sw4>ena
Sw4#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw4(config)#enable secret clave4
Sw4(config)#username cesar pas
Sw4(config)#username cesar password profe
Sw4(config)#line console 0
Sw4(config-line)#login local
Sw4(config-line)#line vty 0 15
Sw4(config-line)#login local
Sw4(config-line)#exit

Se configuran todas las vlan relacionadas con el Sw4 (vlan 10, vlan 20 y vlan 100)
Sw4(config)#vlan 10
Sw4(config-vlan)#name seccion1
Sw4(config-vlan)#vlan 20
Sw4(config-vlan)#name seccion3
Sw4(config-vlan)#vlan 100
Sw4(config-vlan)#name seccion2
Sw4(config-vlan)#exit

Configuración del ruteo a través dev Sw4


Sw4(config)#ip routing
Sw4(config)#int range f0/23-24
Sw4(config-if-range)#switchport trunk encapsulation dot1q
Sw4(config-if-range)#switchport mode trunk
Sw4(config-if-range)#exit
Cambiar g0/1 de switch a router
Sw4(config)#int g0/1
Sw4(config-if)#no switchport
Sw4(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to


up

Sw4(config-if)#ip address 192.168.30.1 255.255.255.252


Sw4(config-if)#exit
Sw4(config)#int vlan 10
Sw4(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Sw4(config-if)#ip add
Sw4(config-if)#ip address 192.168.10.1 255.255.255.0
Sw4(config-if)#int vlan 20
Sw4(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Sw4(config-if)#ip address 192.168.20.1 255.255.255.0


Sw4(config-if)#int vlan 100
Sw4(config-if)#
%LINK-5-CHANGED: Interface Vlan100, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Sw4(config-if)#ip address 192.168.100.1 255.255.255.0


Sw4(config-if)#exit
Sw4(config)#exit
Sw4#config t
Enter configuration commands, one per line. End with CNTL/Z.

Para establecer conectividad entre vlan 10, vlan 20 y vlan100 con vlan 40, vlan 50 y vlan
200 se especifican las rutas a través del Sw5 por la IP 192.168.30.2
Sw4(config)#ip route 192.168.40.0 255.255.255.0 192.168.30.2
Sw4(config)#ip route 192.168.50.0 255.255.255.0 192.168.30.2
Sw4(config)#ip route 192.168.200.0 255.255.255.0 192.168.30.2
Sw4(config)#exit

Para visualizar esta configuracion


Sw4#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.10.0/24 is directly connected, Vlan10


C 192.168.20.0/24 is directly connected, Vlan20
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, GigabitEthernet0/1
S 192.168.40.0/24 [1/0] via 192.168.30.2
S 192.168.50.0/24 [1/0] via 192.168.30.2
C 192.168.100.0/24 is directly connected, Vlan100
S 192.168.200.0/24 [1/0] via 192.168.30.2

Configuración Sw5
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Sw5
Sw5(config)#enable passwor
Sw5(config)#enable password clave5
Sw5(config)#username cesar secret profe
Sw5(config)#line console 0
Sw5(config-line)#login local
Sw5(config-line)#line vty 0 15
Sw5(config-line)#login local
Sw5(config-line)#exit
Sw5(config)#vlan 40
Sw5(config-vlan)#name seccion4
Sw5(config-vlan)#vlan 50
Sw5(config-vlan)#name seccion5
Sw5(config-vlan)#vlan 200
Sw5(config-vlan)#name seccion2
Sw5(config-vlan)#exit
Sw5(config)#ip routing
Sw5(config)#int range f0/23-24
Sw5(config-if-range)#switchport trunk encapsulation dot1q
Sw5(config-if-range)#switchport mode trunk
Sw5(config-if-range)#exit
Sw5(config)#int g0/1
Sw5(config-if)#no switchport
Sw5(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to


up

Sw5(config-if)#ip address 192.168.30.2 255.255.255.252


Sw5(config-if)#exit
Sw5(config)#int vlan 40
Sw5(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

Sw5(config-if)#ip address 192.168.40.1 255.255.255.0


Sw5(config-if)#int vlan 50
Sw5(config-if)#
%LINK-5-CHANGED: Interface Vlan50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

Sw5(config-if)#ip address 192.168.50.1 255.255.255.0


Sw5(config-if)#int vlan 200
Sw5(config-if)#
%LINK-5-CHANGED: Interface Vlan200, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up

Sw5(config-if)#ip address 192.168.200.1 255.255.255.0


Sw5(config-if)#exit
Sw5(config)#ip route 192.168.10.0 255.255.255.0 192.168.30.1
Sw5(config)#ip route 192.168.20.0 255.255.255.0 192.168.30.1
Sw5(config)#ip route 192.168.100.0 255.255.255.0 192.168.30.1
Sw5(config)#exit
Sw5#
%SYS-5-CONFIG_I: Configured from console by console

Sw5#wr
Building configuration...
[OK]
Sw5#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

S 192.168.10.0/24 [1/0] via 192.168.30.1


S 192.168.20.0/24 [1/0] via 192.168.30.1
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, GigabitEthernet0/1
C 192.168.40.0/24 is directly connected, Vlan40
C 192.168.50.0/24 is directly connected, Vlan50
S 192.168.100.0/24 [1/0] via 192.168.30.1
C 192.168.200.0/24 is directly connected, Vlan200

Sw5#

También podría gustarte

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy