Scenario Lab IP Addressing On Catalyst 2950 Switches

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Lab ID: 9.9K713A012.SCI1.

Scenario Lab: IP Addressing on Catalyst 2950


Switches
Objective
Build a lab network that will enable you to learn the basic commands needed to congure a switch.

Lab Topology
The Topology diagram below represents the NetMap in the Simulator.

Fa0/1 Fa0/11 Fa0/11 Fa0/1


Switch1 Switch2
HostA Fa0/12 Fa0/12 HostB

Command Summary
Command Description
congure terminal enters global conguration mode from privileged EXEC mode
enable enters privileged EXEC mode
end ends and exits conguration mode
hostname host-name sets the device name
interface type number changes from global conguration mode to interface
conguration mode
ip address ip-address subnet-mask assigns an IP address to an interface
ipcong /ip ip-address subnet-mask used in NetSim to assign an IP address and subnet mask to a
workstation interface
no shutdown enables an interface
ping ip-address sends an Internet Control Message Protocol (ICMP) echo
request to the specied address

1 Boson NetSim Lab Manual


The IP addresses and subnet masks used in this lab are shown in the table below:

IP Addresses
Device Interface IP Address Subnet Mask
Switch1 VLAN1 192.168.100.101 255.255.255.0
Switch2 VLAN1 192.168.100.102 255.255.255.0
HostA - 192.168.100.1 255.255.255.0
HostB - 192.168.100.2 255.255.255.0

Lab Tasks
1. Congure Switch1 with a host name of Switch1. Use the default virtual LAN (VLAN) for
management, and congure the appropriate IP address and subnet mask; refer to the IP Addresses
table.

2. Congure Switch2 with a host name of Switch2. Use the default VLAN for management, and
congure the appropriate IP address and subnet mask; refer to the IP Addresses table.

3. On HostA, congure the appropriate IP address and subnet mask; refer to the IP Addresses table.

4. On HostB, congure the appropriate IP address and subnet mask; refer to the IP Addresses table.

5. Verify the connectivity between HostA and HostB by pinging from HostA to HostB (192.168.100.2).
The ping should be successful.

2 Boson NetSim Lab Manual


Lab Solutions
1. On Switch1, issue the following commands to congure a host name, the default VLAN, and the
appropriate IP address and subnet mask:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch1
Switch1(config)#interface vlan 1
Switch1(config-if)#ip address 192.168.100.101 255.255.255.0
Switch1(config-if)#no shutdown
Switch1(config-if)#end

2. On Switch2, issue the following commands to congure a host name, the default VLAN, and the
appropriate IP address and subnet mask:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch2
Switch2(config)#interface vlan 1
Switch2(config-if)#ip address 192.168.100.102 255.255.255.0
Switch2(config-if)#no shutdown
Switch2(config-if)#end

3. On HostA, issue the following command to congure the appropriate IP address and subnet mask:

C:>ipconfig /ip 192.168.100.1 255.255.255.0

4. On HostB, issue the following command to congure the appropriate IP address and subnet mask:

C:>ipconfig /ip 192.168.100.2 255.255.255.0

5. Verify the connectivity between HostA and HostB by pinging from HostA to HostB (192.168.100.2).
The ping should be successful.

3 Boson NetSim Lab Manual


Sample Conguration Script
Switch1 Switch1 (continued)
Switch1#show running-config interface FastEthernet0/8
! switchport mode dynamic desirable
Version 12.3 !
service timestamps debug uptime interface FastEthernet0/9
service timestamps log uptime switchport mode dynamic desirable
no service password-encryption !
! interface FastEthernet0/10
hostname Switch1 switchport mode dynamic desirable
! !
ip subnet-zero interface FastEthernet0/11
spanning-tree extend system-id switchport mode dynamic desirable
! !
interface FastEthernet0/1 interface FastEthernet0/12
switchport mode dynamic desirable switchport mode dynamic desirable
! !
interface FastEthernet0/2 interface Vlan 1
switchport mode dynamic desirable ip address 192.168.100.101 255.255.255.0
! no ip route-cache
interface FastEthernet0/3 !
switchport mode dynamic desirable ip classless
! no ip http server
interface FastEthernet0/4 !
switchport mode dynamic desirable line con 0
! line aux 0
interface FastEthernet0/5 line vty 0 15
switchport mode dynamic desirable !
! no scheduler allocate
interface FastEthernet0/6 end
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!

Copyright © 1996–2013 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

4 Boson NetSim Lab Manual

You might also like