Malta,cheguei com mais uma aula para vocês, hoje vou mostrar como configurar Vlans e o Roteamentos entre as Vlans no modo não tradicional, ou com roteador fixo, Com o Switch catalyst 2690 e com o Roteador Cisco 1841.
Quatro Vlans, na topologia abaixo:
Por defeito as interfaces( portas do switches) ficam activadas.
VTP SERVIDOR
switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SSERVIDOR
SSERVIDOR(config)#vtp mode server
Device mode already VTP SERVER.
SSERVIDOR(config)#vtp domain NKIAMBI
Changing VTP domain name from NULL to NKIAMBI
SSERVIDOR(config)#vtp password NKIAMBI
Setting device VLAN database password to NKIAMBI
SSERVIDOR(config)#exi
SSERVIDOR#
%SYS-5-CONFIG_I: Configured from console by console
SSERVIDOR#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
SSERVIDOR(config)#vlan 5
SSERVIDOR(config-vlan)#name compras
SSERVIDOR(config-vlan)#vlan 6
SSERVIDOR(config-vlan)#name entregas
SSERVIDOR(config-vlan)#vlan 7
SSERVIDOR(config-vlan)#name marketing
SSERVIDOR(config-vlan)#vlan 8
SSERVIDOR(config-vlan)#name funcionarios
SSERVIDOR(config-vlan)#^Z
SSERVIDOR#
%SYS-5-CONFIG_I: Configured from console by console
SSERVIDOR#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, 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, Fa0/24
Gig1/1, Gig1/2
5 compras active
6 entregas active
7 marketing active
8 funcionarios active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SSERVIDOR#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
SSERVIDOR(config)#int fa0/1
SSERVIDOR(config-if)#switchport mode trunk
SSERVIDOR(config)#int f0/2
SSERVIDOR(config-if)#switchport mode trunk
SSERVIDOR(config-if)#^Z
SSERVIDOR#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
SSERVIDOR(config)#int range fa0/3-10
SSERVIDOR(config-if-range)#switchport mode access
SSERVIDOR(config-if-range)#switchport access vlan 5
SSERVIDOR(config-if-range)#int range fa0/11-20
SSERVIDOR(config-if-range)#switchport mode access
SSERVIDOR(config-if-range)#switchport access vlan 6
VTP CLIENTE
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SCLIENTE
SCLIENTE(config)#^exit
SCLIENTE(config)#vtp mode client
Setting device to VTP CLIENT mode.
SCLIENTE(config)#vtp domain NKIAMBI
Domain name already set to NKIAMBI.
SCLIENTE(config)#vtp password NKIAMBI
Setting device VLAN database password to NKIAMBI
SCLIENTE(config)#^Z
SCLIENTE#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/2, 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, Fa0/24, Gig1/1
Gig1/2
5 compras active
6 entregas active
7 marketing active
8 funcionarios active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SCLIENTE#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
SCLIENTE(config)#int range fa0/1-6
SCLIENTE(config-if-range)#switchport mode access
SCLIENTE(config-if-range)#switchport access vlan 7
SCLIENTE(config-if-range)#int range fa0/11-15
SCLIENTE(config-if-range)#switchport mode access
SCLIENTE(config-if-range)#switchport access vlan 8
SCLIENTE(config-if-range)#^Z
SCLIENTE#
%SYS-5-CONFIG_I: Configured from console by console
SCLIENTE#show vtp status
VTP Version : 2
Configuration Revision : 8
Maximum VLANs supported locally : 255
Number of existing VLANs : 9
VTP Operating Mode : Client
VTP Domain Name : NKIAMBI
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x0B 0xBD 0x0B 0x11 0xFB 0x5A 0xF7 0xF5
Configuration last modified by 0.0.0.0 at 3-1-93 01:24:12
SCLIENTE#
SCLIENTE(config)#int fa0/1
SCLIENTE(config-if)#switchport mode trunk
SCLIENTE(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
^Z
SCLIENTE#
%SYS-5-CONFIG_I: Configured from console by console
SCLIENTE#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
5 compras active
6 entregas active
7 marketing active Fa0/2, Fa0/3, Fa0/4, Fa0/5
Fa0/6
8 funcionarios active Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SCLIENTE#
CONFIGURAÇÔES DO ROTEADOR
Router>EN
Router#CONFIG
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int fa0/0.5
R1(config-subif)#encapsulation dot1q 5
R1(config-subif)#ip add 192.168.1.1 255.255.255.240
R1(config-subif)#exi
R1(config)#int fa0/0.6
R1(config-subif)#encapsulation dot1q 6
R1(config-subif)#ip add 192.168.1.17 255.255.255.240
R1(config-subif)#exit
R1(config)#int fa0/0.7
R1(config-subif)#encapsulation dot1q 7
R1(config-subif)#ip add 192.168.1.33 255.255.255.240
R1(config-subif)#exi
R1(config)#int fa0/0.8
R1(config-subif)#encapsulation dot1q 8
R1(config-subif)#ip add 192.168.1.49 255.255.255.240
R1(config-subif)#exi
R1(config)#end
R1#
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int fa0/0
R1(config-if)#no shut
R1#show 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
192.168.1.0/28 is subnetted, 4 subnets
C 192.168.1.0 is directly connected, FastEthernet0/0.5
C 192.168.1.16 is directly connected, FastEthernet0/0.6
C 192.168.1.32 is directly connected, FastEthernet0/0.7
C 192.168.1.48 is directly connected, FastEthernet0/0.8
Depois da Configuração, topologia a baixo:
Espero que vos seje util, Obrigado
Caso de duvida não hesitem, escrevam
d-conecta@outlook.com