成都大学教学用思科交换机路由器配置命令_思科交换机路由命令

2020-02-26 教学心得体会 下载本文

成都大学教学用思科交换机路由器配置命令由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“思科交换机路由命令”。

成都大学思科路由器教学资料 思科Cisco交换机、路由器设置命令 Lzshihj_tz2f_3550

交换机口令设置:

switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名

switch(config)#enable secret xxx ;设置特权加密口令为 xxx

switch(config)#enable paword xxx ;设置特权非密口令为 xxx

switch(config)#line console 0 ;进控制台口(Rs232)初始化

switch(config-line)#line vty 0 4 ;进入虚拟终端virtual tty

switch(config-line)#login ;允许登录

switch(config-line)#paword xx ;设置登录口令xx switch#exit ;返回命令

交换机VLAN设置:

switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport acce vlan 2 ;当前端口1加入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)#vtp domain;设置发vtp域名 switch(config)#vtp paword switch(config)#vtp mode server switch(config)#vtp mode client

交换机设置IP地址:

switch(config)#interface vlan 1 ;进入vlan 1

switch(config-if)#ip addre ;添加远程登录IP switch(config)#ip default-gateway ;添加默认网关

switch#dir flash: ;查看内存

交换机显示命令:

switch#write ;写入保存 switch#show vtp switch#show run ;查看当前配置信息 switch#show vlan ;看VLAN switch#show interface ;显示所有端口信息

switch#show int f0/0 ;显示端口0的信息 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 路由器显示命令:

router#show run ;显示接口 router#show interface ;显示接口 router#show ip route ;显示路由 router#show cdp nei ;看邻居 router#reload

;重新起动

设置口令:

router>enable ;进入特权模式 router#config terminal ;进入全局配置模式 router(config)#hostname ;设置交换机的主机名

router(config)#enable secret xxx ;设置特权加密口令为 xxx

router(config)#enable paword xxx ;设置特权非密口令为 xxx

router(config)#line console 0 ;进控制台口(Rs232)初始化

router(config-line)#line vty 0 4 ;进入虚拟终端virtual tty

router(config-line)#login ;允许登录

router(config-line)#paword xx ;设置登录口令xx router(config)#(Ctrl+z);返回特权模式 router#exit ;返回命令

配置IP地址:

router(config)#int s0/0 ;进行串Serail接口

router(config-if)#no shutdown ;起动接口 router(config-if)#clock rate 64000 ;设置时钟

router(config-if)#ip addre 10.1.1.1 255.255.0.0 ;设置IP地址和子网掩码

router(config-if)#ip add 10.1.1.2 255.255.0.0 second;

router(config-if)#int f0/0.1;进入子接口 router(config-subif.1)#ip addre ; router(config-subif.1)#encapsulation dot1q ;

router(config)#config-register 0x2142 ;跳过配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引导 复制操作:

router#copy running-config startup-config ;存配置 router#copy running-config tftp ;上载 router#copy startup-config tftp

router#copy tftp flash: ;特权模式下升级IOS

router#copy tftp startup-config

;下载配置文件到nvram

ROM状态:

Ctrl+Break ;进入ROM监控状态

rommon>confreg 0x2142 ;跳过配置,26 36 45xx

rommon>confreg 0x2102 ;使用配置,恢复工作状态

rommon>reset

;重新引导,等效于重开机

rommon>copy xmodem: flash: ;从console升级IOS

rommon>IP_ADDRESS=10.65.1.2 ;设置路由器IP rommon>IP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码 rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服务器IP

rommon>TFTP_FILE=c2600.bin ;所要下载的文件 rommon>tftpdnld ;ROM监控状态下升级IOS

rommon>dir flash: ;查看闪存中的内容 rommon>boot ;引导IOS

静态路由:

ip route 例: router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1 router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2

动态路由:

router(config)#ip routing ;启动路由 router(config)#router rip ;启动RIP路由协议。router(config-router)#network ;配置范围,有的支持all。

router(config-router)#negihbor ;点对点 帧中继用。

帧中继命令:

router(config)# frame-relay switching ;使能帧中继交换 router(config-s0)# encapsulation frame-relay ;使能帧中继

router(config-s0)# frame-relay intf-type DCE ;DCE端(需要配虚电路)

router(config-s0)# frame-relay local-dlci 20 ;配置虚电路号

基本访问控制列表:

router(config)#acce-list permit|deny router(config)#interface ;default: deny any router(config-if)#ip acce-group in|out ;default: out

例:

RB(config)#acce-list 4 permit 10.8.1.1

RB(config)#acce-list 4 deny 10.8.1.0 0.0.0.255

RB(config)#acce-list 4 permit 10.8.0.0 0.0.255.255 RB(config)#acce-list 4 deny 10.0.0.0 0.255.255.255 RB(config)#acce-list 4 permit any RB(config)#int f0/0

RB(config-if)#ip acce-group 4 in

扩展访问控制列表:

acce-list permit|deny icmp [type]

acce-list permit|deny tcp [port] 例1:

router(config)#acce-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo router(config)#acce-list 101 permit ip any any router(config)#int s0/0

router(config-if)#ip acce-group 101 in 例2:

router(config)#acce-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80 router(config)#acce-list 102 permit ip any any router(config)#interface s0/1

router(config-if)#ip acce-group 102 out

router(config)#no acce-list 102

router(config-if)#no ip acce-group 101 in

在路由器上设置 SNMP Community Strings

router(config)# snmp-server community read-community-string ro

router(config)# snmp-server community write-community-string rw

在交换机上设置 SNMP Community Strings

switch(config)# snmp-server community read-community-string ro

switch(config)# snmp-server community write-community-string rw

在路由器上配置日志信息(Syslog Meage Logging)

router(config)# logging on

router(config)# logging server-ip-addre router(config)# logging trap severity-level 路由器恢复出厂设置

erase start-config 或write erase 或erase NVROM

思科交换机配置命令总结

思科交换机配置命令总结1.switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上......

交换机路由器配置总结

交换机和路由器配置过程总结作为网络中重要的硬件设备,随着网络融入我们的日常生活,交换机和路由器也逐渐被人们所熟悉。关于交换机、路由器的配置,计算机和网络专业的学生理应......

教学—路由器基本配置命令

1、路由器模式的转换:用户模式: router> 权限低,只能查看,输入“enable ”命令进入到特权模式特权模式: router#权限高,输入“configure terminal” 命令进入到全局模式全局模式......

思科三层交换机配置总结

思科交换机的基本配置命令学习CISCO交换机基本配置:Console端口连接 用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ; 交换机口令设置:switc......

思科模拟器配置命令总结

思科模拟器配置命令总结思科模拟器配置命令总结相同VLAN间的通信Switch0与Switch1配置命令相同:Switch#conf tSwitch(config)#vlan 10Switch(config-vlan)#exSwitch(config)......

《成都大学教学用思科交换机路由器配置命令.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
成都大学教学用思科交换机路由器配置命令
点击下载文档
相关专题 思科交换机路由命令 大学 命令 思科 思科交换机路由命令 大学 命令 思科
[教学心得体会]相关推荐
[教学心得体会]热门文章
下载全文