(Router Name) (Encrypted Privileged Exec Password)
(Router Name) (Encrypted Privileged Exec Password)
Router>enable
Router#config term
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#no ip domain-lookup
Router1(config-line)#interface fa0/0
Router1(config-if)#ip address 192.168.7.126 255.255.255.128
Router1(config-if)#no shutdown (interface ON)
Router1(config-if)#duplex auto
Router1(config-if)#speed auto
Router1(config-if)#description connection to host1
Router1(config-if)#interface fa0/1
Router1(config-if)#ip address 192.168.7.190 255.255.255.192
Router1(config-if)#no shutdown (interface ON)
Router1(config-if)#duplex auto
Router1(config-if)#speed auto
Router1(config-if)#description connection to switch1
Router1(config-if)#end
Router1#show run
Switch Configuration
Switch>enable
Switch#show running-config (Show the current running configuration file)
Switch#show startup-config (Show the current contents of NVRAM)
switch#show version (Display Cisco IOS information)
Switch#show interface vlan1 (Show the characteristics of the virtual interface VLAN1)
Switch#show interface fastethernet 0/18
switch#show ip interface vlan1 (view the IP properties of the interface)
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]?[Enter]
Delete flash:vlan.dat? [confirm] [Enter]
Switch#erase startup-config
The responding line prompt will be:
Erasing the nvram filesystem will remove all files! Continue? [confirm]
Press Enter to confirm.
The response should be:
Erase of nvram: complete
Switch(config)#reload
The responding line prompt will be:
System configuration has been modified. Save? [yes/no]:
Type n and then press Enter.
The responding line prompt will be:
Proceed with reload? [confirm] [Enter]
The first line of the response will be:
Reload requested by console.
After the switch has reloaded, the line prompt will be:
Would you like to enter the initial configuration dialog? [yes/no]:
Type n and then press Enter.
The responding line prompt will be:
Press RETURN to get started! [Enter]
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1(config-line)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#enable secret class (This password protects access to privileged EXEC mode)
Configure VLANS:
Switch#configure terminal
S1(config)#vlan 99 (create the new VLAN 99 on the switch)
S1(config-vlan)#exit
S1(config)#interface vlan99
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to down
S1(config-if)#ip address 172.17.99.11 255.255.255.0 (set the IP address & subnet mask)
S1(config-if)#no shutdown
S1(config)#ip default-gateway 172.17.99.1 (Set the switch default gateway)
S1(config-if)#exit
S1#show interface vlan 99
Notice that the VLAN 99 interface is in the down state even though you entered the
command no shutdown. The interface is currently down because no switchports are
assigned to VLAN 99.
S1#configure terminal
S1(config)#interface range fa0/1 - 24
S1(config-if-range)#switchport access vlan 99
S1(config-if-range)#exit
S1(config)#
Configure the port speed and duplex settings for a FastEthernet interface
S1#configure terminal
S1(config)#interface fastethernet 0/18
S1(config-if)#speed auto
S1(config-if)#duplex auto
S1(config-if)#end
Save the contents of the running configuration file to non-volatile RAM (NVRAM):
S1#show mac-address-table address dynamic (Show only the MAC addresses from the table
that were learned dynamically)
S1#show mac-address-table address <PC1 MAC here> (View the MAC address entry for PC1)
VLAN Configuration:
Switch#config term
Switch(config)#interface range fa0/1-24
Switch(config-if-range)#shutdown
Switch(config-if-range)#interface range gi0/1-2
Switch(config-if-range)#shutdown
S1(config)#interface vlan 99
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#no shutdown
S2(config)#interface vlan 99
S2(config-if)#ip address 172.17.99.12 255.255.255.0
S2(config-if)#no shutdown
S3(config)#interface vlan 99
S3(config-if)#ip address 172.17.99.13 255.255.255.0
S3(config-if)#no shutdown
Configure trunking and the native VLAN for the trunking ports on all switches
Step 1:
Check the current VTP settings on the three switches:
Step 2:
Configure the operating mode, domain name, and VTP password on all three switches
Note: The VTP domain name can be learned by a client switch from a server switch, but
only if the client switch domain is in the null state. It does not learn a new name if
one has been previously set. For that reason, it is good practice to manually configure
the domain name on all switches to ensure that the domain name is configured correctly.
Switches in different VTP domains do not exchange VLAN information.
Step 3:
Configure trunking and the native VLAN for the trunking ports on all three switches:
Step 4:
Configure port security on the S2 and S3 access layer switches.
S2(config)#interface fa0/6
S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#interface fa0/11
S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#interface fa0/18
S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#end
S3(config)#interface fa0/6
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
S3(config-if)#interface fa0/11
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
S3(config-if)#interface fa0/18
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
S3(config-if)#end
Step 5:
Configure VLANs on the VTP server.
S1(config)#vlan 99
S1(config-vlan)#name management
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
S1(config-vlan)#exit
Step 6:
Check if the VLANs created on S1 have been distributed to S2 and S3.