计算机网络技术实验报告 4
Power Supply S/N:
PHI031803JK
PCB Serial Number:
FAB0337240K,73-3122-04
-------------------------------------------------
1 user(s) now active on Management Console.
Reset system with factory defaults, [Y]es or [N]o? Y
% Invalid input detected.
#config t
Enter configuration commands, one per line. End
with CNTL/Z.
(config)#vlan 1 name vlan1
[M] Menus [K] Command Line [I] IP Configuration
Enter Selection:
PCA Number:
73-3122-04
PCA Serial Number:
FAB0337240K
Model Number:
WS-C1912-A
System Serial Number: FAB0339U01U
with CNTL/Z.
Router2621(config)#interface f0/1
Router2621(config-if)#ip
address
172.16.10.1
255.255.255.0
Router2621(config-if)#no shut
Router2621(config-if)#end
PCB Serial Number:
FAB0337240K,73-3122-04
-------------------------------------------------
1 user(s) now active on Management Console.
User Interface Menu
>en #delete nvram
This command resets the switch with factory defaults. All system parameters will revert to their default factory
settings. All static and dynamic addresses will be removed.
2、 实验报告内容:
1、Router2621的配置
Router2621 Con0 is now available
Press RETURN to get started.
Router2621>enable
Router2621#config t
Enter configuration commands, one per line. End
-------------------------------------------------
1 user(s) now active on Management Console.
User Interface Menu
[M] Menus [K] Command Line [I] IP Configuration
User Interface Menu
[M] Menus [K] Command Line [I] IP Configuration
Enter Selection:
PCA Number:
73-3122-04
PCA Serial Number:
FAB0337240K
Model Number:
WS-C1912-A
-----------------------------
-----------------
------------
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
1
10
1
11
1
12
1
AUI
1
Static
A
1
Static
B
1Static来自#config t Enter configuration commands, one per line. End with CNTL/Z. (config)#int e0/1 (config-if)#vlan-membership static 1 (config-if)#int e0/3
(config-if)#vlan-membership static 1
(config-if)#int e0/2
(config-if)#vlan-membership static 2
(config-if)#int e0/4
(config-if)#vlan-membership static 2
(config-if)#ctrl+z
%SYS-5-CONFIG_I: Configured from console by console
Router2621#copy running-config startup-config
Building configuration...
[OK] Router2621#
2、配置交换机1900A
PCA Number:
System Serial Number: FAB0339U01U
Power Supply S/N:
PHI031803JK
PCB Serial Number:
FAB0337240K,73-3122-04
-------------------------------------------------
-------------------------------------------------
1 user(s) now active on Management Console.
User Interface Menu
[M] Menus [K] Command Line [I] IP Configuration
Enter Selection:
PCA Number:
73-3122-04
PCA Serial Number:
FAB0337240K
Model Number:
WS-C1912-A
System Serial Number: FAB0339U01U
Power Supply S/N:
PHI031803JK
Reset system with factory defaults, [Y]es or [N]o? Y
% Invalid input detected.
#config t Enter configuration commands, one per line. End with CNTL/Z. (config)#hostname 1900A 1900A(config)#^Z %SYS-5-CONFIG_I: Configured from console by console 1900A#config t Enter configuration commands, one per line. End with CNTL/Z. 1900A(config)#ip address 172.16.10.3 255.255.255.0 1900A(config)#ip default-gateway 172.16.10.1
(config)#vlan 2 name vlan2
(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
#show vlan-membership
Port VLAN Membership Type
Port VLAN
Membership Type
#show
% Type 'show ?' for a list of subcommands
#
73-3122-04
PCA Serial Number:
FAB0337240K
Model Number:
WS-C1912-A
System Serial Number: FAB0339U01U
Power Supply S/N:
PHI031803JK
PCB Serial Number:
FAB0337240K,73-3122-04
Address
Dest Interface Type
Source Interface List
---------------------------------------------------
-------------------
1900A#
3、配置VLAN:
PCA Number:
73-3122-04
1 user(s) now active on Management Console.
User Interface Menu
[M] Menus [K] Command Line [I] IP Configuration
Enter Selection:
CLI session with the switch is open. To end the CLI session, enter [Exit].
昆明理工大学信息工程与自动化学院学生
实验报告
( 2010 — 2011 学年第 二
学期 )