CCNA实验大全(7)

2019-04-04 22:38

a 配置VTP为client模式。 sw3#vlan database sw3(vlan)#vtp client

Setting device to VTP CLIENT mode. sw3(vlan)#vtp domain yu

Changing VTP domain name from NULL to yu sw3(vlan)#vtp password 123

Setting device VLAN database password to 123. sw3(vlan)#exi

In CLIENT state, no apply attempted. Exiting....

b.在fa0/1上配置模式为trunk并封装802.1q协议。 sw3(config-if)#switchport mode trunk

sw3(config-if)#switchport trunk encapsulation dot1q sw3(config-if)#end c.查看vlan信息 sw3#sh vlan-s

VLAN Name Status Ports ---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15

2 vlan2 active (client端能检测到vlan信息) 3 vlan3 active 4 vlan4 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 4 enet 100004 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

十七、单臂路由的使用和配置。

R1 10.1.1.1 F0/0 VLAN4 F0/4

F0/2 SW1 F0/3 F0/0 R3 172.16.1.1

F0/0 F0/1 R4 192.168.1.1

VLAN 2 F0/0 R2 VLAN 3 实验要求:使用单臂路由的子接口实现全网互ping。

注:做R1的单臂路由,必须先用no ip routeing取消R2 R3 R4的路由功能;

交换机在不同的端口必须配置不同的模式(fa0/1为trunk,其它为access); R2.R3.R4必须配置默认网关,且地址必须与R1子接口的地址相对应; 配置过程中,必须注意交换机与路由器间的接口工作模式(half/full)。 实验步骤: 1、基本配置。

Router(config)#hostname r1 r1(config)#no ip do loo r1(config)#line con 0 r1(config-line)#logg syn r1(config-line)#exec-t 0 r1(config-line)#exi r1(config)#int fa0/0 r1(config-if)#no sh

r1(config-if)#duplex full

Router(config)#no ip do loo Router(config)#hostname r2 r2(config)#line con 0 r2(config-line)#logg syn r2(config-line)#exec-t 0 r2(config-line)#exi

r2(config)#ip default-gateway 192.168.1.2 (配置默认网关地址) r2(config)#int fa0/0 r2(config-if)#no shut

r2(config-if)#duplex full (配置以太网接口的工作模式) r2(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config)#hostname r3 r3(config)#no ip do loo r3(config)#line con 0 r3(config-line)#logg syn r3(config-line)#exec-t 0 r3(config-line)#exi

r3(config)#ip default-gateway 172.16.1.2 r3(config)#int fa0/0 r3(config-if)#no sh

r3(config-if)#ip address 172.16.1.1 255.255.0.0 r3(config-if)#duplex full

Router(config)#hostname r4 r4(config)#no ip do loo r4(config)#line con 0 r4(config-line)#logg syn r4(config-line)#exec-t 0 r4(config-line)#exi

r4(config)#ip default-gateway 10.1.1.2 r4(config)#int fa0/0 r4(config-if)#no shut

r4(config-if)#ip address 10.1.1.1 255.0.0.0 r4(config-if)#duplex full

Router(config)#hostname sw1 sw1(config)#no ip do loo sw1(config)#line con 0 sw1(config-line)#logg syn sw1(config-line)#exec-t 0 sw1(config-line)#exi

2、将R2.R3.R4的路由功能取消,变成PC机。

r2(config)#no ip routing r3(config)#no ip routing r4(config)#no ip routing

3、在SW1配置vlan信息。 sw1#vlan database

sw1(vlan)#vlan 2 name vlan2 VLAN 2 added:

(取消路由功能) Name: vlan2

sw1(vlan)#vlan 3 name vlan3 VLAN 3 added: Name: vlan3

sw1(vlan)#vlan 4 name vlan4 VLAN 4 added: Name: vlan4

4、配置SW1的端口。 sw1(config)#interface fa0/1 sw1(config-if)#no sh

sw1(config-if)#switchport mode trunk

sw1(config-if)#switchport trunk encapsulation dot1q sw1(config)#interface fa0/2 sw1(config-if)#no sh

sw1(config-if)#switchport mode access sw1(config-if)#switchport access vlan 2 sw1(config-if)#exi

sw1(config)#interface fa0/3 sw1(config-if)#no sh

sw1(config-if)#switchport mode access sw1(config-if)#switchport access vlan 3 sw1(config-if)#exi

sw1(config)#interface fa0/4 sw1(config-if)#no sh

sw1(config-if)#switchport mode access sw1(config-if)#switchport access vlan 4 sw1(config-if)#exi

5、R1子接口的配置。

r1(config)#interface fa0/0.1 r1(config-subif)#no sh

r1(config-subif)#encapsulation dot1Q 2 r1(config-subif)#ip address 192.168.1.2 255.255.255.0

r1(config)#interface fa0/0.2 r1(config-subif)#no shutdown

r1(config-subif)#encapsulation dot1Q 3 r1(config-subif)#ip address 172.16.1.2 255.255.0.0 r1(config-subif)#exi

r1(config)#int fa0/0.3 r1(config-subif)#no sh

r1(config-subif)#encapsulation dot1Q 4 r1(config-subif)#ip add 10.1.1.2 255.0.0.0 6、进行全网互ping。 r1#ping 192.168.1.1

Type escape sequence to abort.

access模式能进行vlan的封装) 802.1q协议和vlan 2) (子接口的划分) 802.1q协议和vlan 3) (子接口的划分) (封装802.1q协议和vlan 4) ( (子接口的划分) (封装 (封装 Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: .!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 32/64/96 ms r1#ping 172.16.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: .!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 20/42/60 ms r1#ping 10.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: .!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 28/48/88 ms r2#ping 172.16.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: .!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 36/54/60 ms r4#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 56/76/108 ms

十八、标准访问控制列表的配置

Loopback 0

1.1.1.1 255.0.0.0 R1 R2 S1/1 S1/0 192.168.1.1 255.255.255.0 192.168.1.2 255.255.255.0

实验要求:用标准访问控制列表拒绝来源192.168.1.1的数据。

注:标准访问控制列表的ID为1-99,1300-1999,配置完控制列表,需指定应用于哪个接口

并指定其为入/出接口。检测时的前提是全网能够互ping的情况!! 实验步骤: 1、基本配置。

Router(config)#hostname r1 r1(config)#no ip do loo r1(config)#line con 0


CCNA实验大全(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013年第三届知网杯搜索竞赛试题 (1)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: