Switch#erase Startup-Config Switch#delete Flash:vlan - Dat Switch#reload Switch Enable S1#show Vlan
Switch#erase Startup-Config Switch#delete Flash:vlan - Dat Switch#reload Switch Enable S1#show Vlan
Switch#erase startup-config
Switch#delete flash:vlan.dat
Switch#reload
Switch>enable
S1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
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
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
Basic Configuration
Switch#conf t
1. HOSTNAMES, NO DOMAIN-LOOKUPs
Switch(config)#hostname S1
S1(config)#no ip domain-lookup
===================================
2. SERVICE ENCRYPTION
S1(config)#service password-encryption -- (need to signup if askining..)
=================================================================
3. ENABLE SECRET PASSWORD
S1(config)#enable secret class
S1(config)#enable password cisco
=====================================
4. LINE CONFIGURATIONS
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#
===================================
5. BANNER
S1(config)#banner motd &
Enter TEXT message. End with the character '&'.
**************************
!AUTHORIZED ACCESS ONLY!!!
**************************
&
========================================
6. SWITCH DEFAULT GATEWAYS
S1(config)# ip default-gateway 172.17.99.1
==============================================================================
Configure the management VLAN interface on S1, S2, and S3.
Create and enable interface VLAN 99 on each switch. Use the addressing table for address configuration.
S1(config)#interface vlan 99
S1(config-if)#ip address 172.17.99.31 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#
============================================================================
Configure VTP
S1 as the server, S2 and S3 as client
CCNA as the VTP domain name
cisco as the VTP domain password
S1(config)#vtp mode server
Device mode already VTP SERVER.
S1(config)#vtp domain CCNA
Changing VTP domain name from NULL to CCNA
S1(config)#vtp password cisco
Setting device VLAN database password to cisco
S1(config)#end
S1(config)#int fa0/5
S1(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#no shutdown
S1(config-if)#end
==================================
Create the VLANs on S1. Only on S1:
VLAN 10 Faculty/Staff
VLAN 20 Students
VLAN 30 Guest(Default)
VLAN 99 Management&Native
Note: VTP advertises the new VLANs to S1 and S2.
S1#conf
S1(config)#vlan 99
S1(config-vlan)#name Management&Native
S1(config-vlan)#exit
S1(config)#vlan 10
S1(config-vlan)#name Faculty/Staff
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name Students
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name Guest(Default)
S1(config-vlan)#
S1(config-vlan)#exit
S1(config)#exit
=======================================================
Verify that VLANs have been sent to S2 and S3.
??????????????Note: It may take a few minutes for Packet Tracer to simulate the VTP advertisements.
S2 and S3 now have the VLANs you created on S1 by advertisements of VTP
S2(config-if)#int fa0/18
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#int vlan 20
S2(config-if)#
Interface Vlan20, changed state to up
Line protocol on Interface Vlan20, changed state to up
S2(config-if)#ip address 172.17.20.22 255.255.255.0
S2(config-if)#no shutdown
S2(config-if)#end
S2#copy running-conf startup-conf
S2(config-if)#int fa0/6
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 30
S2(config-if)#int vlan 30
S2(config-if)#
Interface Vlan30, changed state to up
Line protocol on Interface Vlan30, changed state to up
config-if)#ip address 172.17.30.23 255.255.255.0
S2(config-if)#no shutdown
S2(config-if)#end
S2#copy running-conf startup-conf
R1(config)#int fa0/1
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R1(config-if)#int fa0/1.10
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.10, changed state to up
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip address 172.17.10.1 255.255.255.0
R1(config-subif)#int fa0/1.20
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.20, changed state to up
R1(config-subif)#encapsulation dot1q 20
R1(config-subif)#ip address 172.17.20.1 255.255.255.0
R1(config-subif)#int fa0/1.30
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.30, changed state to up
R1(config-subif)#encapsulation dot1q 30
R1(config-subif)#ip address 172.17.30.1 255.255.255.0
R1(config-subif)#int fa0/1.99
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.99, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.99, changed state to up
R1(config-subif)#encapsulation dot1q 99 native
R1(config-subif)#ip address 172.17.99.1 255.255.255.0
===================================================
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
172.17.0.0/24 is subnetted, 5 subnets
C 172.17.10.0 is directly connected, FastEthernet0/1.10
C 172.17.20.0 is directly connected, FastEthernet0/1.20
C 172.17.30.0 is directly connected, FastEthernet0/1.30
C 172.17.50.0 is directly connected, FastEthernet0/0
C 172.17.99.0 is directly connected, FastEthernet0/1.99