思科 模拟器路由器操作命令

思科 模拟器路由器操作命令
思科 模拟器路由器操作命令

?配置用户user1,密码为digitalchina,使用此用户名的用户群为普通用户,不可以进入特权模式

–Router#config

Router_config#username user1 password digitalchina –Router_config#aaa authentication for_login login local

–Router_config#line console 0

–Router_config_line#login authentication for_login

–Router_config_line#

–Router_config#enable password digitalchina level 15

实训五十八HDLC封装

?RouterA配置

?指定封装协议为HDLC协议

–RouterA_config#interface serial 2/0

–RouterA_config_s2/0#encapsulation hdlc

?指定接口的IP地址以及子网掩码

–RouterA_config_s2/0#ip address 11.1.1.1 255.255.255.0

–RouterA_config_s2/0#no shut

?RouterB配置

–Router_config#interface serial 1/0

–Router_config_s1/0#encapsulation hdlc

–Router_config_s1/0#ip address 11.1.1.2 255.255.255.0

–指定此端口(DCE端)的内时钟信号频率

–Router_config_s1/0#physical-layer speed 64000

端口状态察看

?Router#show interface serial 2/0

?Serial2/0 is up, line protocol is up

?。。。。

?Encapsulation prototol HDLC, link check interval is 10 sec

使用PAP验证的配置

?RouterA配置

–RouterA#config

–RouterA_config#username RouterB_pap password digitallchinaB

–RouterA_config#interface serial 2/0

–RouterA_config_s2/0#encapsulation ppp

–RouterA_config_s2/0#ppp authentication pap

–RouterA_config_s2/0#ppp pap sent-username RouterA_pap digitalchinaA

–RouterA_config_s2/0#ip address 192.168.2.1 255.255.255.0

?RouterB的配置

–RouterB#config

–RouterB_config#username RouterA_pap password digitalchinaA

–RouterB_config#interface serial 1/0

–RouterB_config_s1/0#encapsulation ppp

–RouterB_config_s1/0#ppp authentication pap

–RouterB_config_s1/0#ppp pap sent-username RouterB_pap digitalchinaB

–RouterB_config_s1/0#ip address 192.168.2.2 255.255.255.0

–RouterB_config_s1/0#physical-layer speed 64000

察看接口状态

?Serial1/0 is up, line protocol is up

?Mode=Sync DCE Speed=64000

?DTR=UP, DSR=UP, RTS=UP, CTS=UP, DCD=UP

?Interface address is 192.168.2.2/24

?MTU 1500 bytes, BW 64 kbit, DLY 2000 usec

?Encapsulation PPP, loopback not set

?Keepalive set(10 sec)

?LCP Opened

?PAP Opened, Message: 'Welcome to Digitalchina Router' ?IPCP Opened

?。。。。

使用CHAP验证的配置

?RouterA的配置

–RouterA_config#usernam e RouterB_chap password digitalchina

–RouterA_config#interface serial 2/0

–RouterA_config_s2/0#encapsulation ppp

–RouterA_config_s2/0#ppp authentication chap

–RouterA_config_s2/0#ppp chap hostname RouterA_chap

–RouterA_config_s2/0#ppp chap password digitalchina

–RouterA_config_s2/0#ip address 192.168.2.1 255.255.255.0

?RouterB的配置

–RouterB_config#username RouterA_chap password digitalchina

–RouterB_config#interface serial 1/0

–RouterB_config_s1/0#encapsulation ppp

–RouterB_config_s1/0#ppp authentication chap

–RouterB_config_s1/0#ppp chap hostname RouterB_chap

–RouterB_config_s1/0#ppp chap password digitalchina

–RouterB_config_s1/0#physical-layer speed 64000

–RouterB_config_s1/0#ip address 192.168.2.2 255.255.255.0 察看端口状态

?Serial2/0 is up, line protocol is up

?……

?LCP Opened

?CHAP Opened, Message: ' Welcome to Digitalchina Router' ?IPCP Opened

?……

frame-relay封装

RouterA 的配置

?RouterA#config

?RouterA_config#interface serial 2/0

?RouterA_config_s2/0#encapsulation frame-relay

?RouterA_config_s2/0#frame-relay local-dlci 17

?RouterA_config_s2/0#frame-relay intf-type dte

?RouterA_config_s2/0#frame-relay map 192.168.2.2 pvc 17 broadcast

?RouterA_config_s2/0#ip address 192.168.2.1 255.255.255.0

?

RouterB的配置

?RouterB#config

?RouterB_config#interface serial 1/0

?RouterB_config_s1/0#encapsulation frame-relay

?RouterB_config_s1/0#frame-relay local-dlci 17

?RouterB_config_s1/0#frame-relay intf-type dce

?RouterB_config_s1/0#frame-relay map 192.168.2.1 pvc 17 broadcast

?RouterB_config_s1/0#physical-layer speed 64000

?RouterB_config_s1/0#ip address 192.168.2.2 255.255.255.0

察看端口状态

?Serial1/0 is up,line protocol is up

?……

?Encapsulation Frame-relay, loopback not set

?……

?FrameRelay DCE, LMI type is Q933A, LMI DLCI 0

?LMI DCE Link Errors 12, Protocol Errors 3, Inactives 1

?……

RIP配置

?配置路由器A的两个直接连接网段参与RIP协议进程

–RouterA#config

–RouterA_config#router rip

–RouterA_config_rip#network 192.168.2.0

–RouterA_config_rip#network 192.168.4.0

?RIP协议的运行版本为2

–RouterA_config_rip#version 2

?OSPF路由协议

?启动路由器A中的OSPF协议进程,进程号为1

?RouterA#config

?RouterA_config# router ospf 1

?配置路由器A的两个直连网段以区域0的方式参与OSPF协议进程

?RouterA_config_ospf_1#network 192.168.2.0 255.255.255.0 area 0

?RouterA_config_ospf_1#network 192.168.4.0 255.255.255.0 area 0

?创建VLAN

–Console (Config)#vlan 100

–Console (Config)#vlan 200

?将端口添加进VLAN

–Console(Config-Vlan100)#switchport interface ethernet 0/0/1-5

–Console(Config-Vlan200)#switchport interface ethernet 0/0/6-10

私有VLAN的设置步骤

?创建私有vlan

–DCS-3926S(Config)#vlan 100

–DCS-3926S(Config-Vlan100)#private-vlan primary

–DCS-3926S(Config)#vlan 101

–DCS-3926S(Config-Vlan101)#private-vlan community ?做VLAN 之间的关联

–DCS-3926S(Config-Vlan100)#private-vlan association 101;102

?添加端口成员

–DCS-3926S(Config-Vlan100)#switchport interface ethernet 0/0/24

链路聚合技术

?第一步:创建port group

?switchA(Config)#port-group 1

?验证配置:

?switchA#show port-group detail

?switchA#show port-group brief

?第二步:手工生成链路聚合组(第二、三步任选其一操作)?switchA(Config)#interface ethernet 0/0/1-2

?switchA(Config-Port-Range)#port-group 1 mode on

?验证配置:

?switchA#show vlan

?switchB#show port-group brief

?第三步:LACP动态生成链路聚合组(第二、三步任选其一操作)

?switchA(Config)#interface ethernet 0/0/1-2

?switchA(Conifg-Port-Range)#port-group 1 mode active

?验证配置:

?switchA#show vlan

?switchB#show port-group brief

端口与地址绑定技术

?第一步:使能端口的MAC地址绑定功能

?switch(Config)#interface ethernet 0/0/1

?switch(Config-Ethernet0/0/1)#switchport port-security

?switch(Config-Ethernet0/0/1)#

?第二步:添加端口静态安全MAC地址,缺省端口最大安全MAC地址数为1

?switch(Config-Ethernet0/0/1)#switchport port-security mac-address 00-a0-d1-d1-07-ff

?验证配置:

?switch#show port-security

?switch#show port-security address

?第三步:在一个以太口上静态捆绑多个MAC

?Switch(Config-Ethernet0/0/1)#switchport port-security maximum 4

?Switch(Config-Ethernet0/0/1)#switchport port-security mac-address aa-aa-aa-aa-aa-aa

?Switch(Config-Ethernet0/0/1)#switchport port-security mac-address aa-aa-aa-bb-bb-bb

?第四步:清空端口与MAC绑定

?switch(Config)#int ethernet 0/0/1

?switch(Config-Ethernet0/0/1)#no switchport port-security

?第五步:使能端口的MAC地址绑定功能,动态学习MAC并转换

?switch(Config)#interface ethernet 0/0/1

?switch(Config-Ethernet0/0/1)#switchport port-security

?switch(Config-Ethernet0/0/1)#switchport port-security lock ?switch(Config-Ethernet0/0/1)#switchport port-security convert ?验证测试:

?switch#show mac-address-table

cisco模拟器应用实例讲解

第一篇、熟悉界面 一、设备的选择与连接 在界面的左下角一块区域,这里有许多种类的硬件设备,从左至右,从上到下依次为路由器、交换机、集线器、无线设备、设备之间的连线(Connections)、终端设备、仿真广域网、Custom Made Devices(自定义设备)下面着重讲一下“Connections”,用鼠标点一下它之后,在右边你会看到各种类型的线,依次为Automatically Choose Connection Type(自动选线,万能的,一般不建议使用,除非你真的不知道设备之间该用什么线)、控制线、直通线、交叉线、光纤、电话线、同轴电缆、DCE、DTE。其中DCE和DTE是用于路由器之间的连线,实际当中,你需要把DCE和一台路由器相连,DTE和另一台设备相连。而在这里,你只需选一根就是了,若你选了DCE这一根线,则和这根线先连的路由器为DCE,配置该路由器时需配置时钟哦。交叉线只在路由器和电脑直接相连,或交换机和交换机之间相连时才会用到。 注释:那么Custom Made Devices设备是做什么的呢?通过实验发现当我们用鼠标单击不放开左键把位于第一行的第一个设备也就是Router中的任意一个拖到工作区,然后再拖一个然后我们尝试用串行线Serial DTE连接两个路由器时发现,他们之间是不会正常连接的,原因是这两个设备初始化对然虽然都是模块化的,但是没有添加,比如多个串口等等。那么,这个Custom Made Devices设备就比较好了,他会自动添加一些“必须设备的”,在实验环境下每次选择设备就不用手动添加所需设备了,使用起来很方便,除非你想添加“用户自定义设备”里没有的设备再添加也不迟。 当你需要用哪个设备的时候,先用鼠标单击一下它,然后在中央的工作区域点一下就OK了,或者直接用鼠标摁住这个设备把它拖上去。连线你就选中一种线,然后就在要连接的线的设备上点一下,选接口,再点另一设备,选接口就OK了。注意,接口可不能乱选哦。连接好线后,你可以把鼠标指针移到该连线上,你就会线两端的接口类型和名称哦,配置的时候要用到它。 二、对设备进行编辑在右边有一个区域,如图1.2所示,从上到下依次为选定/取消、移动(总体移动,移动某一设备,直接拖动它就可以了)、Place Note(先选中)、删除、Inspect (选中后,在路由器、PC机上可看到各种表,如路由表等)、simple PPD、complex。

路由器常用命令

cisco路由器常用命令 1:三大模式 router> 用户模式 router > enable 进入特权模式 router # router > enable 进入全局配置模式 router #configure terminal router (conf)# 2:其它模式 Router(config)#interface f1/0 进入接口配置模式Router(config-if)# Router(config)#interface f1/0.1 进入子接口配置模式Router(config-subif)# Router(config)#line console 0 进入line模式Router(config-line)# Router(config)#router rip 进入路由模式Router(config-router)# 3:路由器命名 hostname routera,以routerA为例 router > enable router #configure terminal router(conf)#hostname routerA routera (conf)# 4:配置各类密码 配置特权模式密码(使能口令) enable password cisco,以cisco为例 router > enable router #configure terminal router(conf)#hostname routerA routerA (conf)# enable password cisco 设置VTY(虚拟终端接口)密码 Router(config)#line vty 0 1

思科路由模拟器命令大全

命令要在一行内打完,窗体可以自动拉大。Aux口这个版本暂不支持。 支持三级Switch网络,需要路由时支持两级Switch。 设置的主机名中不要含有空格。F2、F3键清屏(为了方便而加) Ctrl+P 历史命令,建议使用方向键。 Ctrl+z 回根, 建议使用end命令 Ctrl+Break 路由器进入ROM监控状态。交换机清除特权密码。 双击设备进入终端操作 单击设备的接口可以实现画线 单击画有线的接口可以删除连线 在指定的设备按下鼠标右键可以删除设备。 在指定的设备按下鼠标左键可以实现移动。 按Tab键,可以得到命令全称。 键入"?"可以得到当前状态下的命令帮助。 接收的作业名固定为当前目录下的sim.txt。 系统的配置文件是:sim.ini。 计算测验得分中,ping PCA->PCB;5 表示ping通得5分, SWAf6=2;5表示交换机SwitchA的f0/6在vlan 2时得5分。 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PCA login: root ;使用root用户password: linux ;口令是linux # shutdown -h now ;同init 0 关机 # logout # login # ifconfig ;显示IP地址 # ifconfig eth0 netmask ;设置IP地址 # ifconfig eht0 netmask down ;删除IP地址 # route add 0.0.0.0 gw # route del 0.0.0.0 gw # route add default gw ;设置网关 # route del default gw ;删除网关 # route ;显示网关 # ping # telnet 交换机基本状态: switch: ;交换机的ROM状态

Cisco设备的基本配置命令

switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip 和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址 7:进入交换机某一端口 interface fastehernet 0/17 以17端口为例switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#

Cisco路由器模拟器配置

Cisco路由器配置 *注意事项: 1.需要将镜像文件放到Gns3安装文件同一目录下 2.注意路由器用户名后面的模式(Ra>、Ra#、Ra、Ra、Ra 等),只有在特定的模式下才能进行相应的设置。 一、在Cisco上配置telnet的相关命令和说明: Ra>enable <进入特权模式> Ra#config terminal <进入全局模式> Ra#interface f0/0 <进入接口模式> Ra#ip address 192.168.0.22 (ip地址) 255.255.255.0 (子网掩码) (设置路由器f0/0接口的ip地址和子网掩码) Ra#no shutdown <生效之前的配置操作> Ra#exit Ra#line vty 0 4 (VTY是路由器的远程登陆的虚拟端口,0 4表示可以同时打开5个会话) Ra#login local Ra#username Cisco password hkgt123 Ra#enable secret hkgt123 <登入特权模式需要的口令> 验证telnet登陆路由器: Ra#telnet 192.168.0.22

二、在Cisco上配置SSH的相关命令和说明: Ra#config terminal Ra(config)#ip domain-name https://www.360docs.net/doc/309808532.html, <配置一个域名> Ra(config)#crypto key generate rsa general-keys modulus 1024<生成一个rsa算法的密钥,密钥为1024位> (提示:在Cisoc中rsa支持360-2048位,该算法的原理是:主机将自己的公用密钥分发给相关的客户机,客户机在访问主机时则使用该主机的公开密钥来加密数据,主机则使用自己的私有的密钥来解密数据,从而实现主机密钥认证,确定客户机的可靠身份。) Ra(config)#ip ssh time 120 <设置ssh时间为120秒> Ra(config)#ip ssh authentication 4<设置ssh认证重复次数为4,可以在0-5之间选择> Ra(config)#line vty 0 4 <进入vty模式> Ra(config-line)#transport input ssh telnet <设置vty的登录模式为ssh、telnet,默认情况下是all即允许所有登录> Ra(config-line)#login Ra(config-line)#exit Ra(config)#aaa new-model Ra(config)#aaa authentication login default local <启用aaa认证,设置在本地服务器上进行认证> Ra(config)#username cisco privilege 15 secret hkgt123 <创建一个用户cisco级别为15并设置其加密密码为hkgt123用于SSH客户端登录> 修改登陆超时限制时间和登陆重复次数可以不修改 如果要把超时限定改为180秒,则应该用:Ra(config)# ip ssh time-out 180 如果要把重试次数改成5次,则应该用:Ra(config)# ip ssh authentication-retries 5 这样SSH的CISCO设置就完成了。 登陆: Ra#ssh -l登陆ssh用户名 IP地址

1-cisco路由器基本配置及远程登录

实训目的: (1)学习和掌握科路由器的配置方式和要求。 (2)学习和掌握科路由器的工作模式分类、提示符、进入方式。1、路由器的配置方式 ①超级终端方式。该方式主要用于路由器的初始配置,路由器不需要IP地址。基本方法是:计算机通过COM1/COM2口和路由器的Console口连接,在计算机上启用“超级终端”程序,设置“波特率:9600 ,数据位:8,停止位:1,奇偶校验: 无,校验:无”即可。常用 ②Telnet方式。该方式配置要求路由器必须配置了IP地址。基本方法是:计算机通过网卡和路由器的以太网接口相连,计算机的网卡和路由器的以太网接口的IP地址必须在同一网段。常用 ③其他方式:AUX口接MODEM,通过电话线与远方运行终端仿真软件的微机;通过Ethernet上的TFTP服务器;通过Ethernet上的SNMP网管工作站。 2、路由器的工作模式 在命令行状态下,主要有以下几种工作模式: ①一般用户模式。主要用于查看路由器的基本信息,只能执行少数命令,不能对路由 器进行配置。提示符为:Router>;进入方式为:Telnet或Console ②使能(特权)模式。主要用于查看、测试、检查路由器或网络,不能对接口、路由 协议进行配置。提示符为:Router#;进入方式为:Router>enable。 ③全局配置模式。主要用于配置路由器的全局性参数。提示符为:Router(config)#; 进入方式为:Router#config ter。 ④全局模式下的子模式。包括:接口、路由协议、线路等。其进入方式和提示符如下: Router(config)#ineterface e0 //进入接口模式 Router(config-if)#//接口模式提示符 Router(config)#rip //进入路由协议模式 Router(config-router)# //路由协议模式 Router(config)#line con 0 //进入线路模式

思科交换机命令大全 + Cisco IOS 基本命令

思科交换机命令大全 (一) 序号/类别基于ios的交换机命令基于CLI的交换机命令 1.设置主机名/系统名switch(config)# hostname "hostname" switch(enable) set system name name-string 2.设置登录口令switch(config)# enable password level 1 password switch(enable) set password switch(enable) set enalbepass 3.设置远程访问switch(config)# inte***ce vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce sc0 ip-address netmask broadcast-address switch(enable) set inte***ce sc0 vlan switch(enable) set ip route default gateway 4.启用和浏览CDP信息switch(config-if)# cdp enable switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module/port 5.查看Cisco邻接设备的CDP通告switch# show cdp inte***ce [type modle/port] switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 6.端口描述switch(config-if)#description escription-string switch(enable)set port name module/number description-string 7.设置端口速度switch(config-if)# speed{10|100|auto} switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 8.设置以太网的链路模式switch(config-if)# duplex {auto|full|half} switch(enable) set port duplex module/number {full|half 9.配置静态VLAN switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)#inte***ce inte***ce module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end switch(enable) set vlan vlan-num [name name] switch(enable) set vlan vlan-num mod-num/port-list 10.配置VLAN中继线switch(config)# inte***ce inte***ce mod/port switch(config-if)# switchport mode trunk switch(config-if)#switchport trunk encapsulation {isl|dotlq} switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 11.配置VTP管理域switch# vlan database

最新整理怎么在思科模拟器配置交换机VTP

怎么在思科模拟器配置交换机V T P 交换机除了能够连接同种类型的网络之外,还可以在不同类型的网络(如以太网和快速以太网)之间起到 互连作用。在思科模拟器上怎么配置交换机V T P?V T P被组织成管理域(V T P D o m a i n),V T P可以分为三种模式:服务器模式(S e r v e r),客户机模式(C l i e n t),透明模式,下面我们来看看配置方法 方法步骤 1、首先,打开思科模拟器软件,连接三台交换机的连接线,将所有交换机互相连接起来,一台当服务器,一台当客户机,另外一台当透明模式。 2、把三台交换机的配置清除干净,重启交换机,配置命令为: S1#d e l e t e f l a s h:v l a n.d a t S1#e r a s e s t a r t u p-c o n f i g S1#r e l o a d 配置S1为V T P s e r v e r,配置命令为: 复制内容到剪贴板 S1(c o n f i g)#v t p m o d e s e r v e r 3、配置S3为V T P t r a n s p a r e n t,配置命令是:

S3#v l a n d a t a b a s e S3(v l a n)#v t p t r a n s p a r e n t S3(v l a n)#v t p p a s s w o r d c i s c o(配置交换机的密码) S e t t i n g d e v i c e V L A N d a t a b a s e p a s s w o r d t o c i s c o 4、配置S2为V T P c l i e n t,配置命令是: S2(c o n f i g)#v t p m o d e c l i e n t S e t t i n g d e v i c e t o V T P C L I E N T m o d e. S2(c o n f i g)#v t p d o m a i n V T P-T E S T D o m a i n n a m e a l r e a d y s e t t o V T P-T E S T. S2(c o n f i g)#v t p p a s s w o r d c i s c o 5、在S1上创建V L A N,检查S2、S3上的V L A N信息,配置命令是: S1(c o n f i g)#v l a n2 S1(c o n f i g)#v l a n3 查看s1,s2,s3的V L A N配置信息。命令是: S1#s h o w v l a n S2#s h o w v l a n S3#s h o w v l a n 6、查看V T P信息,查看交换机的v t p详细信息和版本等信息:

(完整版)思科路由器查看配置命令.doc

思科路由器查看配置命令 show run// 看运行状况 show ip route// 看路由表 show int// 看断口 * show ip int br// 看端口 ip 地址 show cdp nei// 察看 cdp 邻居 show ip pro// 察看 ip 协议 查看配置信息用 show 命令,该命令可以在用户模式和特权模式下执行,且在特权模式下看 到的信息比用户模式多。 show 命令很多,常用的有: 1、查看运行配置文件: Router#show running-config 运行配置文件 running-config 位于路由器的 RAM 中,存放的是路由器当前使用的配置信息。 2、查看启动配置文件: Router#show startup-config 启动配置文件 startup-config 位于路由器的 NVRAM 中,可以长期保存。它在启动路由器时装入 RAM ,成为 running-config 。 3、查看路由器的版本信息: Router#show version' 4、查看路由器的接口状态: Router#show ip interface brief 如果接口状态标识为“ Down ”,表示此接口未激活,如果标识为“ Up”,表示此接口已经激活。 5、查看路由表:

Router#show ip route 通过路由表可以看出该路由器已经识别的网络。 6、查看 NAT 翻译情况: Router#show ip nat translation 应该先进行内网与外网的通讯(如:用 ping 命令 ),然后再查看,才能看到翻译情况。

1思科模拟器基本操作hao

三层交换机基日常本操作和维护 1、设置系统名称 ZXR10>-----普通用户模式 ZXR10#------特权模式 ZXR10(config)#--------全局模式 ZXR10(config)#interface fastethernet 0/1 //进入交换机fei_0/1口 ZXR10(config-if)#-------------子接口模式 ZXR10>enable //进入特权模式 ZXR10#configure terminal //进入全局配置模式 ZXR10(config)#hostname ZTE //对系统性命名为ZTE ZTE(config) #exit //退出用exit命令 2、设置系统日期和时间 ZXR10#clock set 15:52:35 apr 18 2011 //特权模式下 验证方法:-----注:思科模拟器上没有月份显示,用???代替 ZXR10#show clock-------显示设备当前的系统时间 3、设置设备特权模式密码 ZXR10(config)#enable secret zte //密文enable密码 ZXR10(config)#enable password zte //明文 验证方法: ZXR10(config)#exit ZXR10#exit 按回车键 ZXR10>输入enable Password:输入你的enable 密码。 4、设置登录标志 banner motd c //Set Message of the Day banner Enter TEXT message. End with the character 'c'. Hello world!! c ) 验证: ZXR10(config)#exit ZXR10#exit 按回车键 出现: Hello world!!--------欢迎语 ZXR10> 5、设置telnet登陆模拟器交换路由设备 拓扑图 远程登录时所端口连接设备及Telnet ??switch(config-line)可以设置通过console

CISCO 常用命令解释

视图模式介绍: 普通视图 router> 特权视图 router# /在普通模式下输入enable 全局视图 router(config)# /在特权模式下输入config t 接口视图 router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图 router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr router(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段 router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口 在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口 3、路由配置: (1)静态路由 router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由 (2)动态路由 rip协议 router(config)#router rip /启动rip协议 router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段 router(config-router)#version 2 转换为rip 2版本 router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用 router(config-router)# passive-int 接口名 /启动本路由器的那个接口为被动接口

思科模拟器配置命令

Switch#conf t Switch(config)#vlan 10 Switch(config-vlan)#ex Switch(config)#int rang f0/1-5 Switch(config-if-range)#sw acc vlan 10 Switch(config-if-range)#ex Switch(config)#int f0/24 Switch(config-if)#sw mode trunk Switch(config)#int rang f0/23-24 Switch(config-if-range)#channel-group 1 mode on Switch(config-if-range)#ex Switch(config)#int port-channel 1 Switch(config-if)#sw mode trunk 远程登陆交换机:

Switch(config-if)#ip add 1.1.1.1 255.255.255.0(IP地址要和远程登陆的客户机在同一个网段) Switch(config-if)#no sh Switch(config-if)#ex Switch(config)#line vty 0 Switch(config-line)#password zlr Switch(config-line)#exit Switch(config)#enable secret 123 Switch(config)#ex Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#ex Switch(config)#int rang f0/23-24 Switch(config-if-range)#sw trunk encapsulation dot1q

思科路由器常用配置命令大全

思科路由器常用配置命令大全 本文按字母顺序列举了思科路由器常用配置命令,适合思科路由器操作人员随时查看 Access-enable允许路由器在动态访问列表中创建临时访问列表入口 Access-group把访问控制列表(ACL)应用到接口上 Access-list定义一个标准的IP ACL Access-template在连接的路由器上手动替换临时访问列表入口 Appn向APPN子系统发送命令 Atmsig 执行ATM信令命令 B 手动引导操作系统 Bandwidth 设置接口的带宽 Banner motd 指定日期信息标语 Bfe 设置突发事件手册模式 Boot system 指定路由器启动时加载的系统映像 Calendar 设置硬件日历 Cd 更改路径 Cdp enable 允许接口运行CDP协议 Clear 复位功能 Clear counters 清除接口计数器 Clear interface 重新启动接口上的件逻辑 Clockrate 设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率 Cmt 开启/关闭FDDI连接管理功能 Config-register 修改配置寄存器设置 Configure 允许进入存在的配置模式,在中心站点上维护并保存配置信息 Configure memory 从NVRAM加载配置信息 Configure terminal 从终端进行手动配置 Connect 打开一个终端连接 Copy 复制配置或映像数据 Copy flash tftp 备份系统映像文件到TFTP服务器 Copy running-config startup-config 将RAM中的当前配置存储到NVRAM Copy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上 Copy tftp flash 从TFTP服务器上下载新映像到Flash Copy tftp running-config 从TFTP服务器上下载配置文件 Debug 使用调试功能 Debug dialer 显示接口在拨什么号及诸如此类的信息 Debug ip rip 显示RIP路由选择更新数据 Debug ipx routing activity 显示关于路由选择协议(RIP)更新数据包的信息 Debug ipx sap 显示关于SAP(业务通告协议)更新数据包信息 Debug isdn q921 显示在路由器D通道ISDN接口上发生的数据链路层(第2层)的访问过程 Debug ppp 显示在实施PPP中发生的业务和交换信息 Delete 删除文件 Deny 为一个已命名的IP ACL设置条件 Dialer idle-timeout 规定线路断开前的空闲时间的长度 Dialer map 设置一个串行接口来呼叫一个或多个地点 Dialer wait-for-carrier-time 规定花多长时间等待一个载体 Dialer-group 通过对属于一个特定拨号组的接口进行配置来访问控制 Dialer-list protocol 定义一个数字数据接受器(DDR)拨号表以通过协议或ACL与协议的组合来控

思科命令全集汇总

CISCO命令全集-思科命令汇总 各个视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)

思科 模拟器路由器操作命令

?配置用户user1,密码为digitalchina,使用此用户名的用户群为普通用户,不可以进入特权模式 –Router#config Router_config#username user1 password digitalchina –Router_config#aaa authentication for_login login local –Router_config#line console 0 –Router_config_line#login authentication for_login –Router_config_line# –Router_config#enable password digitalchina level 15 实训五十八HDLC封装 ?RouterA配置 ?指定封装协议为HDLC协议 –RouterA_config#interface serial 2/0 –RouterA_config_s2/0#encapsulation hdlc ?指定接口的IP地址以及子网掩码 –RouterA_config_s2/0#ip address 11.1.1.1 255.255.255.0 –RouterA_config_s2/0#no shut ?RouterB配置 –Router_config#interface serial 1/0

–Router_config_s1/0#encapsulation hdlc –Router_config_s1/0#ip address 11.1.1.2 255.255.255.0 –指定此端口(DCE端)的内时钟信号频率 –Router_config_s1/0#physical-layer speed 64000 端口状态察看 ?Router#show interface serial 2/0 ?Serial2/0 is up, line protocol is up ?。。。。 ?Encapsulation prototol HDLC, link check interval is 10 sec 使用PAP验证的配置 ?RouterA配置 –RouterA#config –RouterA_config#username RouterB_pap password digitallchinaB –RouterA_config#interface serial 2/0 –RouterA_config_s2/0#encapsulation ppp –RouterA_config_s2/0#ppp authentication pap –RouterA_config_s2/0#ppp pap sent-username RouterA_pap digitalchinaA –RouterA_config_s2/0#ip address 192.168.2.1 255.255.255.0

Cisco常用命令

路由器实验: router> enable 从用户模式进入特权模式 router# disable or exit 从特权模式退出到用户模式 router# show sessions 查看本机上的TELNET会话router# disconnect 关闭所有的TELNET会话 router# show users 查看本机上的用户 router# erase startupconfig 删除NVRAM中的配置 router# reload 重启路由器 router# config terminal 从用户模式进入特权模式 router(config)# hostname rl 配置用户名为rl router(config)# #banner welcome# 配置开机话语

router# show controllers serial0 查看串口0的物理层信息(主要是查看DTE/DCE)router# show ip interface 查看端口的IP配置信息 router# show hosts 查看主机表 end or ctrl+z 从各种配置模式退到特权模式 rl(config)# no ipdomainlookup 关闭动态域名解析 rl(config)# ipdomainlookup 打开动态域名解析 rl(config)# ipnameserver 202.106.0.20 打开动态域名解析之后便可以指定DNS服务rl(config)# interface serial 0 进入serial 0的接口配置模式 rl(configif)# no shutdown 路由器出厂默认所有端口关闭,使用此命令使它们打开rl(configif)# encapsulation ppp 封装ppp rl(configif)# clockrate 64000 如果是DCE使需要设置时钟速率,如果是DTE使不必设置

思科路由器配置命令和方法

第一章:路由器配置基础 一、基本设置方式 一般来说,可以用5种方式来设置路由器: 1.Console口接终端或运行终端仿真软件的微机; 2.AUX口接MODEM,通过电话线与远方的终端或运行终端仿真软件的微机相连;3.通过Ethernet上的TFTP服务器; 4.通过Ethernet上的TELNET程序; 5.通过Ethernet上的SNMP网管工作站。 但路由器的第一次设置必须通过第一种方式进行,此时终端的硬件设置如下: 波特率:9600 数据位:8 停止位:1 奇偶校验: 无 二、命令状态 1. router> 路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机,但不能看到和更改路由器的设置内容。 2. router# 在router>提示符下键入enable,路由器进入特权命令状态router#,这时不但可以执行所有的用户命令,还可以看到和更改路由器的设置内容。 3. router(config)# 在router#提示符下键入configure terminal,出现提示符router(config)#,此时路由器处于全局设置状态,这时可以设置路由器的全局参数。 4. router(config-if)#; router(config-line)#; router(config-router)#;… 路由器处于局部设置状态,这时可以设置路由器某个局部的参数。 5. > 路由器处于RXBOOT状态,在开机后60秒内按ctrl-break可进入此状态,这时路由器不能完成正常的功能,只能进行软件升级和手工引导。 设置对话状态 这是一台新路由器开机时自动进入的状态,在特权命令状态使用SETUP命令也可进入此状态,这时可通过对话方式对路由器进行设置。 三、设置对话过程 显示提示信息 全局参数的设置 接口参数的设置 显示结果 利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊的设置还必须通过手工输入的方式完成。 进入设置对话过程后,路由器首先会显示一些提示信息: --- System Configuration Dialog --- At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. 这是告诉你在设置对话过程中的任何地方都可以键入“?”得到系统的帮助,按ctrl-c可以退

相关文档
最新文档