思科rip详细配置教程

思科rip详细配置教程
思科rip详细配置教程

BY: 小福仔更多教程请进

https://www.360docs.net/doc/7e9887097.html,/492311578配置RIP 时,必须注意IP的规划问题。

RIP 不支持可变长子网。

RIP 配置命令

全局模式下route rip

Network A.B.C.D

IP 配置

PC0

172.16.10.2网关172.16.10.1

PC1

172.17.10.1 网关172.17.10.1

R1 配置

R1(config)#int s0/0

R1(config-if)#no shu

%LINK-5-CHANGED: Interface Serial0/0, changed state to down

R1(config-if)#ip address 192.168.10.1 255.255.255.0

R1(config-if)#clock rate 64000

R1(config-if)#exit

R1(config)#int s0/1

R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1, changed state to down

R1(config-if)#ip address 192.168.20.1 255.255.255.0

R1(config-if)#clock rate 64000

R1(config)#route rip

R1(config-router)#network 192.168.10.0

R1(config-router)#network 192.168.20.0

R2 配置

R2(config)#int s0/0

R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0, changed state to up

R2(config-if)#ip address 192.168.

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

^

% Invalid input detected at '^' marker.

R2(config-if)#ip address 192.168.1.2 255.255.255.0

R2(config-if)#exit

R2(config)#int f0/0

R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#ip address 172.16.10.1 255.255.0.0

R2(config-if)#exit

R2(config)#int s0/0

R2(config-if)#no shutdown

R2(config-if)#ip address 192.168.10.2 255.255.255.0

R2(config-if)#exit

R2(config)#router rip

R2(config-router)#network 192.168.10.0

R2(config-router)#network 172.16.0.0

R3路由配置

R3(config)#int s0/1

R3(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

^

R3(config-if)#ip address 192.168.20.2 255.255.255.0

R3(config-if)#exit

R3(config)#int f0/0

R3(config-if)#no shu

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#ip address 172.17.10.1 255.255.0.0

R3(config-if)#exit

R3(config)#route rip

R3(config-router)#network 192.168.20.0

R3(config-router)#network 172.17.0.0

查看路由表

R1

R1#show ip route

R 172.16.0.0/16 [120/1] via 192.168.10.2, 00:00:16, Serial0/0

R 172.17.0.0/16 [120/1] via 192.168.20.2, 00:00:14, Serial0/1

C 192.168.10.0/24 is directly connected, Serial0/0

C 192.168.20.0/24 is directly connected, Serial0/1

R2

R2#show ip route

C 172.16.0.0/16 is directly connected, FastEthernet0/0

R 172.17.0.0/16 [120/2] via 192.168.10.1, 00:00:18, Serial0/0 C 192.168.10.0/24 is directly connected, Serial0/0

R 192.168.20.0/24 [120/1] via 192.168.10.1, 00:00:18, Serial0/0

R3

R3#show ip route

R 172.16.0.0/16 [120/2] via 192.168.20.1, 00:00:07, Serial0/1 C 172.17.0.0/16 is directly connected, FastEthernet0/0

R 192.168.10.0/24 [120/1] via 192.168.20.1, 00:00:07, Serial0/1 C 192.168.20.0/24 is directly connected, Serial0/1

测试

PC0 >>PC1

PC>ping 172.17.10.2

Pinging 172.17.10.2 with 32 bytes of data:

Reply from 172.17.10.2: bytes=32 time=125ms TTL=125

Reply from 172.17.10.2: bytes=32 time=125ms TTL=125

Reply from 172.17.10.2: bytes=32 time=125ms TTL=125

Reply from 172.17.10.2: bytes=32 time=124ms TTL=125

Ping statistics for 172.17.10.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:

Minimum = 124ms, Maximum = 125ms, Average = 124ms

PC1>>>PC0

PC>ping 172.16.10.2

Pinging 172.16.10.2 with 32 bytes of data:

Reply from 172.16.10.2: bytes=32 time=141ms TTL=125 Reply from 172.16.10.2: bytes=32 time=109ms TTL=125 Reply from 172.16.10.2: bytes=32 time=125ms TTL=125 Reply from 172.16.10.2: bytes=32 time=109ms TTL=125

Ping statistics for 172.16.10.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:

Minimum = 109ms, Maximum = 141ms, Average = 121ms

BY: 小福仔更多教程请进

https://www.360docs.net/doc/7e9887097.html,/492311578

思科交换机配置维护手册

思科交换机配置维护手册

目录

一、端口配置 1.1 配置一组端口 当使用interface range命令时有如下的规则: ?有效的组范围: o vlan从1 到4094 o fastethernet槽位/{first port} - {last port}, 槽位为0 o gigabitethernet槽位/{first port} - {last port},槽位为0 o port-channel port-channel-number - port-channel-number, port-channel号从1到64 ?端口号之间需要加入空格,如:interface range fastethernet 0/1 – 5是有效的,而interface range fastethernet 0/1-5是无效的. ?interface range命令只能配置已经存在的interface vlan ?所有在同一组的端口必须是相同类别的。

见以下例子: Switch# configure terminal Switch(config)# interface range fastethernet0/1 - 5 Switch(config-if-range)# no shutdown 以下的例子显示使用句号来配置不同类型端口的组: Switch# configure terminal Switch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown 1.2 配置二层端口 1.2.1 配置端口速率及双工模式

思科设备路由器rip协议配置

本次讲解路由器rip协议的配置: RIP是基于D-V算法的路由协议,使用跳数(Hop Count)来表示度量值(Metric)。跳数是一个数据报到达目标所必须经过的路由器的数目。 RIP认为跳数少的路径为最优路径。路由器收集所有可达目标网络的路径,从中选择去往同一个网络所用跳数最少的路径信息,生成路由表;然后把所能收集到的路由(路径)信息中的跳数加1后生成路由更新通告,发送给相邻路由器:最后依次逐渐扩散到全网。RIP每30s发送一次路由信息更新。 本例配置模型图 命令行: RA命令配置: Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#router rip //使用rip协议 R1(config-router)#version 2 //使用RIPv2版本 R1(config-router)#network 192.1.1.0 255.255.255.0 //指定与该路由器直接相连的网络 R1(config-router)# network 202.1.1.5 //指定与该路由器直接相连的网络

R1(config-router)#no shutdown R1(config-router)#exit R1#show ip route //查看路由信息 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set //目前没有配置RB路由器,所以上述没有rip协议的配置生成 R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int s1/0 R1(config-if)#ip address 202.1.1.5 255.255.255.252 //将模型图中的IP配置划分到对应端口R1(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/0, changed state to down R1(config-if)#exit R1(config)#int f0/0 R1(config-if)#ip address 192.1.1.1 255.255.255.0 //将模型图中的IP配置划分到对应端口R1(config-if)#clock rate 64000 //配置时钟模式DCE端 R1(config-if)#bandwidth 64 R1(config-if)#no shutdown R1#wr Building configuration... [OK] RB命令配置: Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router rip //使用rip协议 Router(config-router)#version 2 //使用rip协议v2版本 Router(config-router)#network 192.168.2.0 //指定与该路由器直接相连的网络

思科基本配置命令详解

思科交换机基本配置实例讲解

目录 1、基本概念介绍............................................... 2、密码、登陆等基本配置....................................... 3、CISCO设备端口配置详解...................................... 4、VLAN的规划及配置........................................... 4.1核心交换机的相关配置..................................... 4.2接入交换机的相关配置..................................... 5、配置交换机的路由功能....................................... 6、配置交换机的DHCP功能...................................... 7、常用排错命令...............................................

1、基本概念介绍 IOS: 互联网操作系统,也就是交换机和路由器中用的操作系统VLAN: 虚拟lan VTP: VLAN TRUNK PROTOCOL DHCP: 动态主机配置协议 ACL:访问控制列表 三层交换机:具有三层路由转发能力的交换机 本教程中“#”后的蓝色文字为注释内容。 2、密码、登陆等基本配置 本节介绍的内容为cisco路由器或者交换机的基本配置,在目前版本的cisco交换机或路由器上的这些命令是通用的。本教程用的是cisco的模拟器做的介绍,一些具体的端口显示或许与你们实际的设备不符,但这并不影响基本配置命令的执行。 Cisco 3640 (R4700) processor (revision 0xFF) with 124928K/6144K bytes of memory. Processor board ID 00000000 R4700 CPU at 100MHz, Implementation 33, Rev 1.2

思科交换机配置教程详解

思科交换机配置教程详解 你还在为不知道思科交换机配置教程详解而烦恼么?接下来是小编为大家收集的思科交换机配置教程详解教程,希望能帮到大家。 思科交换机配置教程详解的方法 1、基本概念介绍 IOS: 互联网操作系统,也是交换机和路由器中用的操作系统 VLAN: 虚拟lan VTP: VLAN TRUNK PROTOCOL

DHCP: 动态主机配置协议 ACL:访问控制列表 三层交换机:具有三层路由转发能力的交换机 2、密码、登陆等基本配置 本节介绍的内容为cisco路由器或者交换机的基本配置,在目前版本的cisco交换机或路由器上的这些命令是通用的。本教程用的是cisco的模拟器做的介绍,一些具体的端口显示或许与你们实际的设备不符,但这并不影响基本配置命令的执行。 3、cisco设备端口配置详解 4、vlan的规划及配置 在本节中我们讲解vlan的规划及具体的配置命令。在此例中我们用的是vtp(VLAN Trunking Protocol)server的模式,在这种模式中我们需要配置核心交换机的vtp模式为server,各接入交换机的vtp模式为cilent,那么配置完成后接入交换机会通过trunk口自动从核心交换机学习到所有的vlan配置信息。在接入交换机中只

需要添加相应的端口即可,这样易于管理与部署。具体的配置命令我们通过两小节来演示: 4.1 核心交换机的相关配置 4.2 接入交换机的相关配置 5、配置交换机的路由功能 说明:只有在三层交换机上才有路由功能,其他的二层接入交换机要想在不同的vlan之间传送数据需要通过trunk口到核心交换机上进行完路由交换后才可以。 6、配置交换机的DHCP功能 7、常用排错命令 看了“思科交换机配置教程详解”还看了: 1.思科交换机的基本配置详解 2.思科交换机配置命令教程

思科配置HSRP、ospf,rip,NAT,ACL.以及定时ACL配置和路由重分发大型网络综合实验题

1.设备之间的地址如图所示,按照拓扑图配置IP地址 2.R1和R2之间属于area 8,R1和SW1,SW2之间属于area 0,SW1和SW2上所有VLAN 接口属于area 10.SW1和R3之间是属于RIP区域的。要求配置RIP和OSPF实现网络之间能够通信。把Area 8配置完全末梢区域 3.在R3上存在着10.100.0.0/24到10.100.7.0/24这8个网段。要求在R1上看到这8个 网段是汇总的。 4.在SW1、SW2、SW3、SW4上配置VTP,SW1和SW2是server模式,SW3和SW4是客户机模 式。域名为benet,密码为cisco。添加VLAN 10、VLAN 50、VLAN 80、VLAN 90这4个VLAN 5.另外在SW1和SW2上配置HSRP,要求SW1是VLAN 10和VLAN 50的活跃路由器,SW2是 VLAN 80和VLAN 90的活跃路由器 6.配置PVST实现流量的负载均衡,在配置PVST时请注意与HSRP对应 7.R4是模拟ISP在R4上配置LO0:200.1.20.1/24,在R1上配置PAT实现内网的所有PC 能够去访问200.1.20.1这个地址。另外实现R4可以telnet到Server上 8.配置ACL要求在周一到周五的8:30到17:30之间禁止员工去登录QQ,除此以外在所有 时间段要求保证员工能够正常的去访问外网的WWW,FTP,SMTP,TELNET这些服务,禁止员工去访问其他的服务。 我先用GNS3搭建起来的拓扑图

注意,实验说明: 本文中的所有命令都是简写的,因为思科的命令都是支持简写的先敲所有网络设备的预配命令先 En Config t Enable password 1234 No ip domain-lo Line con 0 Password 1234 No exec-t Logging syn 配置地址 R1 Inter f0/0 Ip add 10.255.0.5 255.255.255.252 No shut Inter f1/0 Ip add 10.255.0.9 255.255.255.252 No shut Inter f2/0 Ip add 10.255.0.1 255.255.255.252 No shut

思科交换机密码设置方法

思科交换机密码设置方法 一.设置console密码 >enable #configure trminal (confing)#line console 0←console口 ①(config-line)#password (cisco)←密码 (config-line)#login ←一定不能少的. console密码设置完成 exit 二:设置全局密码 enadle #configure terminal ②(config)#enable secret (class)←密码 (config)#login 全局密码设置完成 exit 三.设置远程登入(telnet)密码 enable #config terminal (config)#line vty 0 4(0 4是指同时登录人数) ③(config-line)#password (class)←密码 (config-lline)#login exit 四.保存以上设置 >enadle #copy running-config strat-config 思科交换机密码的破解 ⒈连接交换机的console口到终端或PC仿真终端。用无Modem的直连线连接PC的串行口到交换机的console口。 ⒉首先得拔掉电源,因为思科交换机上没有开关所以我们只能拔掉电源接下来我们要做的就是按住MODE按钮接着插上电源等端口指示灯灭掉松开 ⒊初始化flash。 >flash_init ⒋更名含有password的配置文件。 >rename flash:config.text flash:config.old ⒌启动交换机。 >boot ⒍进入特权模式。 >enable ⒎此时开机是已忽略password。 #rename flash:config.old flash:config.text ⒏copy配置文件到当前系统中。 #copy flash:config.text system:running-config ⒐修改口令。 #configure terminal #enable secret ⒑保存配置。 #write

ripv2配置(cisco)

1.5教学实验 1.5配置基本RIP实验 1.5.1 实验主题:配置基本RIP 1.5.2 实验目的 ●进一步掌握路由器的基本配置 ●熟练在路由器进行RIPv1/v2的配置 ●学会通过Show、Debug命令对路由器进行分析,加深理解。 1.5.3实验拓扑 IP地址分配: R1: F0/0: 191.16.1.254 255.255.255.0 S0/0: 12.12.12.1 255.255.255.0 LOOPBACK1: 171.16.1.1 255.255.255.0 LO2: 171.16.2.1 255.255.255.0 LO3: 171.16.3.1 255.255.255.0

F0/0: 192.16.1.254 255.255.255.0 S0/0: 23.23.23.2 255.255.255.0 S0/1: 12.12.12.2 255.255.255.0 LO1: 172.16.1.1 255.255.255.0 LO2: 172.16.2.1 255.255.255.0 LO3: 172.16.3.1 255.255.255.0 R3: F0/0: 193.16.1.254 255.255.255.0 S0/1: 23.23.23.3 255.255.255.0 LO1: 173.16.1.1 255.255.255.0 LO2: 173.16.2.1 255.255.255.0 LO3: 173.16.3.1 255.255.255.0 PC1:191.16.1.1 255.255.255.0 PC2:191.16.1.2 255.255.255.0 PC3:192.16.1.1 255.255.255.0 PC4:192.16.1.2 255.255.255.0 PC5:193.16.1.1 255.255.255.0 PC6:193.16.1.2 255.255.255.0 Sw1: 191.16.1.253 255.255.255.0 Sw2: 192.16.1.253 255.255.255.0 Sw3: 193.16.1.253 255.255.255.0 1.5.4 实验要求 试验要求: 熟练掌握RIPv2的配置 能够通过命令对试验结果进行查看及排错 Show ip route Show ip int brief Show ip protocol

Cisco交换机常用配置命令

Cisco交换机常用配置命令 CISCO交换机基本配置 switch>ena 進入特权模式 switch#erasenvram 全部清除交换机的所有配置 switch#reload 重新启动交换机(初始提示符为switch> ) ------------------------------------------------------------------------------------ CISCO交换机基本配置:Console端口连接 用户模式hostname>; 特权模式hostname(config)# ; 全局配置模式hostname(config-if)# ; 交换机口令设置: switch>enable ;进入特权模式 switch#config;进入全局配置模式 switch(config)#hostname cisco ;设置交换机的主机名 switch(config)#enable secret csico1 ;设置特权加密口令 switch(config)#enable password csico8 ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;虚拟终端允许登录 switch(config-line)#password csico6 ;设置虚拟终端登录口令csico6 switch#write 保存配置設置 switch#copy running-config startup-config 保存配置設置,與write一樣switch#exit;返回命令 配置终端过一会时间就会由全局配置模式自动改为用户模式,将超时设置为永不超时 switch#conf t switch(config)#line con 0 switch(config-line)#exec-timeout 0 --------------------------------------------------------------------------------- 交换机显示命令: switch#write;保存配置信息 switch#showvtp;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#showvlan;查看vlan配置信息 switch#showvlan name vlan2 switch#show interface ;查看端口信息

CISCO交换机配置操作学习教程

CISCO交换机配置操作学习教程 1.注意事项 1.交换机启动需要大约4-5分钟; 2.网线插入交换机接口从黄变为绿需要大约1-2分钟,即进入正常工作模式; 3.建议使用XP系统进行操作,2003默认没有安装超级终端,需要使用安装光盘添加该工具才有; 4.请严格按照以下步骤进行,背景灰色字体为交换机显示信息,蓝色字体为配置命令。 2.准备工作 先保持交换机断电状态; 使用调试串口线连接笔记本电脑的串口与交换机背面的CONSOLE 接口; 打开超级终端: 开始-所有程序-附件-超级终端; 配置超级终端: 名称-cisco 选择com1或com2(请依照实际情况进行选择) 修改每秒位数为9600 应用-确定-回车; 3.初始配置 给交换机通电;

片刻后会看到交换机的启动信息,直到出现以下配置选项: Wouldyouliketoterminateautoinstall?[yes]:no Wouldyouliketoentertheinitialconfigurationdialog?[yes/no ]:no Wouldyouliketoterminateautoinstall?[yes]:no 4.出现命令窗口 Switch> 5.备份出厂配置 Switch>en进入特权模式 Switch#copyrunning-configsfbak-config Destinationfilename[sfbak-config]?回车 片刻后会出现: 1204bytescopiedin0.529secs(2276bytes/sec) 表示文件备份成功。 6.配置账号密码 Switch#configureterminal进入配置子模式 Switch(config)#enablepasswordcisco设置PASSWORD密码为cisco Switch(config)#enablesecretcisco设置SECRET密码为cisco Switch(config)#exit 片刻后会出现: 00:11:26:%SYS-5-CONFIG_I:Configuredfromconsolebyconsole

思科交换机实用配置步骤详解

1.交换机支持的命令: 交换机基本状态: switch: ;ROM状态,路由器是rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态交换机口令设置: switch>enable ;进入特权模式 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 ;返回命令

交换机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)#switchportaccess 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)#vtp domain ;设置发vtp域名 switch(config)#vtp password ;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式 switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ipaddress ;设置IP地址 switch(config)#ip default-gateway ;设置默认网关

Cisco Packet Tracer实验7:RIP 路由协议的配置

实验7:RIP 路由协议的配置 一、实验目的 1、练习RIP 动态路由协议的基本配置; 2、掌握了解RIP 路由协议原理 二、实验环境: Packet tracer 5.0 三、关于RIP 的基础知识 RIP(Routing Information Protocol)是最常使用的内部网关协议(Interior Gateway Protocol)之一,是一种典型的基于D-V 算法的动态路由协议。 通过UDP(User Datagram Protocol)报文交换路由信息,使用跳数(Hop Count)来衡量到达目的地的距离(被称为路由权-Routing cost)。 由于在RIP 中大于或等于16 的跳数被定义为无穷大(即目的网络或主机不 可达),所以RIP 一般用于采用同类技术的中等规模的网络,如校园网及一个地区范围内的网络,RIP 并非为复杂、大型的网络而设计。 启动RIP,进入RIP 视图:router Rip 关闭RIP:no rip 在指定的网络上使能RIP network{ network-number| all } 在指定的网络上禁用RIP no network{ network-number| all 四:实验步骤: 拓扑图如下所示:

配置过程: Router1: Router>enable //进入特权模式 Router#conf ter //进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 //配置Fa0/0 接口 Router(config-if)#ip add 1.1.1.2 255.255.255.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 //配置串口 Router(config-if)#ip add 1.1.6.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#exit Router(config)#int s0/0/1 //配置串口 Router(config-if)#ip add 1.1.2.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/1, changed state to down Router(config-if)#exit Router(config)#router rip //进入RIP 视图 Router(config-router)#network 1.0.0.0 //发布直连网络 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#show ip route //查看路由表 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Cisco交换机配置新手篇端口配置

C i s c o交换机配置新手篇 端口配置 Revised by Liu Jing on January 12, 2021

C i s c o交换机配置新手篇-端口配置(一)上回跟大家介绍了如何正确连接交换机,今天用一些配置片段给大家介绍一下端口的配置。鉴于网上大多数配置事例都是show-run出来的结果。不利于新手对命令配置过程的了解,所以笔者将配置片段和注意的地方都注明了一下,希望能帮助新手尽快了解如何正确配置交换机。 在IOS输入命令时只要缩写的程度不会引起混淆,使用配置命令的时候都可以使用缩写的形式。比如:Switch>enable,在用户模式下以 en开头的命令就只有enable,所以可以缩写成Switch>en。也可以用TAB键把命令自动补全,如Switch>en,按键盘 TAB后自动补全为Switch>enable。 快捷键: 1.Ctrl+A:把光标快速移动到整行的最开始 2.Ctrl+E:把光标快速移动到整行的最末尾 3.Esc+B:后退1个单词 4.Ctrl+B:后退1个字符 5.Esc+F:前进1个单词 6.Ctrl+F:前进1个字符 7.Ctrl+D:删除单独1个字符 8.Backspace:删除单独1个字符 9.Ctrl+R:重新显示1行 10.Ctrl+U:擦除1整行 11.Ctrl+W:删除1个单词

12. Ctrl+Z从全局模式退出到特权模式 13.Up arrow或者Ctrl+P:显示之前最后输入过的命令 14.Down arrow或者Ctrl+N:显示之前刚刚输入过的命令 配置enable口令以及主机名字,交换机中可以配置两种口令 (一)使能口令(enable password),口令以明文显示 (二)使能密码(enbale secret),口令以密文显示 两者一般只需要配置其中一个,如果两者同时配置时,只有使能密码生效. Switch.> /*用户直行模式提示符Switch.>enable /*进入特权模式Switch.# /*特权模式提示符Switch.# config terminal /*进入配置模式Switch.(config)# /*配置模式提示符Switch.(config)# hostname Pconline /*设置主机名Pconline Pconline(config)# enable password pconline /*设置使能口令为pconline Pconline(config)# enable secret network /*设置使能密码为network Pconline(config)# line vty 0 15 /*设置虚拟终端线Pconline(config-line)# login /*设置登陆验证Pconline(config-line)# password skill /*设置虚拟终端登陆密码

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

第一章:路由器配置基础 一、基本设置方式 一般来说,可以用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可以退

cisco交换机配置简单教程

一、标识交换机 二、设置口令及用户 三、配置VTP(Vlan中继协议) 四、配置中继线(Trunk) 五、创建、描述Vlan及设置Vlan IP 六、划分、描述及设置Vlan端口 七、配置STP(生成树协议) 八、启用Vlan间Router 九、配置ACL 十、配置DHCP中继代理 十一、配置DHCP服务器 十二、配置HSRP(热备路由协议) 十三、保存配置 附1:命令行编辑键 附2:SHOW命令 附7:ACL例子 一、标识交换机 Switch#configure terminal 进入配置状态 Switch(config)#hostname “hostname”设置Switch名称 Switch (config)#no hostname 取消Switch名称 Switch(config)#end 结束本次配置 二、设置口令及用户 Switch#configure terminal 进入配置状态 Switch(config)#enable secret “password”设置特权模式口令 Switch(config)#no enable secret 取消特权模式口令 Switch(config)#enable password “password”设置EXEC模式口令 Switch(config)#no enable password 取消EXEC模式口令 witch(config)#username “username”privilege “num”secret “password”建立本地用户及口令 Switch(config)#no username “username”删除本地用户 Switch(config)#service password-encryption 加密所有明文口令 Switch(config)#no password-encryption 拒绝加密所有明文口令 Switch(config)#end 结束本次配置 1、配置console用户用口令 Switch#configure terminal 进入配置状态 Switch(config)#line console 0 进入console口配置状态 Switch(config-line)#login local 设置登录模式为本地用户验证模式 Switch(config-line)#no login local 取消本地用户验证模式 Switch(config-line)#end 结束本次配置 或 Switch#configure terminal 进入配置状态 Switch(config)#line console 0 进入console口配置状态

思科网络网络学院教程

第一章:OSI参考模型与路由选择 一、开放系统互连(OSI) 应用层(第7层):处理应用层的网络进程 表示层(第6层):数据表示 会话层(第5层):主机间通信 传输层(第4层):端到端连接段 网络层(第3层):地址和最佳路径分组 数据链路层(第2层):介质访问帧 物理层(第1层)二进制传输比特 1.对等层通信: 协议数据单元(PDU):每一层协议与对等层交换的信息。 2.数据封装: 二、物理层: 1.以太网(Ethernet): 指所有使用带冲突检测载波监听多路访问(CSMA/CD)的局域网。 以太网和IEEE 802.3:同轴电缆和双绞10Mbit/s 100Mbit/s以太网:快速以太网双绞线100Mbit/s 1000Mbit/s以太网:吉比特以太网 2.以太网/802.3物理连接: 10Base2:细缆185m 10Base5:粗缆500m 10BaseT:双绞线100m 三、数据链路层: MAC地址用16进制表示,两种格式0000.0c12.3456和00-00-0c-12-34-56 四、网络层: IP协议:寻找一条把数据报移到目的地的路径。 因特网控制消息协议(ICMP):提供控制和发送消息的能力。 地址解析协议(ARP):根据已知IP地址决定数据链路层地址。 反向地址解析协议(RARP):在数据链路层地址已知时,决定网络层地址。 1.IP寻址与子网: IP地址分成网络号、子网号和主机,即每个地址包括网络地址、可选的子网地址和主机地址。网络地址和子网地址一起用于路由选择,主机地址用于表示网络或子网中独立的主机。子网掩码用于从IP地址中提取网络和子网信息。 2.路径选择: 指通信穿过网云所应该采取的传输路径。使路由器能评估到目的地的可用路径,并建立对分组的优先处理方式。 3.路径通信: 网络地址包含路径部分和主机部分。路径部分指明在网络云内被路由器使用的路径; 主机部分指明网络上的特定端口或设备。 4.ICMP:是通过IP数据报传送的,它用来发送错误和控制消息。 5.ARP: 以太网上进行通信,源站点必须知道目的站点的IP地址和MAC地址。

思科3560G交换机常用配置

思科3560G交换机常用配置 一.配置telnet登陆账号和密码 用串口线连上交换机 Switch(config)#userna Switch(config)#username admin pas Switch(config)#username admin password 123 Switch(config)#line vty 0 4 Switch(config-line)#login local Switch(config-line)#end %SYS-5-CONFIG_I: Configured from console by console Switch#wr 二.配特权密码 Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#enable password 456 三.划分vlan Switch(config)#vlan 10 Switch(config-vlan)#int vlan 10 Switch(config-if)# %LINK-5-CHANGED: Interface Vlan10, changed state to up Switch(config-if)#ip add 192.168.10.1 255.255.255.0 四.配dhcp Switch(config)#ip dhcp pool vlan10 Switch(dhcp-config)#network 192.168.10.0 255.255.255.0 Switch(dhcp-config)#default-router 192.168.10.1 Switch(dhcp-config)#dns-server 192.168.1.1 Switch(dhcp-config)# 五.划分端口 Switch(config)#int range fastEthernet 0/1-5 进入1-5端口 Switch(config-if-range)#switchport mode access 并把接口方式改为access Switch(config-if-range)#switchport access vlan 10把1-5端口划vlan 10 Switch(config-if-range)#no sh 六. 配静态路由 Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2 192.168.10.2是一跳地址七. 配置完一定要保存 Switch#wr Building configuration... [OK]

相关文档
最新文档