线的制作及交换机的基本配置

1. 线的制作
?问题
在常见的计算机 络中, 线主要用来连接计算机与交换机(或宽带路由器)、交换机与交换机、交换机与路由器,以及需要连 的其他各种设备。 线的制作与测试是作为 络管理员的一个入门技能。
制作一根直通双绞线
制作一根交叉双绞线
?方案
1)EIA/TIA T568b线序规范,如表-1所示。
表-1 EIA/TIA T568双绞线线序规范
类型 1 2 3 4 5 6 7 8
T568b 橙白 橙 绿白 蓝 蓝白 绿 棕白 棕
T568a 绿白 绿 橙白 蓝 蓝白 橙 棕白 棕
2)所需材料及工具
? 5类UTP(非屏蔽)双绞线:1米x2根。
? 水晶头:4个。
? 线钳:x1个,多人共用。
? 测线仪:x1个,多人共用。
3)线序分配方案
直通线:T568bT568b(推荐,如图-1所示),或者T568aT568a(不常用) 。

图-12
2)建立实验 络拓扑
在Packet Tracer程序主窗口中,添加一台Cisco 2960交换机、一台普通PC机,并添加Console连接、直通 线连接,如图-13所示,确认完毕后将当前拓扑结构保存为c2960-pc.pkt文件。

Current configuration : 1052 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw1 //已配置主机名
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
sw1#
步骤五:交换机密码配置
1)设置特权模式口令
包括两种典型的方法(任选其一):
方法1(明文):enable password 密码字串
方法2(加密):enable secret 密码字串
比如,以下操作将明文口令设为cisco、加密口令设置为cisco2960:
sw2960(config)# enable password cisco
sw2960(config)# enable secret cisco2960
返回全局配置模式,查看运行配置可观察两种口令设置的差异:
sw2960(config)# end //返回特权模式
sw2960#
%SYS-5-CONFIG_I: Configured from console by console

sw2960# show running-config //查看当前的运行配置
… …
!
hostname sw2960
!
enable secret 5 1 1 1mERr$pUBB1obEqpmMUtC1rBieD1 //加密口令设置
enable password cisco //非加密的口令设置
!
!
… …
执行disable切换到用户模式,再执行enable切换到特权模式,此时会要求输入正确的口令才允许进入(如果明文/密文口令都设置了,则密文口令起作用):
sw2960> enable
Password: //尝试明文口令cisco无效
Password: //输入密文口令cisco2960验证成功
sw2960#
2)设置console口令
以下操作配置交换机console口令
Sw2960(config)#line console 0
Sw2960(config-line)#password 123 //设置consol口令
Sw2960(config-line)#login
切换到用户模式,提示输入conslole口令才能再次进入到用户模式:
Sw2960(config-line)#end
Sw2960#
%SYS-5-CONFIG_I: Configured from console by console
Sw2960#exit
Sw2960 con0 is now available
Press RETURN to get started.
User Access Verification
Password:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2019年4月13日
下一篇 2019年4月13日

相关推荐