Documente Academic
Documente Profesional
Documente Cultură
Fe 0/1 SW-D
Fe 0/9
Fe 0/1
PC-B
Fe 0/24
Ge0/1
RT-A RT--B
2/2
SW-A
2/3 1/1
Fe 0/0/24 Fe 0/0/9
1/4
2/4 SW-E
2/5
1/2
Ge 0/0/1
Fe 0/0/4 Fe 0/0/4
2/0/6
1/0/4 SW-B Fe 0/0/1
1/0/0 Fe 0/0/8
Fe 0/0/8
Fe 0/0/1
RT-E 2/0/0
1/0/0 2/0/2 1/0/2
1/0/6
RT-D RT-C
Fe 0/0/1 Fe 0/0/8 Fe 0/0/1
Fe 0/0/8
Ge 0/0/1
Fe 0/0/4 Fe 0/0/4
SW-F
SW-C
Fe 0/0/9
PC-C
< >reset saved‐config
< >reboot
Cisco
# delete nvram:startup‐config
#reload
Basic configuration commands - huawei
Operation Command
Enter the system view from the user view system-view
# Turn back to the user view from the system
quit
view.
Return to the user view from any other view return
Set the router name sysname sysname
Display the system version display version [ slot-id ]
Display the initial configuration information display saved-configuration
Display the current configuration information display current-configuration
Showing the basic information of device display device [ pic-status | slot-id ]
Telnet Configuration
PC---------3400/CX200D
100.0.0.x /27
PC Switch
Vlan 100
Switch(config)vlan 100
Switch(config)interface FastEthernet0/9
Switch(config-if)port-type nni
Switch(config-if)switchport access vlan 100
Switch(config-if)no shutdown
!
Switch(config)interface Vlan100
Switch(config-if)ip address 100.0.0.2 255.255.255.224
Switch(config)line vty 0 4
Switch(config-line)password 0 cisco
Switch(config-line)no login
After configured the ip address of the interface, configure the ip address of the
PC(suggest ip address of the PC is 100.0.0.5/27).
Note:- PC has two LAN cards. One will have IP of intranet (10.x.x.x) which is used for
your remote access. Don’t change this IP.
Huawei
[Quidway]vlan 100
[Quidway]interface Ethernet0/0/9
[Quidway]port link-type access
[Quidway]port default vlan 100
[Quidway]undo shutdown
!
[Quidway]interface Vlanif 100
[Quidway]ip address 100.0.0.2 255.255.255.224
Complete Scenario
SW-B SW-C
SW-A
PC-B PC-C
PC-A
CX600- RT-C
Group1- PC-A, SW-A, RT-A
C7609-RT-A, RT-B
Group2- PC-B, SW-B, RT-B
CX200 – SW-B, SW-C
Group3- PC-C, SW-C, RT-C
Cisco3400 – SW-A
Group 1 - PC-A---------3400(SW-A)------7609(RT-A)
10.0.0.x /27
Vlan 127 10.0.0.x /27
PC-A SW-A RT-A
Vlan 127
RT-B RT-C
Switch-3400
Switch(config)#hostname SW-A
SW-A(config)#vlan 127
SW-A(config)#interface FastEthernet0/1
SW-A(config-if)#port-type nni
SW-A(config-if)#switchport access vlan 127
SW-A(config-if)#no shutdown
SW-A(config)#interface GigabitEthernet0/1
SW-A(config-if)#port-type nni
SW-A(config-if)#switchport mode trunk
SW-A(config-if)#switchport trunk allowed vlan all
SW-A(config)#interface Vlan127
SW-A(config-if)#ip address 10.0.0.2 255.255.255.224
SW-A(config-if)#no shutdown
Switch(config)line vty 0 4
Switch(config-line)password 0 cisco
Switch(config-line)no login
After configured the ip address of the interface, configure the ip address of the
PC(suggest ip address of the PC is 10.0.0.5/27)
Router – 7609
Configure L2 domain
Router(config)#hostname RT-A
RT-A(config)#vlan 127
RT-A(config)#interface GigabitEthernet1/1
RT-A(config-if)#switchport
RT-A(config-if)#switchport trunk encapsulation dot1q
RT-A(config-if)#switchport mode trunk
RT-A(config-if)#no shutdown
RT-A(config)#interface Vlan127
RT-A(config-if)#ip address 10.0.0.1 255.255.255.224
RT-A(config-if)#no shutdown
Configure Telnet
RT-A(config)#line vty 0 4
RT-A(config-line)#password 0 cisco
RT-A(config-line)#no login
Configure L3 Domain
On the Router, configure static routes for a non-directly connected network segment.
On RT-A, configure two static routes:
20.0.0.x /27
Vlan 127 20.0.0.x /27
PC-B SW-B RT-B
Vlan 127
192.168.1.x /30
RT-A
Operation Command
Creating VLAN vlan vlan-id [ alias vlan-alias ]
Delete a VLAN undo vlan vlan-id [ |all]
In the VLAN view, configure a port or a group of port interface-type { interface-num [ to
ports to belong to a VLAN interface-num ] } & <1-10>
In the interface view, configure the port to belong
port access vlan vlan-id
to a VLAN
Operation Command
Specify the port type: trunk, access, hybrid port link-type { trunk/access/hybrid}
Cancel the port type setting undo port link-type { trunk/access/hybrid}
Setting VLAN allowed to pass Trunk port [undo] port trunk permit vlan { {vlan-id [ to vlan-id ]}&<1-10> | all }
Display the information about a VLAN display vlan vlan-id [/all]
Switch- Cx200
<Quidway>system-view
[Quidway]sysname SW-B
[SW-B]vlan 127
[SW -B-vlan127]port Ethernet 0/0/1
After configured the ip address of the interface, configure the ip address of the
PC(suggest ip address of the PC is 20.0.0.5/27)
Router – 7609
Configure L2 domain
Router(config)#hostname RT-B
RT-B(config)#vlan 127
RT-B(config)#interface GigabitEthernet5/1
RT-B(config-if)#switchport
RT-B(config-if)#switchport trunk encapsulation dot1q
RT-B(config-if)#switchport mode trunk
RT-B(config-if)#no shutdown
RT-B(config)#interface Vlan127
RT-B(config-if)#ip address 20.0.0.1 255.255.255.224
RT-B(config-if)#no shutdown
Configure Telnet
RT-B(config)line vty 0 4
RT-B(config-line)password 0 cisco
RT-B(config-line)login
Configure L3 Domain
On the Router, configure static routes for a non-directly connected network segment.
30.0.0.x /27
Vlan 127 30.0.0.x /27
PC-C SW-C RT-C
Vlan 127
192.168.2.x /30
RT-A
Switch – Cx200
[Quidway]sysname SW-C
[SW-C]vlan 127
Router-CX600
Configure L2 domain
[Quidway]sysname RT-C
[RT-C]vlan 127
Configure Telnet
Configure L3 Domain
[RT-C]interface GigabitEthernet 1/0/2
[RT-C-GigabitEthernet1/0/2] ip address 192.168.2.2 30
[RT-C-GigabitEthernet1/0/2]undo shutdown
[RT-C-GigabitEthernet1/0/2]negotiation auto
On the Router, configure static routes for a non-directly connected network segment.
PC‐C
CE‐SW‐C Vlan 50
0/9 0/1
0/1
SP‐SW‐B Vlan 25
0/24
0/24
SP‐SW‐D Vlan 25
0/1
PC‐A 0/1
Vlan 50
CE‐SW‐A
0/9
CX200 – SW‐B, SW‐C
Group1‐ PC‐A, SW‐A
Cisco3400 – SW‐A, SW‐D
Group2‐ SW‐B, SW‐D
Group3‐ PC‐C, SW‐C
CE-SW-C(CX200)
Vlan 50
Interface ethernet0/0/1
Port link-type access
Port default vl 50
Interface ethernet0/0/9
Port link-type access
Port default vl 50
SP-SW-B(CX200)
Vl 25
Interface ethernet0/0/1
Port link-type dot1q-tunnel
Port default vl 25
Interface ethernet0/0/24
Port link-type trunk
Port trunk allow-pass vlan all
SP-SW-D(ME3400)
Vl 25
Interface fastethernet 0/1
Switchport mode dot1q-tunnel
Switchport access vlan 25
CE-SW-A(ME3400)
Vlan 50
Interface ethernet0/1
Switchport mode access
Switchport access vlan 50
Interface ethernet0/9
Switchport mode access
Switchport access vlan 50
MSTP
8
1 8 1
Allow-pass Allow-pass
vlan 200,300 vlan 100,200
Allow-pass Allow-pass
vlan 100,200 vlan 200,300
1 8 8 1
SWC 4 4 SWF
Allow-pass
vlan 200,400
Vlan 100
Vlan 200
Vlan 300
Vlan 400
stp enable
[SWB]stp region-configuration
[SWB-mst-region]region-name reliance
[SWB-mst-region]revision-level 1
[SWB-mst-region]instance 1 vlan 100
[SWB-mst-region]instance 2 vlan 200
[SWB-mst-region]instance 3 vlan 300
[SWB-mst-region]instance 4 vlan 400
[SWB-mst-region]active region-configuration
Vlan 100
Vlan 200
Vlan 300
Vlan 400
SW-A
Interface fastethernet 0/1
Switchport trunk encapsulation dot1q (only for 3550)
Switchport mode trunk
Switchport trunk allowed vlan 100
Switchport trunk allowed vlan add 200
Port-type nni (only for 3400)
SWB SWE
24/Alt
24/DP
1/RT 9/RT
1/DP
9/DP
SWC/Root
24/Alt 24/DP
9/Alt
1/RT 9/RT 1/DP
9/Alt 1/DP
1/RT
9/DP
SWE/Root
24/RT
24/DP
RTA(7609)
.5
.2
.1 .6
.2 .1 .1 .2
.10 .9
Area1 Area0 Area2
10.0.1.0/30 10.0.0.0/30 10.0.2.0/30
CX600‐ RT‐C, RT‐D, RT‐E Group1‐ RT‐E
C7609‐RT‐A, RT‐B Group2‐ RT‐D, RT‐A
Group3‐ RT‐C, RT‐B
Summary Routes
Stub Area
15. Check LSDB and routing table on RTE (you will see external routes)
16. On RTD and RTE configure area1 as stub
17. Again check LSDB and routing table on RTE (you will not see any external routes,
but a default route)
Totally Stubby
NSSA
Hostname RT-A
Interface loopback 0
Ip address 10.0.255.21 255.255.255.255
Interface loopback 1
Ip address 10.0.254.21 255.255.255.255
Sysname RT-C
Interface loopback 0
Ip address 10.0.255.31 32
Interface loopback 1
Ip address 10.0.254.31 32
[RTC]ospf 100
[RTC-ospf-100]area 0
[RTC-ospf-100-area-0.0.0.0]network 10.0.0.0 0.0.0.255
[RTC-ospf-100-area-0.0.0.0]network 10.0.255.31 0.0.0.0
[RTC-ospf-100]area 2
[RTC-ospf-100-area-0.0.0.2]network 10.0.2.0 0.0.0.255
[RTC-ospf-100-area-0.0.0.2]stub
[RTC-ospf-100]import-route static
[RTC-ospf-100]import-route direct
3400
1. Connect a PC with terminal‐emulation software to the switch console port.
2. Power off the switch
Reconnect the power cord to the switch
Or
Reload
3. After the switch performs POST, the switch begins the autoboot process. The boot loader prompts
the user for a break key character during the boot‐up sequence, as shown in this example:
***** The system will autoboot in 5 seconds *****
Send a break key to prevent autobooting.
Ctrl‐Break is the break key.
4. Initialize the flash file system:
switch: flash_init
5. Load any helper files:
switch: load_helper
6. Display the contents of flash memory:
switch: dir flash:
The switch file system appears:
Directory of flash:
13 drwx 192 Mar 01 1993 22:30:48 me340x-
metroipaccess-mz.122-25.EX
11 -rwx 5825 Mar 01 1993 22:31:59 config.text
18 -rwx 720 Mar 01 1993 02:21:30 vlan.dat
16128000 bytes total (10003456 bytes free)
7. Rename the configuration file to config.text.old.
This file contains the password definition.
8. Boot the system:
switch: boot
You are prompted to start the setup program. Enter N at the prompt:
9. At the switch prompt, enter privileged EXEC mode:
Switch> enable
10. Rename the configuration file to its original name:
Switch# rename flash:config.text.old flash:config.text
11. Copy the configuration file into memory:
Switch# copy flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?
Press Return in response to the confirmation prompts.
The configuration file is now reloaded, and you can change the password.
12. Enter global configuration mode:
Switch# configure terminal
13. Change the password:
Switch (config)# enable secret cisco123
14. Write the running configuration to the startup configuration file:
Switch# copy running-config startup-config
The new password is now in the startup configuration.
15. After recovering the password, reload the switch:
Switch> reload s
Proceed with reload? [confirm] y
16. Change the password back to cisco
17. Write the running config to the file
Switch# write memory
3550
In this exercise we need to power OFF & ON the switches in step no. 2 & 3, there is only one switch for
all switches, therefore all teams should perform these steps simultaneously.
1. Attach a PC with terminal emulation to the console port of the switch.
2. Switch OFF the power supply or Reload
3. Hold down the mode button of the switch. This button is located on the left side of the front panel.
While holding the button switch on the power supply
4. Continue holding the mode button and observe hyper terminal on the PC. Once you get switch
prompt release the button
Switch:
5. Switch: load_helper
6. Switch: flash_init
7. Switch: dir flash:
8. Switch: rename flash:config.text config.team1 (or flash:config.text flash:config.team1)
9. switch: boot
10. Enter ‘n’ for initial config dialog
Enter ‘y’ for terminate auto install
11. After booting is complete. You will get
Switch>
12. Switch> en
13. Switch#
14. Copy the config file from flash to memory
Switch# copy flash:config.team1 running‐config
Press enter for any prompt
15. Change the password
Switch# config t
Switch# enable secret cisco123
Switch# ^z
16. Write the running config to the file
Switch# write memory
17. Exit and login with password cisco123
18. Change the password back to cisco
19. Write the running config to the file
Switch# write memory
CX200D
How to Recover Bootrom passwords?
To clear and recover the Console passwords of CX200D, take these steps:
Open the configuration file using WordPad or Notepad. Modify the configuration and save.
****************************************************
* *
* *
****************************************************
Password:
BOOTROM MENU
6. Reboot
SERIAL SUBMENU
Operation on laptop:
In Hyperterminal‐Æ Transfer Æ Send fileÆ select protocol xmodemÆ browse the config file from the
machineÆ Click on send
Deleting file..done
Took time : 3s
Writing Flash.done
Took time : 4s
SERIAL SUBMENU
BOOTROM MENU
6. Reboot
saved-configuration file
current: config.cfg
new : config.cfg---------------------------- Enter for same name or type
license file
current:
new : ---------------------------- Enter
patch package
current:
new : ---------------------------- Enter
BOOTROM MENU
6. Reboot
9. Reboot
How to Recover Bootrom passwords?
To clear and recover the passwords of CX‐ 600, take these steps:
1. Connect the laptop and master SRU of CX600 with console and Ethernet
interfaces
****************************************************
* *
* *
****************************************************
Password:8090
5. Type CTRL+Z to enter hidden BOOTROOM menu as follows:
8. Chkdsk CFcard
11. Reboot
Hidden Menu
2. Erase flash
Hidden Menu
2. Erase flash
6. Format CFcard
3. Return to Up menu
Rename successfully!
3. Return to Up menu
3. Return to Up menu
Hidden Menu
2. Erase flash
6. Format CFcard
8. Chkdsk CFcard
11. Reboot
Recover configuration...OK!
<Quidway>
<Quidway>
interface GigabitEthernet0/0/0
return
10. Run ftp server on laptop and upload the configuration file from CX600
to laptop
<CX600-1>ftp 192.168.50.2
Connected to 192.168.50.2.
User(192.168.50.2:(none)):aa
[ftp]put cx600-1.cfg
[ftp]
user-interface con 0
authentication-mode password-----------------------remove
<CX600-1>ftp 192.168.50.2
Connected to 192.168.50.2.
User(192.168.50.2:(none)):a
Enter password:
[ftp]get cx600-1.cfg
[ftp]quit
ontinue? [Y/N]:y
100% completed.
MainBoard:
SlaveBoard:
Continue [Y/N] N
1. Connect PC to fa port
2. configure PC
Install tftppd32-3.23-setup
Or
Note:- If your TFTP server don’t have the IOS file, copy from switch flash to your PC first and then load
back to switch