CCNA的一个综合实验(经典)

合集下载

CCNA实验手册

CCNA实验手册
异步串口(ASYNC)主要是应用于 Modem 或 Modem 池的连接,如图 8 所示。它主要用 于实现远程计算机通过公用电话网拨入网络。这种异步端口相对于上面介绍的同步端口来说 在速率上要求就松许多,因为它并不要求网络的两端保持实时同步,只要求能连续即可,主 要是因为这种接口所连接的通信方式速率较低。
如图 2 所示为 10Base-T 网 RJ-45 端口,而图 3 所示的为 10/100Base-TX 网 RJ-45 端口。其实 这两种 RJ-45 端口仅就端口本身而言是完全一样的,但端口中对应的网络电路结构是不同的, 所以也不能随便接。
(3)SC 端口 SC 端口也就是我们常说的光纤端口,它是用于与光纤的连接。光纤端口通常是不直接用
(2)AUX 端口 AUX 端口为异步端口,主要用于远程配置,也可用于拔号连接,还可通过收发器 与
(3)高速同步串口 在路由器的广域网连接中,应用最多的端口还要算“高速同步串口”(SERIAL)了,如图 7
所示。
这种端口主要是用于连接目前应用非常广泛的 DDN、帧中继(Frame Relay)、X.25、PSTN(模 拟电话线路)等网络连接模式。在企业网之间有时也通过 DDN 或 X.25 等广域网连接技术进 行专线连接。这种同步端口一般要求速率非常高,因为一般来说通过这种端口所连接的网络 的两端都要求实时同步。 (4)异步串口
第 3 页 共 70 页 鸿鹄论坛:/
(5)ISDN BRI 端口 因 ISDN 这种互联网接入方式连接速度上有它独特的一面还得到了充分的应用。ISDN BRI 端口用于 ISDN 线路通过路由器实现 与 Internet 或其他远程网络的连接,可实现 128Kbps 的通信速率。ISDN 有两种速率连接端口, 一种是 ISDN BRI(基本速率接口);另一种是 ISDN PRI(基群速率接口)。ISDN BRI 端口是 采用 RJ-45 标准,与 ISDN NT1 的连接使用 RJ-45-to-RJ-45 直通线。如图 9 所示的 BRI 为 ISDN BRI 端口。

CCNA 实验17 NAT轮询实验

CCNA 实验17 NAT轮询实验

CCNA实验14NAT轮询实验
版本V1.0
密级☑开放☐内部☐机密
类型☐讨论版☐测试版☑正式版
1实验拓扑
2实验背景及需求
背景:
某公司组建网络接入Internet,申请了两个公网地址,一个用于PAT让内网设备上网使用,一个用于Server1/Server2的轮询服务,保证服务器集群性能的发挥;
需求:
N里面PC1和server属于不同的VLAN,网关都在R1上,server1/2对外提供相同的服务;
2.申请了两个公网IP,一个用于PAT,一个用于Server1/Server2的轮询服务;
3.PC4访问轮询服务IP时,能够实现Server1/2轮询。

相关资料:
R1
ipnat pool server 10.10.20.1 10.10.20.2 netmask 255.255.255.0 type rotary(建立地址池,设定集群服务器的,并设置rotary)
ipnat inside source list 1 interface FastEthernet0/0 overload(配置PAT)
ipnat inside destination list 2 pool server(进行轮询映射)
access-list 1 permit 10.10.0.0 0.0.255.255(允许内网用户PAT访问外网)
access-list 2 permit 12.1.1.3 0.0.0.0(为集群服务器设定一个公网虚拟IP)
R2
ip route 12.1.1.3 255.255.255.255 12.1.1.1(这一条非常重要,若不配置这一条,不管在模拟器还是在真机上,都不能实现服务器轮询)。

《SPOTO-CCNA基础实验》

《SPOTO-CCNA基础实验》

CCNA 基础实验辑SPOTO IT 人才培训机构 —— 专业的IT 人才解决方案提供商 实验1:Cisco 路由器基础配置路由器模式概述:Router> 用户模式,通常用来查看统计信息,但不能修改路由器的设置。

Router# 特许模式,可以查看并修改路由器的配置,通常在这里运行show 命令。

Router(config)# 全局模式,在这里修改当前运行配置中的内容。

Router(config-if)# 接口模式,用来配置路由器的物理接口和环回接口。

Router(config-subif)# 子接口模式,用来配置在路由器中创建的逻辑接口。

Router(config-line)# 控置台接口模式,通常用来配置用户模式口令,如T elnet 的登录密码。

Router(config-router)# 路由协议接口模式,在这里配置路由协议,如RIP 、IGRP 等。

1.登录路由器的必要配置:Router>enable Router#configure terminalRouter(config)#no ip domain lookup //关闭动态的域名解析。

Router(config)#line console 0Router(config-line)#exec-timeout 0 0 //关闭控置台的会话超时,以保证不会被踹出去。

Router(config-line)#logging synchronous //关闭日志同步,阻止控置台的一些提示信息。

Router(config-line)#exit Router(config)#//都是托速度的东西,关掉比较好。

2.路由器基本配置Router(config)#hostname R1 //修改路由器的标识。

R1(config)#banner motd #This is Cisco Router 2620. //配置日期信息标志区(MOTD),登录到路由器时显示。

CCNA实验

CCNA实验

CCNA上机试题一、根据下列拓扑结构图按要求作题1、按上图标志连接好设备,分别命名为Router01,Router02,Switch为每个设备设置特权密码,console密码,密码统一为Cisco,要求所有的密码皆密文显示。

2、Router01的f0/0连接Switch的f0/1 Router02的F0/0连接Switch的F0/23、Router01配置IP地址为10.10.10.2/24,Router02配置IP地址为10.10.10.3/24Switch配置一个管理IP为10.10.10.1/244、确保所连的每个接口状态为UP,在Router01 ping Router02的IP地址能通5、设置Router01能通过对方的主机名TELNET到Switch上进行配置6、设置每个设备的登录信息(登录时提示每台设备的主机名)7、为每台机器设置统一的时间为2010年7月4日8:30分8、查看历史命令记录,并设置最多记录50条历史命令9、关闭设备的域名解析功能10、保存所做的配置关键步骤:1Router01 (config)#service password-encryption //设置所有密码为密文显示5Router01 (config)#ip host Router02 10.10.10.3 //设置通过对方主机名telnet登录Router01 (config)#telnet Router026Router01(config)#banner motd #Enter TEXT message. End with the character '#'.this is router router01#Router01(config)# //设置登录信息红色部分为自己所敲的命令或字符设备一启动将会显示this is router router017Router01#show clock //查看设备时间Router01#clock set 8:30:00 4 jul 2010 //设置设备时间8Router01#show history //查看命令历史记录Router01#terminal history size 50 //设置最多记录50条命令9Router01(config)#no ip domain-lookup //关闭域名解析功能。

CCNA实验教程

CCNA实验教程

福建最好的培训中心福建最大的CISCO实验室3名CCIE,100多套CISCO设备PIX防火墙,3550交换机,7000路由器,两条ISDN线路基带MODEM,电话交换机,NETSCREEN防火墙登录微思实验室:远程: telnet://本地: telnet:192.168.10.251• Lab 1 - Basic Router Configuration• Lab 2 - Advanced Router Configuration• Lab 3 - CDP• Lab 4 - Telnet• Lab 5 - TFTP• Lab 6 - RIP• Lab 7 - IGRP• Lab 8 - EIGRP• Lab 9 - OSPF• Lab 10 – Catalyst 1900 Switch Configuration• Lab 11 - VLANs & Trunking (Catalyst 1900)• Lab 12 - Catalyst 2950 Switch Configuration• Lab 13 - VLANs and Trunking (Catalyst 2950)• Lab 13-1 Routing inter VLAN(Dot1q)• Lab 14 - IP Access Lists• Lab 15 - NAT/PAT• Lab 16 - PPP & CHAP• Lab 17 - ISDN BRI-BRI using Legacy DDR• Lab 18 - ISDN BRI-BRI using Dialer Profiles• Lab 19 - ISDN PRI using Dialer Profiles• Lab 20 - Frame RelayLAB 1 –基本配置3. 用户模式Router>4. Router> enable //用户模式敲入enable进入到特权模式Router#5. Router# ? //敲入问号看帮助6. Router# disable //特权模式敲入disable退到用户模式Router>7. Router> enable //用户模式敲入enable进入到特权模式Router# configure terminal //特权模式敲入configure terminal进入配置模式Router(config)# //配置模式8. 配置路由器名字(主机名)如…R1‟ (注:如果你用的实验台号是03,则命名为na03r1,如果为12,则命名na12r1,依次类推).Router(config)# hostname na12r1 //把第12号实验台的第一台路由器命名为na12r1na12r1(config)#9. 配置路由器的密码:●配置console 口密码:R1(config)#line console 0R1(config-line)#loginR1(config-line)#password ciscoR1(config-line)#设置密码后:00:29:42: %SYS-5-CONFIG_I: Configured from console by consoleUser Access VerificationPassword:Password: //这里要输入console口密码●配置enable 密码//从用户模式到enable模式的密码问题A: when both encrypted and unencrypted enable passwords are configured, which one is used?R1(config)# enable password cisco//密码显示为明文R1(config)# enable secret wisdom//密码为加密过的,显示为乱码注:用命令show running-config 可以看到密码cisco为明文,密码wisdom显示为乱码,当两个密码都配置时,只有enable secret所跟的密码生效,两个密码不可以配置一样的密码.配置vty密码//远程登陆telnet 的密码R1(config)#line vty 0 4R1(config-line)#loginR1(config-line)#password ciscoR1(config-line)#telnet命令的使用: telnet +IP address or hostname of a remote system例如: telnet 192.168.10.25110. 配置路由器接口ethernet0的IP address:R1>enableR1#configure terminalR1(config)#interface ethernet 0R1(config-if)#ip address 11.1.1.1 255.255.255.0R1(config-if)#no shutdown11. 在Serial0口配置R1(config-if)# int serial 0R1(config-if)# ip address 12.1.1.1 255.255.255.0R1(config-if)# no shutdown12. 测试ctrl-z的作用R1(config-if)# ctrl-z 任何模式下敲入ctrl-z都会退回到特权模式R1# 特权模式13. 退出路由器R1# logout 完全退出路由器14. 回到特权模式R1> enablepassword: cisco 输入enable secret 的密码为ciscoR1#15.显示接口的基本概况:R1# show ip interface brief16. 显示详细信息:show interface +接口类型+接口偏号例如:R1# show interfaces ethernet0 或是show interface serial 0R1#show interfaces ethernet 0Ethernet0 is up, line protocol is downHardware is Lance, address is 0000.0c92.8164 (bia 0000.0c92.8164)Internet address is 11.1.1.1/24MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 145/255, load 1/255 ……………….…………17.显示内存信息(也就是路由器正在运行的配置):R1# show running-config //当前正在远行的配置18. 显示NVRAM? If not, why not?R1# show startup-config 显示已经保存过的配置19. 保存配置:R1# copy running-config startup-config或是R1#write保存配置:copy running-config startup-config等同于write20. 现在显示NVRAM.R1# show startup-config21. 使用Show version:问题A: What IOS release is running在R1? 查看IOS的版本问题B: What are the contents of the configuration register? 查看寄存器的值R1# show version22. 查看运行的协议问题A:which protocols are currently running on the router?R1# show ip protocols23. 进入另一台Router.Router> enableRouter# configure terminalRouter(config)#24. 配置主机名,配置密码.Router(config)# hostname R2R2(config)# enable secret cisco25. 配置以太网IP.R2(config)# interface e0R2(config-if)# ip address 220.1.1.2 255.255.255.0R2(config-if)# no shutdown26. 显示所有接口简单信息R2(config-if)# ctrl-zR2# show ip interface briefR1#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0 11.1.1.1 YES manual up down Serial0 unassigned YES unset administratively down down Serial1 unassigned YES unset administratively down down3. 配置登陆信息Banner”Welcome to WISDOM LAB - Authorized Users Only”.R1(config)# banner motd #Welcome to WISDOM LAB - Authorized Users Only #4. 退出路由器,重新登录.R1# logoutenterpassword: ciscoR1> enablepassword: cisco6. 在R1上将R2和12.1.1.2对应起来(相当于Windows里的Hosts文件的作用)。

CCNA综合实验配置代码

CCNA综合实验配置代码

CCNA综合实验配置代码B1封装帧中继:Router(config)#hostname B1 B1(config)#int se 0/0/0B1(config-if)#encapsulation frame-relay B1(config-if)#frame-relay lmi-type q933a B1(config-if)#frame-relay interface-dlci 100B1(config-if)#ip add 10.255.255.2 255.255.255.252 B1(config-if)#no shutdownB1配制单臂路由:B1(config-if)#exit B1(config)#int fa 0/0 B1(config-if)#no shB1(config-if)#no shutdown B1(config-if)#int fa 0/0.10B1(config-subif)#encapsulation dot1Q 10B1(config-subif)#ip add 10.1.10.1 255.255.255.0 B1(config-subif)#no shutdown B1(config-subif)#exit B1(config)#int fa 0/0.20B1(config-subif)#encapsulation dot1Q 20B1(config-subif)#ip add 10.1.20.1 255.255.255.0 B1(config-subif)#exit B1(config)#int fa 0/0.30B1(config-subif)#encapsulation dot1Q 30B1(config-subif)#ip add 10.1.30.1 255.255.255.0 B1(config-subif)#exit B1(config)#int fa 0/0.88B1(config-subif)#encapsulation dot1Q 88B1(config-subif)#ip add 10.1.88.1 255.255.255.0 B1(config-subif)#exit B1(config)#int fa 0/0.99B1(config-subif)#encapsulation dot1Q 99 native B1(config-subif)#ip add 10.1.99.1 255.255.255.0 B1(config-subif)#no shB1(config-subif)#no shutdown B1(config-subif)#end B1#copy run start配制dhcp服务B1#conf tB1(config)#ip dhcp pool B1_VLAN10B1(dhcp-config)#network 10.1.10.0 255.255.255.0 B1(dhcp-config)#default-router 10.1.10.1 B1(dhcp-config)#dns-server 10.0.1.4 B1(dhcp-config)#exitB1(config)#ip dhcp excluded-address 10.1.10.1 10.1.10.10 B1(config)#ip dhcp pool B1_VLAN20B1(dhcp-config)#network 10.1.20.0 255.255.255.0 B1(dhcp-config)#default-router 10.1.20.1 B1(dhcp-config)#dns-server 10.0.1.4 B1(dhcp-config)#exitB1(config)#ip dhcp excluded-address 10.1.20.1 10.1.20.10 B1(config)#ip dhcp pool B1_VLAN30B1(dhcp-config)#network 10.1.30.0 255.255.255.0 B1(dhcp-config)#default-router 10.1.30.1 B1(dhcp-config)#dns-server 10.0.1.4 B1(dhcp-config)#exitB1(config)#ip dhcp excluded-address 10.1.30.1 10.1.30.10 B1(config)#ip dhcp excluded-address 10.1.88.1 10.1.88.24 B1(config)#exit配制eigrp和被动接口B1(config)#router eigrp 100B1(config-router)#network 10.1.10.0 B1(config-router)#network 10.1.20.0B1(config-router)#network 10.1.30.0 B1(config-router)#network 10.1.88.0B1(config-router)#network 10.1.99.0 B1(config-router)#network 10.255.255. 0B1(config-router)#no auto-summaryB1(config-router)#passive-interface default B1(config-router)#no passive-interface fa 0/0.88 B1(config)#int se 0/0/0B1(config-if)#ip summary-address eigrp 100 10.1.0.0 255.255.0.0 配制默认路由:B1(config)#ip route 0.0.0.0 0.0.0.0 10.255.255.1B1-S1 配置Switch(config)#hostname B1-S1 B1-S1(config)#vtp mode server B1-S1(config)#vtp domain xyzcorp B1-S1(config)#vtp password xyzvtp B1-S1#vlan databaseB1-S1(vlan)# vlan 10 name Admin//手动汇总B1-S1(vlan)# vlan 20 name SalesB1-S1(vlan)# vlan 30 name Production B1-S1(vlan)# vlan 88 name WirelessB1-S1(vlan)# vlan 99 name Mgmt&Native B1-S1(config)#int range fa 0/1-5B1-S1(config-if-range)#switchport mode trunkB1-S1(config-if-range)#switchport trunk native vlan 99 B1-S1(config-if-range)#exit B1-S1(config)#int vlan 99B1-S1(config-if)#ip add 10.1.99.21 255.255.255.0 B1-S1(config-if)# no shutdownB1-S1(config)#ip default-gateway 10.1.99.1B1-S1(config)#spanning-tree vlan 1 priority 4096 B1-S1(config)#spanning-tree vlan 10 priority 4096 B1-S1(config)#spanning-tree vlan 20 priority 4096 B1-S1(config)#spanning-tree vlan 30 priority 4096 B1-S1(config)#spanning-tree vlan 88 priority 4096 B1-S1(config)#spanning-tree vlan 99 priority 4096B1-S2 配置Switch(config)#hostname B1-S2 B1-S2(config)#vtp mode client B1-S2(config)#vtp domain xyzcorp B1-S2(config)#vtp password xyzvtp B1-S2(config)#int vlan 99B1-S2(config-if)#ip add 10.1.99.22 255.255.255.0 B1-S2(config-if)#no shutdownB1-S2(config)#ip default-gateway 10.1.99.1 B1-S2(config)#int fa 0/6B1-S2(config-if)#switchport mode access B1-S2(config-if)#switchport access vlan 10 B1-S2(config-if)#exit B1-S2(config)#int fa 0/11B1-S2(config-if)#switchport mode access B1-S2(config-if)#switchport access vlan 20 B1-S2(config-if)#exit B1-S2(config)#int fa 0/16B1-S2(config-if)#switchport mode access B1-S2(config-if)#switchport access vlan 30 B1-S2(config-if)#exitB1-S2(config)#int range fa 0/1-4B1-S2(config-if-range)#switchport mode trunkB1-S2(config-if-range)#switchport trunk native vlan 99B1-S2(config)#int fa 0/6 //配制端口安全 B1-S2(config-if)#switchport port-securityB1-S2(config-if)#switchport port-security maximum 1B1-S2(config-if)#switchport port-security mac-address sticky B1-S2(config-if)#switchport port-security violation shutdown B1-S2(config-if)#exitB1-S2(config)#int fa 0/11 //配制端口安全 B1-S2(config-if)#switchport port-securityB1-S2(config-if)#switchport port-security maximum 1B1-S2(config-if)#switchport port-security mac-address sticky B1-S2(config-if)#switchport port-security violation shutdown B1-S2(config-if)#exitB1-S2(config)#int fa 0/16 //配制端口安全 B1-S2(config-if)#switchport port-securityB1-S2(config-if)#switchport port-security maximum 1B1-S2(config-if)#switchport port-security mac-address sticky B1-S2(config-if)#switchport port-security violation shutdown B1-S2(config-if)#exitB1-S3 配置Switch(config)#hostname B1-S3 B1-S3(config)#vtp mode client B1-S3(config)#vtp domain xyzcorp B1-S3(config)#vtp password xyzvtp B1-S3(config)#int vlan 99B1-S3(config-if)#ip add 10.1.99.23 255.255.255.0 B1-S3(config-if)#no shutdown B1-S3(config-if)#exitB1-S3(config)#ip default-gateway 10.1.99.1 B1-S3(config)#int range fa 0/1-4B1-S3(config-if-range)#switchport mode trunkB1-S3(config-if-range)#switchport trunk native vlan 99 B1-S3(config)#int fa 0/7B1-S3(config-if)#switchport mode access B1-S3(config-if)#switchport access vlan 88B1-S3(config)#spanning-tree vlan 1 priority 8192 B1-S3(config)#spanning-tree vlan 10 priority 8192 B1-S3(config)#spanning-tree vlan 20 priority 8192 B1-S3(config)#spanning-tree vlan 30 priority 8192 B1-S3(config)#spanning-tree vlan 88 priority 8192 B1-S3(config)#spanning-tree vlan 99 priority 8192HQ 配置Router(config)#hostname HQ HQ(config)#int fa 0/0HQ(config-if)#ip add 10.0.1.1 255.255.255.0 HQ(config-if)#no shutdownHQ(config)#username NewB password ciscopap HQ(config)#int se 0/0/1HQ(config-if)#ip add 10.255.255.253 255.255.255.252 HQ(config-if)#clock rate 64000 HQ(config-if)#encapsulation ppp HQ(config-if)#ppp authentication papHQ(config-if)#ppp pap sent-username HQ password ciscopap HQ(config-if)#no shutdownHQ(config)#username ISP password ciscopap HQ(config)#int se 0/1/0HQ(config-if)#ip add 209.165.201.1 255.255.255.252 HQ(config-if)#encapsulation pppHQ(config-if)#ppp authentication chap HQ(config-if)#exitHQ(config-if)#no shutdown HQ(config)#int se0/0/0HQ(config-if)#encapsulation frame-relay HQ(config-if)#frame-relay lmi-type q933a HQ(config-if)#no shutdownHQ(config)#int se 0/0/0.41 point-to-pointHQ(config-subif)#ip add 10.255.255.1 255.255.255.252 HQ(config-subif)#frame-relay interface-dlci 41 HQ(config-subif)#exitHQ(config)#int se 0/0/0.42 point-to-pointHQ(config-subif)#ip add 10.255.255.5 255.255.255.252 HQ(config-subif)#frame-relay interface-dlci 42 HQ(config-subif)#exitHQ(config)#int se 0/0/0.43 point-to-pointHQ(config-subif)#ip add 10.255.255.9 255.255.255.252 HQ(config-subif)#frame-relay interface-dlci 43HQ(config)#ip nat inside source static 10.0.1.2 209.165.200.246HQ(config)#int fa 0/0HQ(config-if)#ip nat inside HQ(config-if)#int se 0/1/0 HQ(config-if)#ip nat outside HQ(config-if)#exitHQ(config)#ip nat pool XYZCORP 209.165.200.241 209.165.200.245 netmask 255.255.255.248 HQ(config)#ip access-list standard NAT_LISTHQ(config-std-nacl)#permit 10.0.0.0 0.255.255.255 HQ(config-std-nacl)#exitHQ(config)#ip nat inside source list NAT_LIST pool XYZCORP HQ(config)#int se 0/0/1 HQ(config-if)#ip nat insideHQ(config)#int se 0/0/0.41 point-to-point HQ(config-if)#ip nat insideHQ(config)#int se 0/0/0.42 point-to-point HQ(config-if)#ip nat insideHQ(config)#int se 0/0/0.43 point-to-point HQ(config-if)#ip nat insideHQ(config)#ip route 0.0.0.0 0.0.0.0 se0/1/0 // 到ISP的默认路由 HQ(config)#ip route 10.4.5.0 255.255.255.0 se 0/0/1 //到NewB的默认路由 HQ(config)#router eigrp 100HQ(config-router)#network 10.0.0.0 HQ(config-router)#no auto-summaryHQ(config-router)#passive-interface defaultHQ(config-router)#no passive-interface se0/0/0.41 HQ(config-router)#no passive-interface se0/0/0.42HQ(config-router)#no passive-interface se0/0/0.43 或passive-interface se0/1/0 HQ(config-router)#no passive-interface fa 0/1 或passive-interface se0/0/1 HQ(config)#ip access-list extended FIREWALLHQ(config-ext-nacl)#permit tcp any host 10.0.1.2 eq 80 HQ(config-ext-nacl)#permit tcp 209.165.201.0 0.0.0.3 any HQ(config-ext-nacl)#permit tcp 209.165.201.136 0.0.0.3 any HQ(config-ext-nacl)#permit tcp 209.165.201.132 0.0.0.3 any HQ(config-ext-nacl)#permit tcp 209.165.201.128 0.0.0.3 anyHQ(config-ext-nacl)#permit icmp 209.165.201.0 0.0.0.3 any echo HQ(config-ext-nacl)#permit icmp 209.165.201.136 0.0.0.3 any echo HQ(config-ext-nacl)#permit icmp 209.165.201.132 0.0.0.3 any echo HQ(config-ext-nacl)#permit icmp209.165.201.128 0.0.0.3 any echo HQ(config-ext-nacl)#exit HQ(config)#int se0/1/0HQ(config-if)#ip access-group FIREWALL in HQ(config-if)#exit 感谢您的阅读,祝您生活愉快。

CCNA NAFR实验

CCNA NAFR实验

配置帧中继 实验拓扑:实验目标:学习配置帧中继链路,和帧中继子接口的配置。

实验环境:CCNP 帧中继环境.,开启 R1,R2,R3 并开启帧中继交换机。

配置帧中继:帧中继基本配置:首先我们要对接口的封装类型选择帧中继封装 对 R1,R2,R3 的 S1/0 口分别选择帧中继封装 r1(config)#int s1/0 r1(config-if)#encapsulation frame-relay 然后分别为 R1,R2,R3 配置 IP 地址 参考配置: r1interface Serial1/0 ip address 5.5.123.1 255.255.255.0 encapsulation frame-relay R2 interface Serial1/0 ip address 5.5.123.2 255.255.255.0 encapsulation frame-relay R3 interface Serial1/0 ip address 5.5.123.3 255.255.255.0 encapsulation frame-relay 配置完毕后稍等片刻 R1,R2,R3 就可以互通了.帧中继通信是通过 frame-map 来查找 IP 和 DLCI 号对应表进行通信的.可以通过 show frame-relay map 来查看 r1#show fram map Serial1/0 (up): ip 5.5.123.2 dlci 162(0xA2,0x2820), dynamic, broadcast,, status defined, active Serial1/0 (up): ip 5.5.123.3 dlci 163(0xA3,0x2830), dynamic, broadcast,, status defined, active R1 去 ping 5.5.123.2 是用 dlci 号 162 封装,去 ping 5.5.123.3 是用 dlci 163 封装,这些 dlci 号是 通过动态 inarp 来学习的. 可以手工来写 map r1(config-if)#frame-relay map ip 5.5.123.3 163 broadcast r1(config-if)#frame-relay map ip 5.5.123.2 162 broadcast r1(config-if)#do s fram map Serial1/0 (up): ip 5.5.123.2 dlci 162(0xA2,0x2820), static, broadcast, CISCO, status defined, active Serial1/0 (up): ip 5.5.123.3 dlci 163(0xA3,0x2830), static, broadcast, CISCO, status defined, active 注意刚才 frame map 刚才是 dynamic 现在是 static. 请为 R2,R3 也配置手工 map.然后互相 ping 测试配置 frame-relay 子接口:Frame-relay 子接口有二种:点到点,点到多点 /*以下对 Frame-relay 简称 FR 点到点只能接一个对端,点到多点可以接多个对端. 我们把 R1 作为 multipoint R2,R3 的子接口做 point to point (R1 不是必须做 multipoint 子接口. 只是为了熟悉多点子接口的配置) 把物理接口的 ip 地址 no 掉.把刚才做的 map 也 no 掉. R1 interface Serial1/0encapsulation frame-relay interface Serial1/0.1 multipoint /*指定物理接口为 multipoint ip address 5.5.123.1 255.255.255.0 frame-relay map ip 5.5.123.2 162 broadcast frame-relay map ip 5.5.123.3 163 broadcast R2 interface Serial1/0 no ip address encapsulation frame-relay /*对物理口封装 FR interface Serial1/0.1 point-to-point /*指定物理接口为 P-TO-P ip address 5.5.123.2 255.255.255.0 frame-relay interface-dlci 261 /*指定对端的 DLCI (R1) R3 interface Serial1/0 no ip address encapsulation frame-relay interface Serial1/0.1 point-to-point ip address 5.5.123.3 255.255.255.0 frame-relay interface-dlci 361 /*指定对端的 DLCI (R1) 互相 ping 测试 注:帧中继互通不需要二端的接口类型或子接口类型一致,只需要可以获得 DLCI 即可,也就是 说.物理接口和 multipoint,multipoint 和 p-p,p-p 和物理接口都可以互通常用命令:clear frame-relay inarp show frame-relay map /*清除动态学习的 map /*查看 frame-relay 的 map。

CCNA实验题

CCNA实验题

----------------------------文档来源百度文库..花了俺20virtual$下载的不共享出来让更多的人看到俺心里那个坑就是填不平…里面包含了CCNA的一些基础实验题,其中有个别题目的配置部分有小错误,留给大家去排错了~希望大家能够喜欢!最后,祝大家学习愉快~!实验一路由器基本配置一、实验设备一台路由器,一台PC,配置线一条。

二、实验要求1.更改路由器名称为RA2.设置password为cisco1,secret为cisco2,vty为cisco3,并要求所有密码都加密。

3.关闭域名查找,命令输入同步。

4.配置以太网口的IP为202.119.249.2195.设置登陆提示信息6.对串行口进行描述(描述信息为:welcome to lixin lab)7.将上述信息保存到tftp server8.将实验过程配置写在记事本中进行粘贴。

9.配置VTY访问权限。

10.禁止路由器进行域名解析。

三、实验步骤Router>enableRouter#configure terminalRouter(config)#hostname RA 设置路由器名RA(config)#enable password cisco1 设置密码RA(config)#enable secret cisco2 设置加密密码RA (config)#no ip domain-lookup关闭域名查找(当我们打错命令时,不会去查找DNS,造成延时)RA (config)#line console 0RA (config-line)#logging synchronous命令输入达到同步(信息提示不会打断你的输入)RA (config-line)#exec-timeout 0 0 设置永久不超时RA (config-line)#exitRA(config)#line vty 0 4RA(config-line)#(enable)password cisco3 设置vty密码RA(config-line)#exitRA(config)#service password-encryption 对密码加密RA(config)#int fastEthernet 0/0RA(config-if)#ip address 202.119.249.1 255.255.255.0 对以太网口fa0/0配置IP RA(config-if)#no shutdown 开启端口RA(config-if)#exitRA(config)#banner motd & welcome welcome to ccna lab!!! & 设置登陆提示信息RA(config)#int fa0/1RA(config-if)#description this is a fast port 描述端口信息RA(config-if)#exitRA(config)#copy running-config tftp 把信息保存到tftp实验二静态路由一、实验设备两台28系列型号路由器通过串口相连。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【背景描述】该企业的具体环境如下:1、企业具有2个办公地点,且相距较远,公司总共大约有200台主机。

2、A办公地点具有的部门较多,例如业务部、财务部、综合部等,为主要的办公场所,因此这部分的交换网络对可用性和可靠性要求较高3、B办公地点只有较少办公人员,但是Int ernet的接入点在这里4、公司只申请到了一个公网IP地址,供企业内网接入使用5、公司内部使用私网地址【网络拓补】【需求分析】∙需求1:采取一定方式分隔广播域。

∙分析1:在交换机上划分VLAN可以实现对广播域的分隔。

划分业务部VLAN10、财务部VLAN20、综合部VLAN30,并分配接口。

∙需求二:核心交换机采用高性能的三层交换机,且采用双核心互为备份的形势,接入层交换机分别通过2条上行链路连接到2台核心交换机,由三层交换机实现VLAN之间的路由。

∙分析二–交换机之间的链路配置为Trunk链路–三层交换机上采用SVI方式(switch virtual interface)实现VLAN之间的路由∙需求三:2台核心交换机之间也采用双链路连接,并提高核心交换机之间的链路带宽∙分析三–在2台三层交换机之间配置端口聚合,以提高带宽∙需求四:接入交换机的access端口上实现对允许的连接数量为4个,以提高网络的安全性∙分析四–采用端口安全的方式实现∙需求五:三层交换机配置路由接口,与RA、RB之间实现全网互通∙分析五–两台三层交换机上配置路由接口,连接A办公地点的路由器RA–RA和RB分别配置接口IP地址–在三层交换机的路由接口和RA,以及RB的内网接口上启用RIP路由协议,实现全网互通∙需求六:RA和B办公地点的路由器RB之间通过广域网链路连接,并提供一定的安全性∙分析六–RA和RB的广域网接口上配置PPP(点到点)协议,并用PAP认证提高安全性∙需求七:RB配置静态路由连接到Internet∙分析七–两台三层交换上配置缺省路由,指向RA–RA上配置缺省路由指向RB–RB上配置缺省路由指向连接到互联网的下一跳地址∙需求八:在RB上用一个公网IP地址实现企业内网到互联网的访问∙分析八–用PAT(网络地址转换)方式,实现企业内网仅用一个公网IP地址到互联网的访问∙需求九:在RB上对内网到外网的访问进行一定控制,要求不允许财务部访问互联网,业务部只能访问WWW和FTP服务,而综合部只能访问WWW服务,其余访问不受控制∙分析九–通过ACL(访问控制列表)实现【配置如下:】【路由器R-B的配置】初次进入路由器R-B时,我们进行如下的基本配置,配置主机名和各端口IP地址,配置信息如下.(两个路由器ping不通,记得设置时钟速率,千万别忘记了哦。

)Router>enableRouter# conf terRouter (config)# hostname R-BR-B (config)# interface fa0/0R-B (config-if)# ip address 201.1.1.1 255.255.255.0R-B (config-if)# no shutdownR-B (config-if)# exitR-B (config)# interface serial 3/0R-B (config-if)# ip address 30.1.1.2 255.255.255.0R-B (config-if)# clock rate 64000R-B (config-if)#no shutdown上面只是路由器R-B的基本配置,下面在R-B上启用动态路由协议Ripv2,同时配置一条连接到Internet的默认路由,并且配置pap验证,配置信息如下:R-B(config)#router ripR-B(config-router)# version 2R-B(config-router)# no auR-B(config-router)# network 201.1.1.0R-B(config-router)# network 30.0.0.0R-B(config-router)# exitR-B(config)# ip route 0.0.0.0 0.0.0.0 fa0/0 (注释:默认路由)R-B(config)#username R-A password cisco //建立用户R-A,密码ciscoR-B (config)#interface serial3/0R-B(config-if)#encapsulation ppp //用PPP封装R-B (config-if)#ppp authentication pap //PPP验证方式为papR-B (config-if)#ppp pap sent-username R-B password cisco//发送用户名R-B ,密码cisco到R-A上验证下面通过ACL(访问控制列表)配置来实现财务部不能访问访问互联网,业务部只能访问WW W和FTP服务,而综合部只能访问WWW服务,其余访问不受控制,配置信息如下:R-B>enableR-B#conf terR-B(config)#access-list 100 deny ip 192.168.20.0 0.0.0.255 anyR-B(config)#access-list 100 permit tcp 192.168.10.0 0.0.0.255 any eq wwwR-B(config)#access-list 100 permit tcp 192.168.10.0 0.0.0.255 any eq ftpR-B(config)#access-list 100 permit tcp 192.168.30.0 0.0.0.255 any eq www R-B(config)#interface serial 3/0R-B(config-if)#ip access-group 100 inR-B(config-if)#exitR-B(config)#上面通过访问控制列表实现了网络的安全,下面进行NAT转换的配置,由于申请的只有一个公网IP地址,所以就用基于端口转换的NAT,即所说的PAT,其配置如下:R-B>enableR-B#conf terR-B(config)#access-list 10 permit anyR-B(config)#ip nat inside source list 10 interface fa0/0 overload (将局域网内的所有IP地址转换成interface fa0/0上对应的202.1.1.1这个内部全局地址)R-B(config)#interface fa0/0R-B(config-if)#ip nat outsideR-B(config-if)#interface serial3/0R-B(config-if)#ip nat insideR-B(config-if)#exitR-B(config)#以上就是R-B的配置,R-B配置完成,下面进行R-A的配置【路由器R-A的配置】初次进入路由器R-A时,我们进行如下的基本配置,配置主机名和各端口IP地址,配置信息如下. 还是被忘了陪时钟速率,其实可以用命令查看那端是DCE和DTE的,为了保险起见,就都设置了吧!呵呵Router>enableRouter# conf terRouter (config)# hostname R-AR-A(config)# interface fa0/0R-A (config-if)# ip address 10.1.1.1 255.255.255.0R-A (config-if)# no shutdownR-A (config-if)# exitR-A(config)# interface fa0/1R-A (config-if)# ip address 20.2.2.1 255.255.255.0R-A (config-if)# no shutdownR-A (config-if)# exitR-A (config)# interface serial 3/0R-A (config-if)# ip address 30.1.1.1 255.255.255.0R-A(config-if)# clock rate 64000R-A (config-if)#no shutdown上面只是路由器R-A的基本配置,下面在R-A上启用动态路由协议Ripv2,同时配置ppp中的pap验证,还要一条默认路由,配置信息如下:R-A(config)#router ripR-A(config-router)# version 2R-A(config-router)# no auR-A(config-router)# network 10.0.0.0R-A(config-router)# network 20.0.0.0R-A(config-router)# network 30.0.0.0R-A(config-router)# exitR-A(config)# ip route 0.0.0.0 0.0.0.0 30.1.1.2 (配置一条到R-B默认路由)R-A(config)#username R-B password cisco //建立用户R-B,密码ciscoR-A (config)#interface serial3/0R-A(config-if)#encapsulation ppp //用PPP封装R-A (config-if)#ppp authentication pap //PPP验证方式为papR-A (config-if)#ppp pap sent-username R-A password cisco//发送用户名R-B ,密码cisco到R-B上验证以上就是路由器R-A的配置,配置完成,下面就配置交换机SW-A【交换机SW-A的配置】Switch>Switch>enableSwitch#configure terminal .Switch(config)#hostname sw-Asw-A(config)#interface fa0/22sw-A(config-if)#no swsw-A(config-if)#no switchport (注释:由于是三层交换机,没有启用第三层的功能的,所以这里需要启用第三层,用no switchport 来实现,下面配置IP地址才会成功)sw-A(config-if)#ip address 10.1.1.2 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1 (注释:配置一条默认路由到R-A,下一跳IP地址为R-A上fa0/0上的IP地址)sw-A(config)#以上是交换机SW-A的基本配置,下面进行vlan的划分,指派属于VLAN的端口,配置如下:sw-A(config)#vlan 10 //划分VLan10sw-A(config-vlan)#name 10 //VLan10的名字为10sw-A(config-vlan)#exitsw-A(config)#vlan 20sw-A(config-vlan)#name 20sw-A(config-vlan)#vlan 30sw-A(config-vlan)#name 30sw-A(config-vlan)#exitsw-A(config)#interface fa0/1sw-A(config-if)#switchport mode accesssw-A(config-if)#switchport access vlan 10sw-A(config-if)#interface fa0/2sw-A(config-if)#switchport mode accesssw-A(config-if)#switchport access vlan 20sw-A(config-if)#interface fa0/3sw-A(config-if)#switchport mode accesssw-A(config-if)#switchport access vlan 30sw-A(config-if)#exitsw-A(config)#下面为各个Vlan配置IP地址,并配置Thunk链路以实现相同Vlan之间跨越交换机也是可以通信的,最后配置端口聚合配置如下:sw-A(config)#sw-A(config)#interface vlan 10 //进入VLAN10sw-A(config-if)#ip address 192.168.10.1 255.255.255.0 //为VLAN10配置IP地址sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#interface vlan 20sw-A(config-if)#ip address 192.168.20.1 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#interface vlan 30sw-A(config-if)#ip address 192.168.30.1 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#interface port-group 1sw-A(config-if)#switchport mode trunk //设置trunk链路sw-A(config-if)#switchport trunk allowed vlan all //允许所有Vlan通过trunk链路sw-A(config-if)# switchport trunk encapsulation dot1q //封装802.1q协议sw-A(config-if)#interface range fa0/23 –24 //进入23、24端口sw-A(config-if-range)#channel-group 1 mode on //端口聚合下面配置三层交换机上采用SVI方式(switch virtual interface)实现VLAN之间的路由Switch>enSwitch#conf tersw-A#conf tersw-A(config)#interface vlan 10sw-A(config-if)#ip address 192.168.10.1 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#interface vlan 20sw-A(config-if)#ip address 192.168.20.1 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exitsw-A(config)#interface vlan 2sw-A(config-if)#interface vlan 30sw-A(config-if)#ip address 192.168.30.1 255.255.255.0sw-A(config-if)#no shutdownsw-A(config-if)#exit在三层交换机上启用Ripv2协议,同时启用端口安全,配置如下:sw-A(config)#router ripsw-A(config-router)#version 2sw-A(config-router)#no ausw-A(config-router)#no auto-summarysw-A(config-router)#network 192.168.10.0sw-A(config-router)#network 192.168.20.0sw-A(config-router)#network 192.168.30.0sw-A(config-router)#network 10.0.0.0sw-A(config-router)#exitsw-A(config)#interface range fa0/1 –3sw-A(config-if)# switchport mode accesssw-A (config-if)# switchport port-securitysw-A (config-if)# switchport port-security max 4以上就是路由器sw-A的配置,配置完成,下面就配置交换机SW-B【交换机SW-B的配置】Switch>Switch>enableSwitch#configure terminal .Switch(config)#hostname SW-BSW-B(config)#interface fa0/22SW-B(config-if)#no swSW-B(config-if)#no switchport (注释:由于是三层交换机,没有启用第三层的功能的,所以这里需要启用第三层,用no switchport 来实现,下面配置IP地址才会成功)sw-B(config-if)#ip address 20.2.2.2 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#ip route 0.0.0.0 0.0.0.0 20.2.2.1 (注释:配置一条默认路由到R-A,下一跳IP地址为R-A上fa0/0上的IP地址)sw-B(config)#以上是交换机SW-B的基本配置,下面进行vlan的划分,指派属于VLAN的端口,配置如下:sw-B(config)#vlan 10 //划分VLan10sw-B(config-vlan)#name 10 //VLan10的名字为10sw-B(config-vlan)#exitsw-B(config)#vlan 20sw-B(config-vlan)#name 20sw-B(config-vlan)#vlan 30sw-B(config-vlan)#name 30sw-B(config-vlan)#exitsw-B(config)#interface fa0/1sw-B(config-if)#switchport mode accesssw-B(config-if)#switchport access vlan 10sw-B(config-if)#interface fa0/2sw-B(config-if)#switchport mode accesssw-B(config-if)#switchport access vlan 20sw-B(config-if)#interface fa0/3sw-B(config-if)#switchport mode accesssw-B(config-if)#switchport access vlan 30sw-B(config-if)#exitsw-B(config)#下面为各个Vlan配置IP地址,并配置Thunk链路以实现相同Vlan之间跨越交换机也是可以通信的,最后配置端口聚合配置如下:sw-B(config)#sw-B(config)#interface vlan 10 //进入VLAN10sw-B(config-if)#ip address 192.168.10.1 255.255.255.0 //为VLAN10配置IP地址sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#interface vlan 20sw-B(config-if)#ip address 192.168.20.1 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#interface vlan 30sw-B(config-if)#ip address 192.168.30.1 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#interface port-group 1sw-B(config-if)#switchport mode trunk //设置trunk链路sw-B(config-if)#switchport trunk allowed vlan all //允许所有Vlan通过trunk链路sw-B(config-if)# switchport trunk encapsulation dot1q //封装802.1q协议sw-B(config-if)#interface range fa0/23 –24 //进入23、24端口sw-B(config-if-range)#channel-group 1 mode on //端口聚合下面配置三层交换机上采用SVI方式(switch virtual interface)实现VLAN之间的路由sw-B>ensw-B#conf tersw-B#conf tersw-B(config)#interface vlan 10sw-B(config-if)#ip address 192.168.10.1 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#interface vlan 20sw-B(config-if)#ip address 192.168.20.1 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exitsw-B(config)#interface vlan 2sw-B(config-if)#interface vlan 30sw-B(config-if)#ip address 192.168.30.1 255.255.255.0sw-B(config-if)#no shutdownsw-B(config-if)#exit在三层交换机上启用Ripv2协议,同时启用端口安全,配置如下:sw-B(config)#router ripsw-B(config-router)#version 2sw-B(config-router)#no ausw-B(config-router)#no auto-summarysw-B(config-router)#network 192.168.10.0sw-B(config-router)#network 192.168.20.0sw-B(config-router)#network 192.168.30.0sw-B(config-router)#network 20.0.0.0sw-B(config-router)#exitsw-B(config)#interface range fa0/1 –3sw-B(config-if)# switchport mode accesssw-B (config-if)# switchport port-securitysw-B(config-if)# switchport port-security max 4以上就是交换机的SW-B的配置,对于PC机的配置如下:业务部PC机IP地址范围为:192.168.10.2 —192.168.10.254 网关为:192.168.10. 1财务部部PC机IP地址范围为:192.168.20.2 —192.168.20.254 网关为:192.168.2 0.1综合部PC机IP地址范围为:192.168.30.2 —192.168.30.254 网关为:192.168.30. 1。

相关文档
最新文档