Este é um LAB bem básico, apenas para testar o conhecimento de associação de trunk em roteadores, portas access/trunk e criação de vlans em switchs
Sua tarefa estará completa quando:
O Roteadores A, B e C estiverem com conectividade entre si.
Topologia:
***************************
Config dos routers e switchs:
********* SW1 *********
vlan database
vlan 1
vlan 2
vlan 3
vtp domain SWITCH
vtp transparent
vtp password lab
vtp v2-mode
vtp pruning
apply
exit
conf t
spanning-tree backbonefast
interface fast 0/0
switchport access vlan 1
no ip address
no shut
spanning-tree portfast
interface fast 0/1
switchport mode trunk
switchport trunk allowed vlan add 1
switchport trunk allowed vlan add 2
switchport trunk allowed vlan remove 4-1001
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 16000 debugging
no logging console
ip subnet-zero
ip cef
no ip domain lookup
no ip http server
ip classless
end
wr
********* SW2 *********
vlan database
vlan 1
vlan 2
vtp domain SWITCH
vtp transparent
vtp password lab
vtp v2-mode
vtp pruning
apply
exit
conf t
spanning-tree backbonefast
interface fast 0/1
switchport mode trunk
switchport trunk allowed vlan add 1
switchport trunk allowed vlan add 2
switchport trunk allowed vlan remove 4-1001
interface FastEthernet0/2
switchport access vlan 3
no ip address
no shut
spanning-tree portfast
interface FastEthernet0/3
switchport access vlan 2
no ip address
no shut
spanning-tree portfast
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 16000 debugging
no logging console
ip subnet-zero
ip cef
no ip domain lookup
no ip http server
ip classless
end
wr
********* A *********
conf t
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 16000 debugging
no logging console
ip subnet-zero
ip cef
no ip domain lookup
no ip http server
ip classless
interface FastEthernet0/0
NO SHUT
interface FastEthernet0/0.1
encapsulation dot1Q 1 native
interface FastEthernet0/0.2
encapsulation dot1Q 2
ip address 10.0.0.1 255.255.255.0
interface FastEthernet0/0.3
encapsulation dot1Q 3
ip address 11.0.0.1 255.255.255.0
end
wr
********* B *********
conf t
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 16000 debugging
no logging console
ip subnet-zero
ip cef
no ip domain lookup
no ip http server
ip classless
interface FastEthernet0/0
NO SHUT
ip address 11.0.0.2 255.255.255.0
end
wr
********* C *********
conf t
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 16000 debugging
no logging console
ip subnet-zero
ip cef
no ip domain lookup
no ip http server
ip classless
interface FastEthernet0/0
NO SHUT
ip address 10.0.0.2 255.255.255.0
end
wr
***************************
arquivo Dynamips (este arquivo foi gerado para o dynamips padrão, caso resolva utilizar o GNS será necessário montar a topologia na hora, não esqueça de corrigir o caminho do IOS e de fazer o idlepc)
autostart = False
[localhost]
[[3620]]
image = .\c3620-is-mz-123-9.bin
ram = 64
[[ROUTER A]]
model = 3620
F0/0 = SW1 F0/0
[[ROUTER SW1]]
model = 3620
slot0 = NM-16ESW
F0/1 = SW2 F0/1
[[ROUTER SW2]]
model = 3620
slot0 = NM-16ESW
F0/2 = B F0/0
F0/3 = C F0/0
[[router B]]
model = 3620
[[router C]]
model = 3620
IOS para download:
http://www.4shared.com/file/57387619/93c4461e/c3620-is-mz-123-9.html
Dica:
Nestes switchs a criação de vlan é apenas pelo modo database (o database não aparece no show run).