资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,*,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,*,*,第六章,VLAN,配置,BosonNetsim,模拟软件配置,VLAN,(虚拟局域网)实验,实验目的与基本要求,1,、掌握网络模拟器的使用,2,、了解交换机和路由器的基本设置方法,3,、初步了解和掌握配置,VLAN,的方法,实验理论知识,网络模拟器介绍,模拟器,使用软件来营造出一种虚拟的实验环境,其中包含了实验环境,即路由器、交换机、各种连接方式,点击进入相关的设备,模拟器主要包括,Boson,Netsim,RouterSim,Sybex,Virtual Lab,等,实验理论知识(续),BosonNetsim,模拟软件介绍,Boson,NetSim,是,Boson,公司推出了一款,Cisco,路由器、交换机模拟程序。,它的出现给那些正在准备,CCNA,、,CCNP,考试却苦于没有实验设备、实验环境的备考者提供了实践练习的有力环境。,BosonNetsim,界面),实验理论知识(续),交换机及基本配置,1,、交换机基本状态,hostname,用户模式,hostname#,特权模式,hostname(,config,)#,全局配置模式,hostname(,config,-if)#,接口状态,2,、交换机口令设置,switchenable,进入特权模式,switch#config,terminal,进入全局配置模式,实验理论知识(续),交换机及基本配置,switch(config)#hostname,设置交换机的主机名,switch(config)#enable,secret xxx,设置特权加密口令,switch(config)#enable,password,xxa,设置特权非密口令,switch(config)#line,console 0,进入控制台口,switch(config-line)#line,vty,0 4,进入虚拟终端,switch(config-line)#login,允许登录,switch(config-line)#password,xx,设置登录口令,xx,switch#exit,返回命令,3,、交换机,VLAN,配置,switch#vlan,database,进入,VLAN,设置,switch(vlan)#vlan,2,建,VLAN 2,switch(vlan)#no,vlan,2,删,vlan,2,实验理论知识(续),交换机及基本配置,switch(vlan)#vtp,domain,;设置发,vtp,域名,switch(vlan)#vtp,password,;设置发,vtp,密码,switch(vlan)#vtp,server,;设置发,vtp,模式,switch(vlan)#vtp,client,;设置发,vtp,模式,switch(vlan)#vtp,pruning,;设置,vtp,允许,switch(config)#int,f0/1,;进入端口,1,switch(config-if)#switchport,access,vlan,2,;当前端口加入,vlan,2,switch(config-if)#switchport,mode trunk,;设置为干线,switch(config-if)#switchport,trunk allowed,vlan,1,2,;设置允许的,vlan,switch(config-if)#switchport,trunk,encap,dot1q,;设置,vlan,中继,switch(config-if)#speed,;设置接口速度,switch(config-if)#duplex,;设置接口作方式,实验理论知识(续),交换机及基本配置,4,、交换机设置,IP,地址:,switch(config)#interface,vlan,1,;进入,vlan,1,switch(config-if)#ip,address ,;设置,IP,地址,switch(config)#ip,default-gateway,;设置默认网关,switch#dir,flash:,;查看闪存,实验理论知识(续),交换机及基本配置,5,、交换机显示命令,switch#write,;保存配置信息,switch#show,vtp,;查看,vtp,配置信息,switch#show,run,;查看当前配置信息,switch#show,vlan,;查看,vlan,配置信息,switch#show,interface,;查看端口信息,switch#show,int,f0/0,;查看指定端口信息,实验理论知识(续),路由器及基本配置,路由器模式概述,Router,用户模式,Router#,特权模式,Router(config,)#,全局模式,Router(config,-if)#,接口模式,Router(config-subif,)#,子接口模式,Router(config,-line)#,控制台接口模式,Router(config,-router)#,路由器协议接口模式,实验理论知识(续),路由器显示命令,router#show,run,;显示配置信息,router#show,interface,;显示接口信息,router#show,ip,route,;显示路由信息,router#show,cdp,nei,;显示邻居信息,router#reload,;重新起动,实验理论知识(续),路由器口令设置,routerenable,;进入特权模式,router#config,terminal,;进入全局配置模式,router(config)#hostname,;设置交换机的主机名,router(config)#enable,secret xxx,;设置特权加密口令,router(config)#enable,password,xxb,;设置特权非密口令,router(config)#line,console 0,;进入控制台口,router(config-line)#line,vty,0 4,;进入虚拟终端,router(config-line)#login,;要求口令验证,router(config-line)#password,xx,;设置登录口令,xx,router(config)#(Ctrl+z,),;返回特权模式,router#exit,;返回命令,实验理论知识(续),路由器配置,router(config)#int,s0/0,;进入,Serail,接口,router(config-if)#no,shutdown,;激活当前接口,router(config-if)#clock,rate 64000,;设置同步时钟,router(config-if)#ip,address ,;设置,IP,地址,router(config-if)#ip,address second,;设置第二个,IP,router(config-if)#int,f0/0.1,;进入子接口,router(config-subif.1)#ip address ,;设置子接口,IProuter(config-subif.1)#encapsulation dot1q,;绑定,vlan,中继协议,router(config)#config,-register 0 x2142,;跳过配置文件,router(config)#config,-register 0 x2102,;正常使用配置文件,router#reload,;重新引导,实验理论知识(续),VLAN,技术介绍,实验理论知识(续),TRUNK,技术介绍,实验理论知识,网络模拟器介绍,实 验 内 容,实验背景介绍,实 验 内 容(续),实验所用网络命令,实 验 内 容(续),网络拓扑图绘制,实 验 内 容(续),参数设置,实 验 内 容(续),测试验证,
展开阅读全文