Roteamento Inter Vlan-Pratica Rede-II 24/10/2012
Arquivo Lab_VLAN.pkt:
www.dropbox.com/sh/9xd1rg89okviokf/AeOwpMMAxp
#########
Configuração Padrão
hostname SW-III
!
enable secret class
!
no ip domain lookup
line con 0
password cisco
line aux 0
password cisco
line vty 0 4
password cisco
Configuração:
Config Geral dos Switches:
- Hostname conforme topologia
- Senhas de enable, console e VTY como "cisco"
- IP de gerenciamento dos switches (/24):
SW-II 2960: 192.168.0.2
SW-I 2950-1: 192.168.0.3
SW-III 2950-2: 192.168.0.4
- Gateway dos switches: 192.168.0.1 (IP da VLAN 51 do router)
- DNS para todos: 10.0.0.100
R:
ip domain-name 10.0.0.100
- VLAN Nativa (gerenciamento): VLAN 51
- VLAN Membership e IPs:
VLAN 10 - 10.0.10.0 /24 (nome ADM)
- Portas 1 a 15
VLAN20 - 10.0.20.0 /24 (nome Comercial)
- Portas 16 a 20
VLAN30 - 10.0.30.0/24 (nome Financeiro)
- Portas 21 a 24
*** CRIANDO AS VLANS NOS SWITCHS SW-I, SW-II E SW-III:
conf t
vlan 10
name ADM
vlan 20
name Comercial
vlan 30
name financeiro
exit
ip default-gateway 192.168.0.1
ip domain-name 10.0.0.100
*** ATRIBUINDO AS VLANS AS PORTAS EM TODOS OS SWITCHS:
interface range fastEthernet 0/2-15
switchport access vlan 10
switchport mode access
interface range fastEthernet 0/16-20
switchport access vlan 20
switchport mode access
interface range fastEthernet 0/21-24
switchport access vlan 30
switchport mode access
interface Vlan1
no ip address
no ip route-cache
*** SW-I 2950-1: 192.168.0.3
SW-I(config)#
vlan 51
name GER
interface vlan 51
ip address 192.168.0.3 255.255.255.0
no shutdown
interface GigabitEthernet1/1
description Connection to Trunk SW-II
switchport trunk native vlan 51
switchport mode trunk
no shutdown
interface FastEthernet0/2
description Connection to RT-I
switchport trunk native vlan 51
switchport mode trunk
no shutdown
*** SW-II 2960: 192.168.0.2
SW-I(config)#
vlan 51
name GER
END
interface vlan 51
ip address 192.168.0.3 255.255.255.0
SW-II(config-if)#interface vlan 51
ip address 192.168.0.2 255.255.255.0
SW-II(config-if)#switchport mode trunk
SW-II(config-if)#switchport trunk native vlan 51
SW-II(config-if)#no shutdown
interface GigabitEthernet1/1
description Connection to SW-I 2950-I
switchport trunk native vlan 51
switchport mode trunk
no shutdown
interface GigabitEthernet1/2
description Connection to SW-III 2950-II
switchport trunk native vlan 51
switchport mode trunk
no shutdown
*** SW-III 2950-2: 192.168.0.4
SW-III(config)#
vlan 51
name GER
END
SW-III(config-if)#
interface vlan 51
ip address 192.168.0.3 255.255.255.0
SW-III(config-if)#ip address 192.168.0.4 255.255.255.0
SW-III(config-if)#no shutdown
SW-III(config-if)#switchport mode trunk
SW-III(config-if)#switchport trunk native vlan 51
SW-III(config-if)#no shutdown
interface GigabitEthernet1/1
description Connection to SW-II 2960
switchport trunk native vlan 51
switchport mode trunk
no shutdown
*** Config em R-I
interface FastEthernet0/0
no shutdown
!
interface FastEthernet0/0.51
description Connection to SW-I
encapsulation dot1Q 51 native
ip address 192.168.0.1 255.255.255.0
no shutdown
!
interface FastEthernet0/0.10
description Connection to SW-I
encapsulation dot1Q 10
ip address 10.0.10.51 255.255.255.0
no shutdown
!
interface FastEthernet0/0.20
description Connection to SW-I
encapsulation dot1Q 20
ip address 10.0.20.51 255.255.255.0
no shutdown
!
interface FastEthernet0/0.30
description Connection to SW-I
encapsulation dot1Q 30
ip address 10.0.30.51 255.255.255.0
no shutdown
interface FastEthernet0/1
RT-I(config-if)#
description Connection to Server DNS
ip address 10.0.0.1 255.255.255.0
no shutdown
###################################################
- Os micros e servidor já estão configurados
- O roteador basta configurar a porta do servidor e o roteamento entre VLAN
- Para verificar se está tudo ok nos switches:
- show vlan brief
- show vlan
- show interface trunk
- show mac-address-table
- No roteador bastam os comandos show ip int brief e show ip route
###################################################
Config RT-I
RT-I#sh running-config
Building configuration...
Current configuration : 1135 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname RT-I
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
ip domain-name 10.0.0.100
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
description Connection to SW-I
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
description Connection to SW-I
encapsulation dot1Q 10
ip address 10.0.10.51 255.255.255.0
!
interface FastEthernet0/0.20
description Connection to SW-I
encapsulation dot1Q 20
ip address 10.0.20.51 255.255.255.0
!
interface FastEthernet0/0.30
description Connection to SW-I
encapsulation dot1Q 30
ip address 10.0.30.51 255.255.255.0
!
interface FastEthernet0/0.51
description Connection to SW-I
encapsulation dot1Q 51 native
ip address 192.168.0.1 255.255.255.0
!
interface FastEthernet0/1
description Connection to Server DNS
ip address 10.0.0.1 255.255.255.0
no shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
no cdp run
!
!
!
!
!
line con 0
password cisco
login
line vty 0 4
password cisco
login
!
!
!
end
RT-I#
*** Testes em RT-I:
RT-I#ping 192.168.0.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/7 ms
RT-I#ping 192.168.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/19 ms
RT-I#ping 192.168.0.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/14/34 ms
RT-I#ping 10.0.0.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
RT-I#ping 10.0.10.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.30, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 9/14/20 ms
RT-I#ping 10.0.20.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.20.30, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/11/16 ms
RT-I#ping 10.0.30.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.30.30, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 7/12/15 ms
RT-I#10.0.30.20
Trying 10.0.30.20 ...
% Connection refused by remote host
RT-I#ping 10.0.30.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.30.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/18/48 ms
RT-I#ping 10.0.20.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.20.20, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 10/16/20 ms
RT-I#ping 10.0.10.20
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.20, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/17/26 ms
RT-I#ping 10.0.30.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.30.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/7/10 ms
RT-I#ping 10.0.20.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.20.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/7/11 ms
RT-I#ping 10.0.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 6/7/10 ms
RT-I#sh ip rou
RT-I#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
10.0.0.0/24 is subnetted, 3 subnets
C 10.0.10.0 is directly connected, FastEthernet0/0.10
C 10.0.20.0 is directly connected, FastEthernet0/0.20
C 10.0.30.0 is directly connected, FastEthernet0/0.30
C 192.168.0.0/24 is directly connected, FastEthernet0/0.51
RT-I#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/0.10 10.0.10.51 YES manual up up
FastEthernet0/0.20 10.0.20.51 YES manual up up
FastEthernet0/0.30 10.0.30.51 YES manual up up
FastEthernet0/0.51 192.168.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset up up
Vlan1 unassigned YES unset administratively down down
RT-I#
##########################################################
SW-I
Config em SW-I:
SW-I#sh running-config
Building configuration...
Current configuration : 2614 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW-I
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
no ip domain-lookup
ip domain-name 10.0.0.100
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
description Connection to RT-I
switchport trunk native vlan 51
switchport mode trunk
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/9
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/21
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/22
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/23
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/24
switchport access vlan 30
switchport mode access
!
interface GigabitEthernet1/1
description Connection to Trunk SW-II
switchport trunk native vlan 51
switchport mode trunk
!
interface GigabitEthernet1/2
shutdown
!
interface Vlan1
no ip address
shutdown
!
interface Vlan51
ip address 192.168.0.3 255.255.255.0
!
ip default-gateway 192.168.0.1
!
!
line con 0
password cisco
!
line vty 0 4
password cisco
login
line vty 5 15
login
!
!
end
SW-I#
Testes e verificação de configuração em SW-I
SW-I#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig1/2
10 ADM active Fa0/1, 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
20 Comercial active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20
30 financeiro active Fa0/21, Fa0/22, Fa0/23, Fa0/24
51 GER active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
51 enet 100051 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
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
SW-I#
SW-I#
SW-I#
SW-I#
SW-I#
SW-I#
SW-I#sh
SW-I#show inter
SW-I#show interfaces tr
SW-I#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/2 on 802.1q trunking 51
Gig1/1 on 802.1q trunking 51
Port Vlans allowed on trunk
Fa0/2 1-1005
Gig1/1 1-1005
Port Vlans allowed and active in management domain
Fa0/2 1,10,20,30,51
Gig1/1 1,10,20,30,51
Port Vlans in spanning tree forwarding state and not pruned
Fa0/2 1,10,20,30,51
Gig1/1 1,10,20,30,51
SW-I#sh
SW-I#show vla
SW-I#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig1/2
10 ADM active Fa0/1, 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
20 Comercial active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20
30 financeiro active Fa0/21, Fa0/22, Fa0/23, Fa0/24
51 GER active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
51 enet 100051 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
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
SW-I#
SW-I#
SW-I#
SW-I#sh
SW-I#show ma
SW-I#show mac
SW-I#show mac-a
SW-I#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 0060.700a.5901 DYNAMIC Gig1/1
10 0001.9740.8912 DYNAMIC Fa0/5
10 0005.5e59.3101 DYNAMIC Fa0/2
10 0009.7ca1.e840 DYNAMIC Gig1/1
10 0060.700a.5901 DYNAMIC Gig1/1
20 0001.64c7.4c58 DYNAMIC Fa0/16
20 0005.5e59.3101 DYNAMIC Fa0/2
20 000c.8509.8aba DYNAMIC Gig1/1
20 0060.700a.5901 DYNAMIC Gig1/1
30 0005.5e59.3101 DYNAMIC Fa0/2
30 0006.2a07.b11c DYNAMIC Fa0/23
30 0060.700a.5901 DYNAMIC Gig1/1
51 0060.700a.5901 DYNAMIC Gig1/1
SW-I#
SW-I#
SW-I#sh
SW-I#show vla
SW-I#show vlan ip
SW-I#show vlan br
SW-I#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig1/2
10 ADM active Fa0/1, 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
20 Comercial active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20
30 financeiro active Fa0/21, Fa0/22, Fa0/23, Fa0/24
51 GER active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW-I#ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/5/14 ms
SW-I#ping 192.168.0.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
SW-I#ping 192.168.0.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.4, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/6/9 ms
SW-I#ping 10.0.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-I#
##########################################################
SW-II
SW-II#sh running-config
Building configuration...
Current configuration : 2666 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW-II
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
no ip domain-lookup
ip domain-name 10.0.0.100
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/9
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/21
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/22
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/23
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/24
switchport access vlan 30
switchport mode access
!
interface GigabitEthernet1/1
description Connection to SW-I 2950-I
switchport trunk native vlan 51
switchport mode trunk
!
interface GigabitEthernet1/2
description Connection to SW-III 2950-II
switchport trunk native vlan 51
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan51
ip address 192.168.0.2 255.255.255.0
!
ip default-gateway 192.168.0.1
!
!
line con 0
password cisco
!
line vty 0 4
password cisco
login
line vty 5 15
login
!
!
end
SW-II#
#################################################
running-config em SW-III
SW-III#sh running-config
Building configuration...
Current configuration : 2575 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW-III
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
no ip domain-lookup
ip domain-name 10.0.0.100
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/9
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/21
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/22
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/23
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/24
switchport access vlan 30
switchport mode access
!
interface GigabitEthernet1/1
description Connection to Trunk SW-II 2960
switchport trunk native vlan 51
switchport mode trunk
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan51
ip address 192.168.0.4 255.255.255.0
!
ip default-gateway 192.168.0.1
!
!
line con 0
password cisco
!
line vty 0 4
password cisco
login
line vty 5 15
login
!
!
end
SW-III#
#############################################################
Ping nos PC's
Packet Tracer PC Command Line 1.0
PC>ping 10.0.20.20
Pinging 10.0.20.20 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.20.20:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC>ping 10.0.30.30
Pinging 10.0.30.30 with 32 bytes of data:
Reply from 10.0.30.30: bytes=32 time=18ms TTL=128
Reply from 10.0.30.30: bytes=32 time=9ms TTL=128
Reply from 10.0.30.30: bytes=32 time=9ms TTL=128
Reply from 10.0.30.30: bytes=32 time=10ms TTL=128
Ping statistics for 10.0.30.30:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 18ms, Average = 11ms
PC>ping 10.0.10.20
Pinging 10.0.10.20 with 32 bytes of data:
Request timed out.
Request timed out.
Ping statistics for 10.0.10.20:
Packets: Sent = 3, Received = 0, Lost = 3 (100% loss),
Control-C
^C
PC>ping 10.0.30.30
Pinging 10.0.30.30 with 32 bytes of data:
Reply from 10.0.30.30: bytes=32 time=16ms TTL=128
Reply from 10.0.30.30: bytes=32 time=6ms TTL=128
Reply from 10.0.30.30: bytes=32 time=17ms TTL=128
Reply from 10.0.30.30: bytes=32 time=14ms TTL=128
Ping statistics for 10.0.30.30:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 6ms, Maximum = 17ms, Average = 13ms
PC>ping 192.168.0.1
Pinging 192.168.0.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC>ping 10.0.30.51
Pinging 10.0.30.51 with 32 bytes of data:
Reply from 10.0.30.51: bytes=32 time=32ms TTL=255
Reply from 10.0.30.51: bytes=32 time=12ms TTL=255
Reply from 10.0.30.51: bytes=32 time=10ms TTL=255
Reply from 10.0.30.51: bytes=32 time=38ms TTL=255
Ping statistics for 10.0.30.51:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 38ms, Average = 23ms
PC>ping 10.0.20.51
Pinging 10.0.20.51 with 32 bytes of data:
Request timed out.
Ping statistics for 10.0.20.51:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
PC>
PC>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Testes de Ping:
Obs.: O Router ping todas as redes.
Password:
RT-I#ping 10.0.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 5/7/10 ms
RT-I#ping 10.0.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/10 ms
RT-I#ping 10.0.20.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.20.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 5/7/9 ms
RT-I#ping 10.0.30.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.30.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 3/7/11 ms
RT-I#
%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
RT-I#
RT-I#
RT-I#
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Obs: Os PC só pingam suas respectivas VLAN's:
Packet Tracer PC Command Line 1.0
PC>
PC>
PC>ifconfig
Invalid Command.
PC>ipconfig
IP Address......................: 10.0.10.10
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 10.0.10.1
PC>ping 192.168.0.3
Pinging 192.168.0.3 with 32 bytes of data:
Request timed out.
Ping statistics for 192.168.0.3:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
PC>ping 10.0.20.10
Pinging 10.0.20.10 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.20.10:
Packets: Sent = 3, Received = 0, Lost = 3 (100% loss),
Control-C
^C
PC>
PC>ping 10.0.10.30
Pinging 10.0.10.30 with 32 bytes of data:
Reply from 10.0.10.30: bytes=32 time=21ms TTL=128
Reply from 10.0.10.30: bytes=32 time=15ms TTL=128
Reply from 10.0.10.30: bytes=32 time=13ms TTL=128
Reply from 10.0.10.30: bytes=32 time=17ms TTL=128
Ping statistics for 10.0.10.30:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 21ms, Average = 16ms
PC>ping 10.0.20.20
Pinging 10.0.20.20 with 32 bytes of data:
Request timed out.
Ping statistics for 10.0.20.20:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
PC>
PC>ping 10.0.10.10
Pinging 10.0.10.10 with 32 bytes of data:
Reply from 10.0.10.10: bytes=32 time=0ms TTL=128
Reply from 10.0.10.10: bytes=32 time=12ms TTL=128
Reply from 10.0.10.10: bytes=32 time=5ms TTL=128
Reply from 10.0.10.10: bytes=32 time=3ms TTL=128
Ping statistics for 10.0.10.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 12ms, Average = 5ms
PC>ping 10.0.0.100
Pinging 10.0.0.100 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.100:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC>ping 10.0.0.1
Pinging 10.0.0.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.1:
Packets: Sent = 3, Received = 0, Lost = 3 (100% loss),
Control-C
^C
PC>
PC>

Nenhum comentário:
Postar um comentário