思科telnet配置命令(思科关闭telnet命令)

      最后更新:2024-03-24 14:35:32 手机定位技术交流文章

      求cisco 交换机 telnet 用户名+密码方式配置 详细命令

      Switch>enSwitch#confiConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#username 123 password 123Switch(config)#enable password 123Switch(config)#line vty 0 4Switch(config-line)#login lSwitch(config-line)#login localSwitch(config-line)#int vlan 1Switch(config-if)#ip add 192.168.1.1 255.255.255.0Switch(config-if)#no sh扩展资料:关于telnet的基本配置R1:Router>en //进入特权模式Router#conf t //进入全局模式Router(config)#int f0/0 //进入接口Router(config-if)#ip add 1.1.1.1 255.0.0.0 //配置IP地址Router(config-if)#no sh //开启端口Router(config-if)#exRouter(config)#line vty 0 4    /对连接会话进行设置,允许0-4telnet会话Router(config-line)#pasRouter(config-line)#password 123   /设置连接密码Router(config-line)#loginRouter(config-line)#exRouter(config)#enable password qq  /设置特权密码/要实现telnet必须两个密码:特权密码和链接密码。否则将无法telnet。实例:华为的基本配置基本配置:system-viewEnter system view, return user view with Ctrl+Z.[Huawei]sys R1[R1]aaa[R1-aaa]local-user admin password cipher 123[R1-aaa]local-user admin service-type telnet[R1-aaa]local-user admin privilege level 3[R1-aaa]quit[Huawei]user-interface vty 0 4[Huawei-ui-vty0-4]authentication-mode aaa[Huawei-ui-vty0-4]qui[Huawei]int e0/0/0[Huawei-Ethernet0/0/0]ip add 1.1.1.1 255.0.0.0[Huawei-Ethernet0/0/0]quit验证:Huawei>telnet 1.1.1.1Trying 1.1.1.1 ...Press CTRL+K to abortConnected to 1.1.1.1 ...Login authenticationUsername:1Password:在此处验证的用户是本地创建的新用户:1密码就是配置的密文123
      配置登陆的用户名和密码 Router(config)#username test password 0 test配置line验证方式为localRouter(config)#line vty 0 4Router(config-line)#login localRouter(config-line)#endRouter#wrBuilding configuration...[OK] Router#
      楼上的你配置毛线!!你那个配置 能远程登录我把交换机吃了 Switch>enSwitch#confiConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line.End with CNTL/Z.Switch(config)#username 123 password 123Switch(config)#enable password 123Switch(config)#line vty 0 4Switch(config-line)#login lSwitch(config-line)#login localSwitch(config-line)#int vlan 1Switch(config-if)#ip add 192.168.1.1 255.255.255.0Switch(config-if)#no sh 需要我为 每条命令解释一遍么??
      求cisco 交换机 telnet 用户名+密码方式配置 详细命令

      cisco交换机怎么配telnet

      cisco交换机怎么配telnet,解答如下cisco交换机如何配置telnet,步骤一:打开cisco packet tracer工具主界面,分别拖入一台c3560交换机和一台主机。步骤阅读.2cisco交换机如何配置telnet,步骤二:点击交换机开始配置,首先配置用户名和密码。user asdf password asdf步骤阅读.3cisco交换机如何配置telnet,步骤三:然后配置enable密码,也就是特权密码。enable password asdf步骤阅读.4cisco交换机如何配置telnet,步骤四:接着,配置vty接口,使用本地数据库用户密码登入。line vty 0 4login local步骤阅读.5cisco交换机如何配置telnet,步骤五:接着:ip routing:开启三层交换机的路由功能;no switchport:关闭交换机端口模式;ip address 192.168.1.254 255.255.255.0:配置接口IP地址;步骤阅读.6cisco交换机如何配置telnet,步骤六:接着配置PC机,切换到config标签页,点击底部的“FastEthernet”,然后配置静态的IP地址如下图所示。步骤阅读.7cisco交换机如何配置telnet,步骤七:然后配置PC机的网关。步骤阅读.8cisco交换机如何配置telnet,步骤八:接着调用PC机的cmd命令行程序。步骤阅读.9cisco交换机如何配置telnet,步骤九:输入ipconfig /all命令查看PC机的配置情况。步骤阅读.10cisco交换机如何配置telnet,步骤十:输入ping 192.168.1.254命令,查看网络连接情况,由下图可以发现网络已经联通了。步骤阅读.11cisco交换机如何配置telnet,步骤十一:接着telnet交换机:telnet 192.168.1.254然后输入账号密码和特权密码。
      cisco交换机怎么配telnet

      cisco基本配置命令

      Cisco 的交换机产品以“Catalyst ”为商标,包含1900 、2800 、2900 、3500 、4000 、5000 、5500 、6000 、8500 等十多个系列。基本配置命令如下:1、Switch>enable  进入特权模式2、Switch #config terminal  进入全局配置模式3、Switch(config)#hostname  设置交换机的主机名4、Switch(config)#enable password  进入特权模式的密码(明文形式保存)5、Switch(config)#enablesecret  加密密码(加密形式保存) (优先)6、Switch(config)#ipdefault-gateway  配置交换机网关7、Switch(config)#showmac-address-table  查看MAC地址8、Switch(config)loggingsynchronous  阻止控制台信息覆盖命令行上的输入9、Switch(config)no ipdomain-lookup  关闭DNS查找功能10、Switch(config)exec-timeout 00  阻止会话退出扩展资料:cisco常用配置命令:一、使用Telnet远程式管理1、Switch(config)#line vty 0 4  进入虚拟终端2、Switch (config-line)# password  设置登录口令3、Switch(config-line)# login  要求口令验证二、控制台口令1、switch(config)#lineconsole 0  进入控制台口2、switch(config-line)# password xx3、switch(config-line)#设置登录口令login  允许登录三、恢复出厂配置Switch(config)#erasestartup-configSwitch(config)delete vlan.dat
      思科CCNA实验常用的命令 路由器实验:router> enable         从用户模式进入特权模式router# disable or exit     从特权模式退出到用户模式router# show sessions      查看本机上的TELNET会话router# disconnect       关闭所有的TELNET会话router# show users       查看本机上的用户router# erase startup-config  删除NVRAM中的配置router# reload         重启路由器router# config terminal     从用户模式进入特权模式router(config)# hostname rl   配置用户名为rlrouter(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 ip domain-lookup     关闭动态域名解析rl(config)# ip domain-lookup  打开动态域名解析rl(config)# ip name-server 202.106.0.20 打开动态域名解析之后便可以指定DNS服务rl(config)# interface serial 0   进入serial 0的接口配置模式rl(config-if)# no shutdown  路由器出厂默认所有端口关闭,使用此命令使它们打开rl(config-if)# encapsulation ppp      封装ppprl(config-if)# clockrate 64000  如果是DCE使需要设置时钟速率,如果是DTE使不必设置rl(config-if)# bandwidth 64     设置端口带宽为64Krl(config-if)# ctrl+c 或者ctrl+z   快捷键退出到特权模式rl# show interface serial 0  查看s0信息,如果看到serial和 line protocol都显示up,说明链路两端都设置成功注意:如果出现serial down, line down 可能对方的端口没有打no shutdown或者电缆没有插好;如果出现serial up, line down 可能是DCE端没有设置clock rate, 也可能是封装格式不对rl# show cdp neighbors     查看CDP邻居信息rl# show cdp entry *rl(config-if)# ip add 10.0.0.1 255.0.0.0   进入相应的接口,配置相应的IP地址rl# ping 10.0.0.2        使用ping命令查看邻居的连通性rl# show ip route 查看路由表,可以看到以C打头的路由 信息,这是直连的路由信息;可以看到 R开头的路由信息,是从rip学来的路由 信息;可看到以I开头的路由信息取代 了以R开头的路由信息,这是因为igrp 的管理距离是100,小于rip的120rl(config-if)# router rip    启动RIP路由协议rl(config-router)# network 10.0.0.0  发布网段(注意network后面是接的网络号而不是IP地址)rl# show ip protocol      查看配置的路由协议rl(config)# router igrp 300  一定要注意在IGRP后面加自治系统号,考试的时候题目会告诉你AS NUMBER, 照敲就是rl(config-router)# network 10.0.0.0rl(config)# line vty0 4 进入虚拟线程配置模式,在此模式可对telnet功能进行配置rl(config-line)# loginrl(config-line)# password cisco 配置telnet密码,默认的网络设备 telnet的 功能是关闭的,配了密码之后会自动打开rl(config)# enable password cisco  配置进入enable模式的密码, 区分大小写rl(config)# enable secret ciscocisco 配置进入enable模式的密码,是加密的密码,show run是看不见的rl(config)# line console 0rl(config-line)# loginrl(config-line)# password cisco    配置进入用户模式的密码rl(config-line)# logging synchronous    输入同步rl(config-line)# exec-timeout 0 0    禁止因为一段时间没有输入而跳出rl# copy running-config startup-config  保存配置,考试的时候注意题目的要求,如果题目里要求你保存配置就一定不能少了这一项r1# copy tftp startup-configr1# copy running-config tftp r1# copy tftp flash
      ? 最基本的就是上面这个了,系统中,随时可以 ?
      ? 按问号就全都有了
      cisco基本配置命令

      求思科路由器的全部配置命令

      思科路由器的全部配置命令: 1、Exec commands:<1-99> 恢复一个会话bfe 手工应急模式设置clear 复位功能clock 管理系统时钟configure 进入设置模式connect 打开一个终端copy 从tftp服务器拷贝设置文件或把设置文件拷贝到tftp服务器上debug 调试功能disable 退出优先命令状态disconnect 断开一个网络连接enable 进入优先命令状态erase 擦除快闪内存exit 退出exce模式help 交互帮助系统的描述lat 打开一个本地传输连接lock 锁定终端login 以一个用户名登录logout 退出终端mbranch 向树形下端分支跟踪多路由广播mrbranch 向树形上端分支跟踪反向多路由广播name-connection 给一个存在的网络连接命名no 关闭调试功能pad 打开X.29 PAD连接ping 发送回显信息ppp 开始点到点的连接协议reload 停机并执行冷启动resume 恢复一个活动的网络连接rlogin 打开远程注册连接rsh 执行一个远端命令send 发送信息到另外的终端行setup 运行setup命令show 显示正在运行系统信息slip 开始SLIP协议start-chat 在命令行上执行对话描述systat 显示终端行的信息telnet 远程登录terminal 终端行参数test 测试子系统内存和端口tn3270 打开一个tin3270连接trace 跟踪路由到目的地undebug 退出调试功能verify 验证检查闪烁文件的总数where 显示活动的连接which-route 执行OSI路由表查找并显示结果write 把正在运行的设置写入内存、网络、或终端x3 在PAD上设置X.3参数xremote 进入xremote模式2、#show ?access-expression 显示访问控制表达式access-lists 显示访问控制表apollo Apollo 网络信息appletalk Apple Talk 信息arap 显示Appletalk 远端通道统计arp 地址解析协议表async 访问路由接口的终端行上的信息bridge 前向网络数据库buffers 缓冲池统计clns CLNS网络信息clock 显示系统时钟cmns 连接模式网络服务信息compress 显示压缩状态configuration 非易失性内存的内容controllers 端口控制状态debugging 调试选项状态decnet DEC网络信息dialer 拨号参数和统计dnsix 显示Dnsix/DMPP信息entry 排队终端入口extended 扩展端口信息flash 系统闪烁信息flh-log 闪烁装载帮助日志缓冲区frame-relay 帧中继信息history 显示对话层历史命令hosts IP域名,查找方式,名字服务,主机表interfaces 端口状态和设置ip IP信息ipx Novell IPX信息isis IS-IS路由信息keymap 终端键盘映射lat DEC LAT信息line 终端行信息llc2 IBM LLC2 环路信息lnm IBM 局网管理local-ack 本地认知虚环路memory 内存统计netbios-cache NetBios命名缓冲存贮器内存node 显示已知LAT节点ntp 网络时间协议processes 活动进程统计protocols 活动网络路由协议queue 显示队列内容queueing 显示队列设置registry 功能注册信息rhosts 远程主机文件rif RIF存贮器入口route-map 路由器信息sdlle 显示sdlc-llc2转换信息services 已知LAT服务sessions 远程连接信息smds SMDS信息source-bridge 源网桥参数和统计spanning-tree 跨越树形拓朴stacks 进程堆栈应用standby 热支持协议信息stun STUN状态和设置subsystem 显示子系统tcp TCP连接状态terminal 显示终端设置tn3270 TN3270 设置translate 协议转换信息ttycap 终端容易表users 显示终端行的信息version 系统硬、软件状态vines VINES信息whoami 当前终端行信息x25 X.25信息xns XNS信息xermote Xremote统计3、#config ?Memory 从非易失性内存设置Network 从TFTP网络主机设置Overwrite-network 从TFTP网络主机设置覆盖非易失性内存Terminal 从终端设置4、Configure commads:Access-list 增加一个访问控制域Apollo Apollo全局设置命令appletalk Appletalk 全局设置命令arap Appletalk远程进出协议arp 设置一个静态ARP入口async-bootp 修改系统启动参数autonomous-system 本地所拥有的特殊自治系统成员banner 定义注册显示信息boot 修改系统启动时参数bridge 透明网桥buffers 调整系统缓冲池参数busy-message 定义当连接主机失败时显示信息chat-script 定义一个调制解调器对话文本clns 全局CLNS设置子命令clock 设置时间时钟config-register 定义设置寄存器decnet 全局DEC网络设置子命令default-value 缺省字符位值dialer-list 创建一个拨号清单入口dnsix-nat 为审计提供DMDM服务enable 修改优先命令口令end 从设置模式退出exit 从设置模式退出frame-relay 全局帧中继设置命令help 交互帮助系统的描述hostname 设置系统网络名iterface 选择设置的端口ip 全局地址设置子命令ipx Novell/IPX全局设置命令keymap 定义一个新的键盘映射lat DEC本地传输协议line 设置终端行lnm IBM局网管理locaddr-priority-list 在LU地址上建立优先队列logging 修改注册(设备)信息login-string 定义主机指定的注册字符串map-class 设置静态表类map-list 设置静态表清单menu 定义用户接口菜单mop 设置DEC MOP服务器netbios NETBIOS通道控制过滤no 否定一个命令或改为缺省设置ntp 设置NTPpriority-list 建立特权列表prompt 设置系统提示符queue-list 建立常规队列列表rcmd 远程命令设置命令rcp-enable 打开Rep服务rif 源路由进程router-map 建立路由表或进入路由表命令模式router 打开一个路由进程rsh-enable 打开一个RSH服务sap-priority-list 在SAP或MAC地址上建立一个优先队列service 修改网络基本服务snmp-server 修改SNMP参数state-machine 定义一个TCP分配状态的机器stun STUN全局设置命令tacacs-server 修改TACACS队列参数terminal-queue 终端队列命令tftp-server 为网络装载请求提供TFTP服务tn3270 tn3270设置命令translate 解释全局设置命令username 建立一个用户名及其权限vines VINES全局设置命令x25 X.25 的第三级x29 X.29 命令xns XNS 全局设置命令xremote 设置Xremote5、(config)#ipGlobal IP configuration subcommands:Accounting-list 选择保存IP记帐信息的主机Accounting-threshold 设置记帐入口的最大数accounting-transits 设置通过入口的最大数alias TCP端口的IP地址取别名as-path BGP自治系统路径过滤cache-invalidate-delay 延迟IP路由存贮池的无效classless 跟随无类前向路由规则default-network 标志网络作为缺省网关候选default-gateway 指定缺省网(如果没有路由IP)domain-list 完成无资格主机的域名domain-lookup 打开IP域名服务系统主机转换domain-name 定义缺省域名forward-protocol 控制前向的、物理的、直接的IP广播host 为IP主机表增加一个入口host-routing 打开基于主机的路由(代理ARP和再定向)hp-host 打开HP代理探测服务mobile-host 移动主机数据库multicast-routing 打开前向IPname-server 指定所用名字服务器的地址ospf-name-lookup 把OSPF路由作为DNS名显示pim PIM 全局命令route 建立静态路由routing 打开IP路由security 指定系统安全信息source-route 根据源路由头的选择处理包subnet-zero 允许子网0子网 tcp 全局TCP参数
      思科路由器常用配置命令一览表: 1、Exec commands:<1-99> 恢复一个会话bfe 手工应急模式设置clear 复位功能clock 管理系统时钟configure 进入设置模式connect 打开一个终端copy 从tftp服务器拷贝设置文件或把设置文件拷贝到tftp服务器上debug 调试功能disable 退出优先命令状态disconnect 断开一个网络连接enable 进入优先命令状态erase 擦除快闪内存exit 退出exce模式help 交互帮助系统的描述lat 打开一个本地传输连接lock 锁定终端login 以一个用户名登录logout 退出终端mbranch 向树形下端分支跟踪多路由广播mrbranch 向树形上端分支跟踪反向多路由广播name-connection 给一个存在的网络连接命名no 关闭调试功能pad 打开X.29 PAD连接ping 发送回显信息ppp 开始点到点的连接协议reload 停机并执行冷启动resume 恢复一个活动的网络连接rlogin 打开远程注册连接rsh 执行一个远端命令send 发送信息到另外的终端行setup 运行setup命令show 显示正在运行系统信息slip 开始SLIP协议start-chat 在命令行上执行对话描述systat 显示终端行的信息telnet 远程登录terminal 终端行参数test 测试子系统内存和端口tn3270 打开一个tin3270连接trace 跟踪路由到目的地undebug 退出调试功能verify 验证检查闪烁文件的总数where 显示活动的连接which-route 执行OSI路由表查找并显示结果write 把正在运行的设置写入内存、网络、或终端x3 在PAD上设置X.3参数xremote 进入xremote模式2、#show ?access-expression 显示访问控制表达式access-lists 显示访问控制表apollo Apollo 网络信息appletalk Apple Talk 信息arap 显示Appletalk 远端通道统计arp 地址解析协议表async 访问路由接口的终端行上的信息bridge 前向网络数据库buffers 缓冲池统计clns CLNS网络信息clock 显示系统时钟cmns 连接模式网络服务信息compress 显示压缩状态configuration 非易失性内存的内容controllers 端口控制状态debugging 调试选项状态decnet DEC网络信息dialer 拨号参数和统计dnsix 显示Dnsix/DMPP信息entry 排队终端入口extended 扩展端口信息flash 系统闪烁信息flh-log 闪烁装载帮助日志缓冲区frame-relay 帧中继信息history 显示对话层历史命令hosts IP域名,查找方式,名字服务,主机表interfaces 端口状态和设置ip IP信息ipx Novell IPX信息isis IS-IS路由信息keymap 终端键盘映射lat DEC LAT信息line 终端行信息llc2 IBM LLC2 环路信息lnm IBM 局网管理local-ack 本地认知虚环路memory 内存统计netbios-cache NetBios命名缓冲存贮器内存node 显示已知LAT节点ntp 网络时间协议processes 活动进程统计protocols 活动网络路由协议queue 显示队列内容queueing 显示队列设置registry 功能注册信息rhosts 远程主机文件rif RIF存贮器入口route-map 路由器信息sdlle 显示sdlc-llc2转换信息services 已知LAT服务sessions 远程连接信息smds SMDS信息source-bridge 源网桥参数和统计spanning-tree 跨越树形拓朴stacks 进程堆栈应用standby 热支持协议信息stun STUN状态和设置subsystem 显示子系统tcp TCP连接状态terminal 显示终端设置tn3270 TN3270 设置translate 协议转换信息ttycap 终端容易表users 显示终端行的信息version 系统硬、软件状态vines VINES信息whoami 当前终端行信息x25 X.25信息xns XNS信息xermote Xremote统计3、#config ?Memory 从非易失性内存设置Network 从TFTP网络主机设置Overwrite-network 从TFTP网络主机设置覆盖非易失性内存Terminal 从终端设置4、Configure commads:Access-list 增加一个访问控制域Apollo Apollo全局设置命令appletalk Appletalk 全局设置命令arap Appletalk远程进出协议arp 设置一个静态ARP入口async-bootp 修改系统启动参数autonomous-system 本地所拥有的特殊自治系统成员banner 定义注册显示信息boot 修改系统启动时参数bridge 透明网桥buffers 调整系统缓冲池参数busy-message 定义当连接主机失败时显示信息chat-script 定义一个调制解调器对话文本clns 全局CLNS设置子命令clock 设置时间时钟config-register 定义设置寄存器decnet 全局DEC网络设置子命令default-value 缺省字符位值dialer-list 创建一个拨号清单入口dnsix-nat 为审计提供DMDM服务enable 修改优先命令口令end 从设置模式退出exit 从设置模式退出frame-relay 全局帧中继设置命令help 交互帮助系统的描述hostname 设置系统网络名iterface 选择设置的端口ip 全局地址设置子命令ipx Novell/IPX全局设置命令keymap 定义一个新的键盘映射lat DEC本地传输协议line 设置终端行lnm IBM局网管理locaddr-priority-list 在LU地址上建立优先队列logging 修改注册(设备)信息login-string 定义主机指定的注册字符串map-class 设置静态表类map-list 设置静态表清单menu 定义用户接口菜单mop 设置DEC MOP服务器netbios NETBIOS通道控制过滤no 否定一个命令或改为缺省设置ntp 设置NTPpriority-list 建立特权列表prompt 设置系统提示符queue-list 建立常规队列列表rcmd 远程命令设置命令rcp-enable 打开Rep服务rif 源路由进程router-map 建立路由表或进入路由表命令模式router 打开一个路由进程rsh-enable 打开一个RSH服务sap-priority-list 在SAP或MAC地址上建立一个优先队列service 修改网络基本服务snmp-server 修改SNMP参数state-machine 定义一个TCP分配状态的机器stun STUN全局设置命令tacacs-server 修改TACACS队列参数terminal-queue 终端队列命令tftp-server 为网络装载请求提供TFTP服务tn3270 tn3270设置命令translate 解释全局设置命令username 建立一个用户名及其权限vines VINES全局设置命令x25 X.25 的第三级x29 X.29 命令xns XNS 全局设置命令xremote 设置Xremote5、(config)#ipGlobal IP configuration subcommands:Accounting-list 选择保存IP记帐信息的主机Accounting-threshold 设置记帐入口的最大数accounting-transits 设置通过入口的最大数alias TCP端口的IP地址取别名as-path BGP自治系统路径过滤cache-invalidate-delay 延迟IP路由存贮池的无效classless 跟随无类前向路由规则default-network 标志网络作为缺省网关候选default-gateway 指定缺省网(如果没有路由IP)domain-list 完成无资格主机的域名domain-lookup 打开IP域名服务系统主机转换domain-name 定义缺省域名forward-protocol 控制前向的、物理的、直接的IP广播host 为IP主机表增加一个入口host-routing 打开基于主机的路由(代理ARP和再定向)hp-host 打开HP代理探测服务mobile-host 移动主机数据库multicast-routing 打开前向IPname-server 指定所用名字服务器的地址ospf-name-lookup 把OSPF路由作为DNS名显示pim PIM 全局命令route 建立静态路由routing 打开IP路由security 指定系统安全信息source-route 根据源路由头的选择处理包subnet-zero 允许子网0子网 tcp 全局TCP参数
      .在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto}switch(enable) set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]12. 在基于IOS的交换机上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}]在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定: switch(enable) show mls include
      Cisco路由配置语句汇总  启动接口,分配IP地址:  router>  router> enable  router#  router# configure terminal  router(config)#  router(config)# interface Type Port  router(config-if)# no shutdown  router(config-if)# ip address IP-Address Subnet-Mask  router(config-if)# ^z  配置RIP路由协议:30秒更新一次  router(config)# router rip  router(config-if)# network Network-Number <--通告标准A,B,C类网-->  router(config-if)# ^z  配置IGRP路由协议:90秒更新一次  router(config)# router igrp AS-Number <-- AS-Number范围1~65535-->  router(config-if)# network Network-Number <--通告标准A,B,C类网-->  router(config-if)# ^z  配置Novell IPX路由协议:Novell RIP 60秒更新一次  router(config)# ipx routing [node address]  router(config)# ipx maximum-paths Paths <--设置负载平衡,范围1~512-->  router(config)# interface Type Port  router(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] <--通告标准A,B,C类网-->  router(config-if)# ^z  配置DDR:  router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number]  router(config)# interface bri 0  router(config-if)# dialer-group Group-Number  router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number  router(config-if)# ^z  配置ISDN:  router(config)# isdnth-typeth-Type <--配置ISDN交换机类型,中国使用basic-net3-->  router(config-if)# ^z  配置Frame Relay:  router(config-if)# encapsulation frame-relay [cisco | ietf ]  router(config-if)# frame-relay lmi-type [ansi | cisco | q933a ]  router(config-if)# bandwidth kilobits  router(config-if)# frame-relay invers-arp [ Protocol ] [dlci ]  <--配置静态Invers ARP表:  router(config)# frame-relay Protocol Protocol-Address DLCI [ Broadcast ] [ ietf | cisco ] [ payload-compress | packet-by-packet ]  -->  <--设置Keepalive间隔:  router(config-if)# keepalive Number  -->  <--为本地接口指定DLCI:  router(config-if)# frame-lelay local-dlci Number  -->  <--子接口配置:  router(config-if)# interface Type Port.Subininterface-Number [ multipoint | point-to-point ]  router(config-subif)# ip unnumbered Interface  router(config-subif)# frame-lelay local-dlci Number  -->  router(config-if)# ^z  配置标准ACL:  router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] <-- Access-List-Number 范围:1~99标准ACL;100~199扩展ACL;800~899标准IPX ACL;900~999扩展IPX ACL;1000~1099 IPX SAP ACL;600~699Apple Talk ACL-->  router(config)# interface Type Port  router(config-if)# ip access-group Access-List-Number [ in | out ]  router(config-if)# ^z  配置扩展ACL:  router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ]  router(config)# interface Type Port  router(config-if)# ip access-group Access-List-Number [ in | out ]  router(config-if)# ^z  配置命名ACL:  router(config)# ip access-list [ standard | extended ] ACL-Name  router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ]  router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ]  router(config [ std- | ext- ] nacl)# ^z  router(config)# interface Type Port  router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ]  router(config-if)# ^z
      求思科路由器的全部配置命令

      在cisco路由器上设置TELNET的命令

      在cisco路由器上设置TELNET的命令的操作方法和步骤如下:1、第一步,在思科软件中放置两个路由器。然后在路由器下方输入名称和IP地址,如下图所示,然后进入下一步。2、其次,完成上述步骤后,进入路由器R1的“CLI”窗口。在“f0 / 0”接口上配置R1 IP地址,如下图所示,然后进入下一步。3、接着,完成上述步骤后,进入“line”模式并配置密码。   然后使用login命令来调用“启动”密码,如下图所示,然后进入下一步。4、然后,完成上述步骤后,在R2路由器中,配置IP地址。随后,使用“Telnet”命令测试两个路由器的连通性,如下图所示,然后进入下一步。5、随后,完成上述步骤后,在R2中为R1配置静态主机名,具体的命令代码如下图红框标注所示,然后进入下一步。6、最后,完成上述步骤后,就可以在R2中进行“远程登录”和“ping”测试了,如下图所示。这样,问题就解决了。
      1、首先在Cisco软件中,放置两个路由器。然后在路由器的下面输入名字和ip地址。2、然后进入到路由器R1的CLI窗口中。在f0/0接口中配置R1的IP地址。3、再进入到line模式中,配置密码。再用login命令调用启动密码。4、在R2路由器中,配置ip地址。再用Telnet命令,试验两个路由器的连通性。5、在R2中配置针对R1的静态Hostname。命令为ip host R1 192.168.1.1。6、然后R2中进行远程登录和ping测验即可。
      en conf tenable password "password"line vty 0 4password "password"loginend 这样敲一下就可以了!注意两个密码不要搞错了,telnet上去的时候先输入vty的密码,进去特权模式的时候输入enable密码!
      在cisco路由器上设置TELNET的命令

      本文由 在线网速测试 整理编辑,转载请注明出处,原文链接:https://www.wangsu123.cn/news/309352.html

          热门文章

          文章分类