Professional Documents
Culture Documents
Overview
In this lab, you will undertake the following tasks:
Diagram
Description
In this particular lab students will be connecting to the devices using the console
port, please check with the instructor for the console server details in case the
access is given through the console / Terminal server.
Procedure
Section A, Reset configuration files.
Section B, Verify the OS & Hardware Information.
Section C, Basic Switch Configuration.
Section D, Basic Router Configuration.
Section E, Basic Troubleshooting.
Section A: Resetting the Device to the Factory Default
Tip:
Use the ? (question mark) to find available options for any particular commands. For example:
<H3C> display device ?
1. Log into your router’s console and reset it back to its factory defaults.
3. Log into your switch’s console and reset it back to its factory defaults.
Tip:
STP has been enabled to prevent any inadvertent layer-2 loops; if a loop occurred, the CPU
cycles on a device could reach 100%, making console access difficult, if not impossible.
1. Answer the following questions concerning the router’s software and hardware
How many Gigabit Ethernet interfaces does the router have? ______________
What card(s) does the router have installed, including the types of interfaces on
the card(s) interfaces does the router have? __________________________
When comparing the output of the “dir/all” and “display version” commands on
the router, why is the amount of flash different for these two commands?
______________________________________________________________
2. Answer the following questions concerning the switch’s software and hardware
How much many Gigabit Ethernet interfaces does the switch have?
______________
How many SFP interfaces, if any, does the switch have? _________________
What is the size of flash and how much flash is available? _________________
When you execute the “save” command, what is the name of the file, in flash,
where this is stored? ________________
What file extension is used to denote the operating system that will be loaded?
_________________
Note:
The flash file system commands are accessed from the user view, not from the system view.
4. On your router, delete the startup.cfg file in flash and verify that it was deleted.
Did the size of flash decrease after deleting the file on the router? _________
What special characters appear before and after the filename of the deleted
file? ___________________
6. On your router, restore the deleted file from the recycle bin and verify that it
appears in a directory listing.
7. On the router, permanently delete the startup.cfg file on your router (use the
“/unreserved” option). View all the files in flash (deleted and undeleted).
9. On the router, delete the “startup.cfg” file in flash. Then empty the recycle bin.
Do you see the startup.cfg file with the “dir /all” command?
The default switch name is H3C. For this labs purpose we are going to name the
switch Switchx, where “x” represent the pod number assigned to you. You will also
enable one interface to your connected router and one interface to the
CoreSwitch-1. You’ll then place a basic IP configuration on the switch, where all
the devices in the network will be in VLAN 1, whose subnet is 10.254.254.0/24.
You’ll also allow telnet access to the switch.
Use the following chart to determine the IP addresses to use for this exercise; if
your pod is 10, use 0 for “x”.
1. Change the name of your switch to Switchx, where “x” is your pod number.
2. Created a local user account called “admin”. This user should be allowed telnet
access and the password for the account should “3com”, in lower case, and
should be in clear text.
WARNING:
All passwords MUST BE “3com”—this facilities using the lab gear for multiple classes. Thank you
for your assistance in this matter.
3. Set up 5 vtys (0-4) to use the local authentication scheme. Allow only the telnet
protocol for the vtys.
6. Enable the G1/0/4 interface connected to the RouterX and give it a description
that includes this will be an Access Port in VLAN 20x (the access port will be
configured in the next lab).
8. Enable the G10/5 interface connected to the RouterX and give it a description
that includes that this will be a trunk port (the trunk port will be configured in the
next lab).
9. Verify that the G1/0/5 interface is active.
10. Enable the G1/0/11 interface connected to the CoreSwitch-1 and give it a
description. Verify that the interface is active.
11. Disable the G1/0/12, interface connected to the CoreSwitch-1 and give it a
description. Verify that the interface is Administratively Down.
12. Disable the G1/0/21 and G1/0/22 interfaces connected to the CoreSwitch-2 and
give it a description. Verify that the interface is Administratively Down.
13. If any other interface is enabled on SwitchX, disable it and verify that it is
Administratively Down. (only interfaces G1/0/2, G1/0/4, G1/0/5, and G1/0/11
should be enabled).
14. Create the VLAN 1 interface, enable it, and give it the appropriate IP address
based on the table above. Verify that the interface is active and that it has the
correct IP address configured.
Use the following chart to determine the IP addresses to use for this exercise; if
your pod is 10, use 0 for “x”.
1. Change the name of your router to Routerx, where “x” is your pod number.
2. Set up the aux port so that the instructor can access it while you are on your
console. You’ll need to first enable the “interface aux 0”. Next, set up the
user-interface aux 0 with a simple password of “3com” (lower case), a privilege
level of 3, and an idle timeout of 120 minutes.
3. Created a local user account called “admin”. This user should be allowed telnet
access and the password for the account should “3com”, in lower case, and
should be encrypted.
4. Set up 5 vtys (0-4) to use the local authentication scheme. Allow only the telnet
protocol for the vtys.
7. Remove the existing IP address on the G0/0 interface. Enable the G0/0
interface connected to the SwitchX and give it a description. Assign it an
appropriate IP address (based on the above chart) in the 10.254.254.0/24
subnet. Verify that the interface is active.
You’ll also use some additional commands that will help you in basic
troubleshooting tasks.
On what core switch port is your local switch connected to? ______________
2. On the console of SwitchX, make sure you can ping RouterX, CoreSwitch-1,
CoreRouter-1, and at least one neighboring pod device. If you are having a
problem, make sure that the interfaces are enabled and that the VLAN 1
interface has the correct IP address.
6. From the console of your RouterX, make sure you can ping SwitchX,
CoreSwitch-1, CoreRouter-1, and at least one neighboring pod device.
12. From the console of your router, enable output of debugging messages to the
console with the terminal command.
13. From the console of your router, turn on the debugging for IP ICMP with the
debug command. Repeat the ping process to the CoreRouter-1.
Tip:
Sometimes once you enable terminal debugging, the screen becomes flooded with debugging
information output. If that’s the case and you would like to turn off all debugging, simply ignore
what you see on the terminal screen and type “u d a”, which stands for undo debugging all and
hit enter. CNTRL+O will also disable debugging.
Some other shortcuts you might want to remember include CTRL+G corresponds to the display
current-configuration command; and CTRL+L corresponds to the display ip routing-table
command.
Section A: Answers
1. Commands:
reset saved-configuration
reboot
Name: H3C
Interfaces: Administratively down
2. Commands: save
3. Commands:
reset saved-configuration
reboot
display stp
Name: H3C
Interfaces: UP
STP disabled
4. Commands:
system-view
stp enable
display stp
5. Commands:
save
Section B: Answers
1. Commands:
display version
display brief interface
2. Commands:
display version
3. Commands
display version
dir
4. Commands:
delete startup.cfg
dir
No
5. Commands
dir /all
Square brackets
6. Commands:
undelete startup.cfg
dir
7. Commands:
No
8. Commands:
save
9. Commands:
No
10. Commands:
save
Section C: Answers
1. Commands:
2. Commands
3. Commands
[SwitchX]user-interface vty 0 4
[SwitchX-ui-vty0-4] authentication-mode scheme
[SwitchX-ui-vty0-4] protocol inbound telnet
[SwitchX-ui-vty0-4] quit
4. Commands:
5. Commands:
6. Commands:
[SwitchX] interface g1/0/4
[SwitchX-GigabitEthernet1/0/4] undo shutdown
Interface GigabitEthernet1/0/4 is not shut down
[SwitchX-GigabitEthernet1/0/4] description RouterX in VLAN 20x
[SwitchX-GigabitEthernet1/0/4] quit
7. Commands:
9. Commands:
10. Commands:
11. Commands
13. Commands:
14. Commands:
15. Commands:
[SwitchX] save
Section D: Answers
1. Commands:
2. Commands
3. Commands:
4. Commands:
5. Commands:
6. Commands:
8. Commands: save.
Section E: Answers
1. Commands:
2. Commands:
3. Commands:
display arp
4. Commands:
display mac-address
5. Commands:
[SwitchX] quit
<SwitchX> telnet 10.254.254.1x
6. Commands:
7. Commands:
[RouterX] quit
<RouterX> telnet 10.254.254.2x
8. Commands:
display history
9. Commands:
display diagnostic-information
10. Commands:
display cpu-usage
display memory
11. Command:
12. Commands:
[RouterX] quit
<RouterX> terminal debugging
Info: Current terminal debugging is on.
13. Commands:
14. Commands
15. Commands:
<Switch1>display current-configuration
sysname Switch1
#
super password level 3 simple 3com
telnet server enable
#
undo ip ttl-expires
#
vlan 1
#
user-group system
#
local-user admin
password simple 3com
service-type telnet
#
stp enable
#
interface NULL0
#
interface Vlan-interface1
ip address 10.254.254.21 255.255.255.0
#
interface GigabitEthernet1/0/1
shutdown
#
interface GigabitEthernet1/0/2
shutdown
#
interface GigabitEthernet1/0/3
shutdown
#
interface GigabitEthernet1/0/4
description RouterX in VLAN 20x
#
interface GigabitEthernet1/0/5
description RouterX trunk on E2/2
#
interface GigabitEthernet1/0/6
shutdown
#
interface GigabitEthernet1/0/7
shutdown
#
interface GigabitEthernet1/0/8
shutdown
#
interface GigabitEthernet1/0/9
shutdown
#
interface GigabitEthernet1/0/10
shutdown
#
interface GigabitEthernet1/0/11
description Connected to CoreSwitch-1
#
interface GigabitEthernet1/0/12
description Connected to CoreSwitch-1
shutdown
#
interface GigabitEthernet1/0/13
shutdown
#
interface GigabitEthernet1/0/14
shutdown
#
interface GigabitEthernet1/0/15
shutdown
#
interface GigabitEthernet1/0/16
shutdown
#
interface GigabitEthernet1/0/17
shutdown
#
interface GigabitEthernet1/0/18
shutdown
#
interface GigabitEthernet1/0/19
shutdown
#
interface GigabitEthernet1/0/20
shutdown
#
interface GigabitEthernet1/0/21
description Connected to CoreSwitch-2
shutdown
#
interface GigabitEthernet1/0/22
description Connected to CoreSwitch-2
shutdown
#
interface GigabitEthernet1/0/23
shutdown
#
interface GigabitEthernet1/0/24
shutdown
#
interface GigabitEthernet1/0/25
shutdown
#
interface GigabitEthernet1/0/26
shutdown
#
interface GigabitEthernet1/0/27
shutdown
#
interface GigabitEthernet1/0/28
shutdown
#
user-interface aux 0 8
user-interface vty 0 4
authentication-mode scheme
protocol inbound telnet
#
return
Example Configuration for Router1:
sysname Router1
#
super password level 3 simple 3com
#
telnet server enable
#
vlan 1
#
user-group system
#
local-user admin
password simple 3com
authorization-attribute level 3
service-type telnet
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Cellular0/0
async mode protocol
link-protocol ppp
#
interface Serial5/0
link-protocol ppp
#
interface Serial5/1
link-protocol ppp
#
interface Serial5/2
link-protocol ppp
#
interface Serial5/3
link-protocol ppp
#
interface NULL0
#
interface Ethernet2/0
port link-mode bridge
#
interface Ethernet2/1
port link-mode bridge
#
interface Ethernet2/2
port link-mode bridge
#
interface Ethernet2/3
port link-mode bridge
#
interface GigabitEthernet0/0
port link-mode route
description Connected to SwitchX on G1/0/4
ip address 10.254.254.11 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
#
user-interface con 0
user-interface tty 13
user-interface aux 0
user privilege level 3
set authentication password simple 3com
user-interface vty 0 4
authentication-mode scheme
protocol inbound telnet
#
return