sw1#
(8) 创建静态hostname表,然后用该表对直连的交换机进行telnet访问设置 SW1: sw1#conf t
sw1(config)#ip host sw2 10.1.1.2 //邻居的hostname和IP地址 sw1(config)#end SW2: sw1#conf t
sw1(config)#ip host sw1 10.1.1.1 sw1(config)#end sw2#telnet sw1
Trying sw1 (10.1.1.1)... Open ord #
This is CCNA club sw1 User Access Verification Password: sw1>en Password:
sw1# //telnet成功
《三》配置简单CDP
1. 实验拓扑:用到R1、R2、R3和Frame-Relay
2. 实验要求
(1) 基本配置
(2) 在每台设备上把物理接口激活,在连接到帧中继网络的接口需要手工打开CDP功能,在点对点连接路由器上需要配置DCE时钟频率
(3) 使用show cdp neighbors命令查看直连设备的名称 3. 实验步骤 (1) 基本配置 R1: Router>en Router#conf t Router(config)#ho r1 r1(config)#no ip domain-loo r1(config)#line con 0 r1(config-line)#logg s r1(config-line)#end R2和R3配置同上 (2) R1: r1#conf t r1(config)#int s1/2
r1(config-if)#encapsulation frame-relay //封装帧中继
r1(config-if)#cdp enable //CDP默认打开,但连接到帧中继接口时是关闭的 r1(config-if)#no sh r1(config-if)#end R2: r2#conf t r2(config)#int s1/2
r2(config-if)#encap frame-relay r2(config-if)#cdp en r2(config-if)#no sh r2(config-if)#exit r2(config)#int s1/1
r2(config-if)#clock rate 64000 //设置DCE时钟频率 r2(config-if)#no sh r2(config-if)#end
r2#show controllers s1/1 //查看DCE类型 R3: r3#conf t
r3(config)#int s1/0 r3(config-if)#no sh r3(config-if)#end
(3) 使用show cdp neighbors命令查看直连的设备名称 R1:
r1#show cdp neighbors
r1#show cdp neighbors detail //查看邻居的详细信息 R2和R3同上
《四》 交换机的配置
1. 实验拓扑:用到R1、R4、SW1和SW2
2. 实验要求
(1) 完成最基本的几步配置:将交换机命名为sw1和sw2,路由器命名为r1和r2;关闭域名查找;设置输入同步
(2) 设置r1和r2路由器的接口IP地址分别为:192.168.1.1/24和192.168.1.2/24。使用相应的命令把r2路由器变成PC机使用,然后给这台PC机配置默认网关
(3) 设置交换机的管理IP分别为:192.168.1.254/24和192.168.1.253/24;默认网关都指向r1路由器
(4) 把sw1的fa011、fa0/11和fa0/12及sw2的fa0/11和fa0/12端口分别设置为trunk模式、封装802.1Q,然后使用ping命令测试连通性
(5) 划分vlan和静态地把端口划分到vlan中 1) 使用两种方法划分vlan
在全局设置模式下划分vlan:在sw1上创建3个vlan:vlan? 2、vlan 3和vlan 4,名称可任意
进入vlan database划分vlan:在sw2上创建1个vlan,为vlan? 100,名称可任意 2) 按下面的要求把端口静态地划分到vlan中 把sw1上的fa0/5端口划分到vlan 2里面?
? 把sw1上的fa0/6-fa0/10连续的端口同时划分到vlan 3里面
? 把sw1上的fa0/13、fa0/15、fa0/17和fa0/18端口同时划分到vlan 4里面 (6) 配置VTP
(1) 把sw1设置为:VTP模式、域名cisco、密码cisco
(2) 在sw2上实现不能创建vlan,但可以学习到sw1的vlan信息 (7) 端口安全的配置
Sw1上的fa0/2是管理员的专用端口,要求除了管理员外其他所有用户都不能使用该端口 (8) 删除vlan信息 (1) 在sw1上删除vlan信息 (2) 在sw1上删除所有vlan信息 3. 实验步骤 (1) 基本配置 R1: Router>en Router#conf t Router(config)#ho r1 r1(config)#no ip domain-loo r1(config)#line con 0 r1(config-line)#logg s r1(config-line)#exit r1(config)#exit R2、SW1和SW2配置同上 (2) R1: r1#conf t r1(config)#int e0
r1(config-if)#ip add 192.168.1.1 255.255.255.0 r1(config-if)#no sh r1(config-if)#end R2:
r2#conf t
r2(config)#int e0/0
r2(config-if)#ip add 192.168.1.2 255.255.255.0 r2(config-if)#no sh r2(config-if)#exit r2(config)#no ip routing
r2(config)#ip default-gateway 192.168.1.1 r2(config)#end
(3) 设置交换机的管理IP和默认网关 SW1: sw1#conf t
sw1(config)#int vlan 1
sw1(config-if)#ip add 192.168.1.254 255.255.255.0 sw1(config-if)#no sh sw1(config-if)#exit
sw1(config)#ip default-gateway 192.168.1.1 sw1(config)#end SW2: sw2#conf t
sw2(config)#int vlan 1
sw2(config-if)#ip add 192.168.1.253 255.255.255.0 sw2(config-if)#no sh sw2(config-if)#exit
sw2(config)#ip default-gateway 192.168.1.1 sw2(config)#end
(4) 把端口设置为trunk模式、封装802.1Q,然后使用ping命令测试连通性 SW1: sw1#conf t
sw1(config)#int range fa0/1 , fa0/11 , fa0/12 sw1(config-if-range)#switchport mode trunk sw1(config-if-range)#no sh
sw1(config-if-range)#end //2950交换机默认802.1Q,不支持手动封装 SW2: sw2#conf t
sw2(config)#int fa0/11
sw2(config-if)#switchport trunk encapsulation dot1q
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库最全的CCNA实验(3)在线全文阅读。
相关推荐: