| Device | Interface | IP address | Subnet Mask |
|---|---|---|---|
| S1 | VLAN 99 | 192.168.99.1 | 255.255.255.0 |
| S2 | VLAN 99 | 192.168.99.2 | 255.255.255.0 |
| S3 | VLAN 99 | 192.168.99.3 | 255.255.255.0 |
| PC-A | NIC | 192.168.10.1 | 255.255.255.0 |
| PC-B | NIC | 192.168.20.1 | 255.255.255.0 |
| PC-C | NIC | 192.168.10.2 | 255.255.255.0 |
Goal: Setting up VTP, Setting up DTP, Adding VLANs and Assigning Ports, Setting up an Extended VLAN
All switches use VTP for VLAN updates. S2 is configured as VTP server, S1 and S3 as clients.
Part 4 switches S1 to VTP transparent mode and creates an extended-range VLAN.
S1
enable
configure terminal
interface vlan 1
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
hostname S1
do copy run start
S2
enable
configure terminal
interface vlan 1
ip address 192.168.1.2 255.255.255.0
no shutdown
exit
hostname S2
do copy run start
S3
enable
configure terminal
interface vlan 1
ip address 192.168.1.3 255.255.255.0
no shutdown
exit
hostname S3
do copy run start
Disable DNS lookup, set passwords, enable logging synchronous:
S1, S2, S3
no ip domain-lookup
enable secret cisco
line console 0
password cisco
login
logging synchronous
banner motd "** This is a secure system. Authorized Access Only!"
S2 (VTP Server)
vtp domain CCNA
vtp password cisco
vtp version 3
vtp mode server
end
vtp primary server force
S1, S3 (VTP Client)
vtp domain CCNA
vtp password cisco
vtp version 3
vtp mode client
S1, S2, S3
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
Verify: show interfaces trunk
S2
vlan 999
name VTP_Lab
vlan 10
name Red
vlan 20
name Blue
vlan 30
name Yellow
vlan 99
name Management
Verify propagation: show vlan brief on S1 and S3.
S1
vtp mode transparent
vlan 2000
name Extended_VLAN
