当前位置:首页 » 网络设备 » cisco路由器设置教程

cisco路由器设置教程

发布时间: 2021-02-22 21:19:56

1. cisco 路由器怎么用网页配置

要想使用WEB管理思科设备,要具备下列条件:

一、设备的IOS要支持WEB管理功能

Router(config)#ip http server

//如果这条命回令可以用,说明答IOS支持WEB管理

Router(config)#ip http secure-server

//如果这条命令可以用,说明你的IOS还支持HTTPS,安全连接通过上面命令开启WEB管理功能后还要使用下面命令设置WEB管理口令:

Router(config)#ip http authentication local

//设置口令验证方式是本地验证

Router(config)#username cisco privilege 15 password 0 cisco

//在本地添加用户名cisco和密码cisco做完上面的在设置的配置就算完成了!

当然还有IP相关信息不能忘记配置。

二、要在管理设备的机器上安装思科SDM,或者可安装在设备上,但设备的存储空间相对小些,所以安装在管理PC上要好些,看具体的环境,要是常换管理机,就安到设备上。

三、安装完成打开如下设置界面:

2. Cisco 路由器基本设置过程步骤

enable
configure terminal
no ip domain-lookup
line console 0
logging synchronous
exec-timeout 0 0
no login
line aux 0
logging synchronous
exec-timeout 0 0
no login
privilege level 15
line vty 0 4
no login
privilege level 15
exit
no cdp run
no ip http server基本信息。先配好。。。再配接口 链路测试(ping) 需要跑路由再配路由 。。这就是回层次化配置 这样配答置 容易排错。

3. CISCO路由器教程的讲解是怎样的

学习CISCO路由器教程对于一般的用户来讲,还是非常有用的,思科作为路由市场中需求量很多的企业,其用户量也是很多的,这里主要Cisco2620为例,像您介绍路由配置和接入的方法。了解一些关于思科路由器的常识还是很重要的,这里主要讲解了CISCO路由器教程,从配置到接入方法都做了详细的分析。本文以Cisco2620为例,讲述了路由器配置以及远程接入的配置方法,探讨了如何使用内部网络的DHCP服务功能为远程拨入的用户分配地址信息以及路由器常见故障的排除技巧。CISCO路由器教程之初始安装第一次安装时系统会自动进入Dialog Setup,依屏幕提示,分别回答路由器名称、加密超级登录密码、超级登录密码、远程登录密码、动态路由协议以及各个接口的配置后,保存配置。在出现路由器名称后,打入ena
le命令,键入超级登录密码,出现路由器名称(这里假设路由器名称为Cisco2620),待出现Cisco2620#提示符后,表示已经进入特权模式,此时就可以进行路由器的配置了。CISCO路由器教程之配置路由器键入config te
minal,出现提示符Cisco2620(config)#,进入配置模式。CISCO路由器教程之设置密码Cisco2620(config)#ena
le sec
et 123123:设置特权模式密码为123123Cisco2620(config)#line console 0: 进入Console口配置模式Cisco2620(config-line)#passwo
d 123123:设置Console口密码为123123Cisco2620(config-line)#login:使console口配置生效Cisco2620(config-line)#line vty 0 5:切换至远程登录口Cisco2620(config-line)#passwo
d 123123:设置远程登录密码为123123Cisco2620(config-line)#login:使配置生效CISCO路由器教程之设置快速以太网口Cisco2620(config)#inte
face fastFastethe
net 0
0:进入端口配置模式Cisco2620(config-if)#ip add
ess 192.168.1.6 255.255.255.0:设置IP地址及掩码Cisco2620(config-if)#no shutdown: 开启端口Cisco2620(config-if)#exit:从端口配置模式中退出

4. 思科路由怎么设置教程

1.1 CISCO IOS操作环境。
有三种:
ROM monitor > Failure of password recovery
BootROM router(boot) > Flash image upgrade
Cisco IOS router > Normal operation
二、 配置前的准备工作

2.1 用终端或仿真终端接入CONSOLE口 。

终端或仿真终端配置信息如下:

9600 baud 8 data bits no parity 2 stop bits (9600,8/N/2)

2.2 用TELNET命令在网上进行设置。

系统管理员可在网上用telnet address命令进行远程配置。

三、 配置IP地址

3.1 config命令行方式进行设置

3.1.1 首先启动ROUTER 进入router > 模式。

键入Enable 进入router # 模式

然后键入config 进入router(config)# 模式

3.1.2 选择要配置的路由器端口

Router(config) # interface端口号

进入端口设置状态 Router(config-if)

此时用命令IP address <掩码>

设定路由器端口IP地址

四、 配置ip路由协议 (RIP ,OSPF ,BGP ,STATICS)

在图中有路由器A和B,广域网通过router A 的s0/0/0和router B的s2/0/0相连,IP如下:

router A:

E1:202.101.1.1/24

S0/0/0:202.101.3.1/30

router B:

E1:202.101.2.1/24

S2/0/0:202.101.3.2/30

当我们设置路由器协议时,可根据方案的规定设置一种或多种协议。以下动态协议都是按最简单设置,复杂的配置可参考具体手册。

5. 如何设置思科无线路由器

思科路由器设置方法如下:

1.首先,我们需要将我们的思科路由器和光猫用 网线 连接好,连接的顺序是 电话线 、光猫、路由器以及电脑,如果没有绑定电话的可以不用连接电话线。将连接路由器的网线插到光猫的WAN插口上,其他的四个插口是用来插网线连接电脑的。

3.接下来,打开我们电脑中的ie浏览器,输入思科路由器的登陆地址,大部分都是192.168.1.1,我们可以通过查看路由器底部的铭牌上面的标注来确认一下思科路由器的登陆地址。

4.这时,会弹出一个新的界面,在弹出的界面中,分别在用户名和密码两栏中输入帐号和密码,账号和密码默认都是admin,确认进入。

5.进入之后,我们需要在思科路由器的设置界面中找到左边的网络配置,然后点击进入。

6..选择下拉栏里的外网设置,选择PPPoE拨号模式,在输入帐号密码的地方输入宽带上网帐号和密码。设置完成后,记得点击保存哦。

7.选择内网设置,有些时候界面也可能叫LAN口设置,设置LAN口网IP,一般使用路由器默认的即可,设置完成后,也要点击保存。

8.选择DHCP服务,选择开启DHCP,指定DHCP自动分配IP地址范围,设置完成后,点击保存。如果是 无线路由 器的话,还需要进入无 线管 理中,将无线开启,然后进行对自己无线网络用户名和密码的设置。

6. CISCO路由器的简单配置用使用方法

1.1 CISCO IOS操作环境。
有三种:
ROM monitor > Failure of password recovery
BootROM router(boot) > Flash image upgrade
Cisco IOS router > Normal operation
二、 配置前的准备工作

2.1 用终端或仿真终端接入口 。

终端或仿真终端配置信息如下:

9600 baud 8 data bits no parity 2 stop bits (9600,8/N/2)

2.2 用TELNET命令在网上进行设置。

系统管理员可在网上用telnet address命令进行远程配置。

三、 配置IP地址

3.1 config命令行方式进行设置

3.1.1 首先启动ROUTER 进入router > 模式。

键入Enable 进入router # 模式

然后键入config 进入router(config)# 模式

3.1.2 选择要配置的路由器端口

Router(config) # interface端口号

进入端口设置状态 Router(config-if)

此时用命令IP address <掩码>

设定路由器端口IP地址

四、 配置ip路由协议 (RIP ,OSPF ,BGP ,STATICS)

在图中有路由器A和B,广域网通过router A 的s0/0/0和router B的s2/0/0相连,IP如下:

router A:

E1:202.101.1.1/24

S0/0/0:202.101.3.1/30

router B:

E1:202.101.2.1/24

S2/0/0:202.101.3.2/30

当我们设置路由器协议时,可根据方案的规定设置一种或多种协议。以下动态协议都是按最简单设置,复杂的配置可参考具体手册。

4.1静态路由

IP route 目的网络地址 子网掩码 端口号

在router A上配router B的路由:

IP route 202.101.2.0 255.255.255.0 202.101.3.2

在router A上配router B的路由:

IP route 202.101.1.0 255.255.255.0 202.101.3.1

4.2 RIP2设置

router A进行如下设置:

router rip ;enable rip

version 2 ;选择版本2

network 202.101.1.0 ;相关子网地址

network 202.101.3.0

router B进行如下设置:

router rip ;enable rip

version 2 ;选择版本2

network 202.101.2.0 ;相关子网地址

network 202.101.3.04.3 OSPF设置

router A:

router ospf 200 ;enable ospf 进程号为200

network 202.101.1.0 0.0.0.255 area 0 ; 相关子网地址及区域号

network 202.101.3.0 0.0.0.3 area 0

router B:

router ospf 200 ;enable ospf 进程号为200

network 202.101.2.0 0.0.0.255 area 0 ; 相关子网地址及区域号

network 202.101.3.0 0.0.0.3 area 04.4 BGP设置

router A:

router bgp 100 ;enable bgp 设置自治域号

network 202.101.3.0 mask 255.255.255.252 ;相关子网地址及子网掩码

network 202.101.1.0 mask 255.255.255.0 ; 这些地址由bgp发到邻居路由器

neighbor 202.101.3.2 remote-as 200 ;设置远程相连自治域边界路由器端口

router B:

router bgp 100 ;enable bgp 设置自治域号

network 202.101.2.0 mask 255.255.255.252 ;相关子网地址及子网掩码

network 202.101.1.0 mask 255.255.255.0 ; 这些地址由bgp发到邻居路由器

neighbor 202.101.3.1 remote-as 200 ;设置远程相连自治域边界路由器端口五、 radius认证的设置

5.1 radius的简述

RADIUS的全称为(Remote Access Dail-In User Service),它是对远程拨号用户访问进行认证的一种协议。主要进行Authentication Authorization Accounting (AAA) 三方面的工作。

5.2 radius的配置

具体配置如下:

aaa new-mode ;enable radius

radius-server host ;指明radius server在网上的地址

radius-server key ;建立一个网上传输密

aaa authentication login default radius local ;进行login认证,若radius server未找到从本地数据库内查找

aaa authentication ppp default radius local

aaa authorization network radius local ;授权检测

aaa accounting network start-stop radius ;计帐检测

六、 路由器软件升级方法

6.1 改变操作环境

在global config mode设置: config -reg 0x2101

reload 进入Boot Rom 模式:router(boot)>

6.2 运行tftp server

在网上运行tftp server,使升级文件可以传输。

6.3 升级版本

命令如下:

tftp flash ;将tftp server上的文件传入路由器的flash memoy中

flash tftp ; 将flash中的文件备份到tftp server中

七、 路由器配置的其它事项

7.1拨号用户的配置。

cisco 2509/2511的异步串行通讯口在配置modem时,modem需设置成自动应答方式。具体方法如下:

用超级终端进入modem AT 命令方式,键入ats0=1 设置自动应答方式,然后键入at&w 将设置写入寄存器。

7.2 RIP & BGP的设置

当一个运行RIP路由协议的子网,做为一个自治域,用BGP协议接入另一自治域时。此子网内所有路由器需添加参数: ip classless 。同时在与边界路由器直接相连的路由器上需添加一个缺省网关

7.3 v.35电缆直连的设置

在相关的端口上设置时钟速率:clock rate < speed> .

7.4 loopback端口的设置

loopback端口是一个虚拟端口,端口状态始终处于UP。通过它可以使由BGP相连的AS之间始终保持连系,不会由于边界路由器端口状态的改变而发生变化。其具体配置如下:

interface loopback

ip address IP地址 子网掩码

八、常见问题

8.1如何检测网络是否通畅?

在网络主机上采用命令ping 来逐端检测网端。

8.2如何查看路由器配置信息?

在EXEC模式下用show config命令。

8.3如何查看路由器路由信息?

在EXEC模式下用show ip route 命令。

8.4如何查看路由器端口信息?

EXEX模式下用show int <端口号> 命令。

8.5为什么端口协议已经配置,状态仍然是down?

在CONFIG模式下,选择该端口,执行no shutdwon命令。

8.6 config模式有几种状态,对应那些操作?

config模式有以下几种状态:

· globle config 全局配置操作 exec模式键入config t

· interface config 端口配置操作 config模式键入int <端口号>

· line config 线路配置操作 config模式键入line <线路号>

· router config 路由配置操作 config模式键入router<路由协议>

7. 思科路由交换的配置步骤,以及步骤中命令详解

思科Cisco交换机、路由器设置命令
Lzshihj_tz2f_3550
交换机口令设置:
switch>enable ;进入特权模式
switch#config terminal ;进入全局配置模式
switch(config)#hostname <hostname> ;设置交换机的主机名
switch(config)#enable secret xxx ;设置特权加密口令为 xxx
switch(config)#enable password xxx ;设置特权非密口令为 xxx
switch(config)#line console 0 ;进控制台口(Rs232)初始化
switch(config-line)#line vty 0 4 ;进入虚拟终端virtual tty
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)#switchport access 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 <name> ;设置发vtp域名
switch(config)#vtp password <word>
switch(config)#vtp mode server
switch(config)#vtp mode client
交换机设置IP地址:
switch(config)#interface vlan 1 ;进入vlan 1
switch(config-if)#ip address <IP> <mask> ;添加远程登录IP
switch(config)#ip default-gateway <IP> ;添加默认网关
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 <hostname> ;设置交换机的主机名
router(config)#enable secret xxx ;设置特权加密口令为 xxx
router(config)#enable password xxx ;设置特权非密口令为 xxx
router(config)#line console 0 ;进控制台口(Rs232)初始化
router(config-line)#line vty 0 4 ;进入虚拟终端virtual tty
router(config-line)#login ;允许登录
router(config-line)#password 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 address 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 address <ip><netmask> ;
router(config-subif.1)#encapsulation dot1q <n> ;
router(config)#config-register 0x2142 ;跳过配置文件
router(config)#config-register 0x2102 ;正常使用配置文件
router#reload ;重新引导
复制操作:
router# running-config startup-config ;存配置
router# running-config tftp ;上载
router# startup-config tftp
router# tftp flash: ;特权模式下升级IOS
router# tftp startup-config ;下载配置文件到nvram

ROM状态:
Ctrl+Break ;进入ROM监控状态
rommon>confreg 0x2142 ;跳过配置,26 36 45xx
rommon>confreg 0x2102 ;使用配置,恢复工作状态
rommon>reset ;重新引导,等效于重开机
rommon> xmodem:<sname> flash:<dname> ;从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 <ip-address> <subnet-mask> <gateway> 例:
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 <netid> ;配置范围,有的支持all。
router(config-router)#negihbor <ip-address> ;点对点帧中继用。

帧中继命令:
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)#access-list <number> permit|deny <source ip> <wild|any>
router(config)#interface <interface> ;default: deny any
router(config-if)#ip access-group <number> in|out ;default: out

例:
RB(config)#access-list 4 permit 10.8.1.1
RB(config)#access-list 4 deny 10.8.1.0 0.0.0.255
RB(config)#access-list 4 permit 10.8.0.0 0.0.255.255
RB(config)#access-list 4 deny 10.0.0.0 0.255.255.255
RB(config)#access-list 4 permit any
RB(config)#int f0/0
RB(config-if)#ip access-group 4 in

扩展访问控制列表:
access-list <number> permit|deny icmp <SourceIP wild> <destinationIP
wild>[type]
access-list <number> permit|deny tcp <SourceIP wild> <destinationIP
wild>[port]
例1:
router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo
router(config)#access-list 101 permit ip any any
router(config)#int s0/0
router(config-if)#ip access-group 101 in
例2:
router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80
router(config)#access-list 102 permit ip any any
router(config)#interface s0/1
router(config-if)#ip access-group 102 out

router(config)#no access-list 102
router(config-if)#no ip access-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 Message Logging)

router(config) # logging on

router(config) # logging server-ip-address
router(config) # logging trap severity-level
路由器恢复出厂设置
erase start-config
或write erase
或erase NVROM

8. 如何配置思科路由器

你好!美国思科路由器设置方法步骤如下:
1、首先把电源接通,然后插上网线,进线插在wan口,然后跟电脑连接的网线就随便插一个lan口。
2、连接好无线路由器后,在电脑浏览器地址栏输入在路由器IP地址:192.168.1.1。
3、连接后会看到输入相应的登陆用户名:admin,密码:admin。
4、进入操作界面,点击设置向导。
5、进入设置向导的界面,选择进入上网方式设置。
6、点击下一步,进入上网方式设置,可以看到有三种上网方式。如果是拨号的话那么就用PPPoE。动态IP一般电脑直接插上网络就可以用的,上层有DHCP服务器的。静态IP一般是专线什么的,也可能是小区带宽等,上层没有DHCP服务器的,或想要固定IP的。
7、选择PPPOE拨号上网就要填上网帐号和密码。
8、然后点击下一步后进入到的是无线设置,可以看到信道、模式、安全选项、SSID等等,一般SSID就是一个名字,可以随便填,然后模式大多用11bgn.无线安全选项,要选择wpa-psk/wpa2-psk,这样安全,免得轻意让人家破解而蹭网。点击下一步就设置成功。
9、点击完成,路由器会自动重启,届时就完成了路由器设置工作。

热点内容
网卡了的原因 发布:2021-03-16 21:18:20 浏览:602
联通客服工作怎么样 发布:2021-03-16 21:17:49 浏览:218
路由器画图 发布:2021-03-16 21:17:21 浏览:403
大网卡收费 发布:2021-03-16 21:16:50 浏览:113
路由器免费送 发布:2021-03-16 21:16:19 浏览:985
孝昌营业厅 发布:2021-03-16 21:15:54 浏览:861
网速增速代码 发布:2021-03-16 21:15:29 浏览:194
怎么黑光纤 发布:2021-03-16 21:14:54 浏览:901
端口增大 发布:2021-03-16 21:14:20 浏览:709
开机没信号是什么原因 发布:2021-03-16 21:13:45 浏览:645