如何配置思科路由器(思科路由怎么配置)

小编:小丢 更新时间:2022-12-16

一、如何配置思科路由器

你好!美国思科路由器设置方法步骤如下:

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、点击完成,路由器会自动重启,届时就完成了路由器设置工作。


二、思科路由怎么配置

不知道你具体要什么配置,就把基本配置给你发过去吧:

新的路由器要用console口线将路由器与你的笔记本相连,通过笔记本配置路由器。

no

enable 进入全局模式

configure terminal 进入特权模式

hostname R1 修改路由器名字为R1

line vty 0 4 进入线路模式接口

password 123 设置远程登录密码

login local 设置密码有效

exit

enable secret 123 设置超级用户密码

interface serial 1/1 进入serial接口

no shutdown 开启端口

ip address 192.168.1.1 255.255.255.0 为路由器端口配置ip地址

exit

interface serial 1/2

no shut

ip address 192.168.2.1 255.255.255.0

router ospf 1 使用ospf路由协议,并进入路由配置模式

network 192.168.1.0 0.0.0.255 area 1 宣告智联网段

redistribute rip metric 100000 subnets 路由重分发rip协议

exit

router rip 使用rip路由协议

network 192.168.2.0 宣告直连网段

redistribute ospf 1 metric 0 路由重分发ospf协议

exit


三、思科1841路由器最简单的上网配置

  • 第一步,配置内网的ip地址

    第二步,配置外网的IP地址

    第三步,配置一个ACL 包含容许上网的IP网段

    第四步,配置NAT,把ACL翻译到外网端口,并使用超载。

  • HXrouter#show run

    Building configuration...

    Current configuration : 1503 bytes

    !

    ! Last configuration change at 07:41:21 UTC Sat Mar 21 2015 by hailong

    !

    version 15.2

    service timestamps debug datetime msec

    service timestamps log datetime msec

    !

    hostname HXrouter

    !

    boot-start-marker

    boot-end-marker

    !

    no aaa new-model

    ip cef

    !

    no ip domain lookup

    no ipv6 cef

    ipv6 multicast rpf use-bgp

    !

    multilink bundle-name authenticated

    !

    username hailong privilege 15 password 0 hailong

    username cisco privilege 15 password 0 cisco

    !

    tEthernet0/1

    no ip address

    media-type rj45

    speed auto

    duplex auto

    negotiation auto

    !

    interface GigabitEthernet0/2

    description *CNC1*

    ip address 220.33.76.19 255.255.255.248

    ip nat outside

    media-type rj45

    speed auto

    duplex auto

    negotiation auto

    !

    interface GigabitEthernet0/3

    ip address 10.10.2.1 255.255.255.0

    ip nat inside

    media-type rj45

    speed auto

    duplex auto

    negotiation auto

    !

    ip nat inside source list nat interface GigabitEthernet0/2 overload

    ip nat inside source static tcp 192.168.2.104 9080 220.33.76.19 9080 extendable

    ip forward-protocol nd

    ip http server

    no ip http secure-server

    !

    !

    ip route 0.0.0.0 0.0.0.0 220.33.76.17

    ip route 192.168.0.0 255.255.0.0 10.10.2.254

    !

    ip access-list extended nat

    permit ip any any

    !

    !

    !

    !

    control-plane

    !

    !

    line con 0

    stopbits 1

    line aux 0

    stopbits 1

    line vty 0 4

    login local

    !

    !

    end