当前位置:首页 > wifi设置知识 > 正文内容

思科路由器配置手册(推荐)

秋天2023年04月06日 17:59:44wifi设置知识289
你想要给家里的无线网络换个名字或者密码吗?你想要知道如何登录路由器管理页面吗?本文思科路由器配置手册 将为你详细介绍如何使用默认的用户名和密码登录路由器管理页面,进行无线网络的设置和修改。

一. 策略路由配置

1. 匹配数据包IP地址、前缀列表

Router(config)#route-map rp-name

Router(config-route-map)#match ip address {access-list-number|name} […access-list-number|name]|prefix-list prefix-list-name […prefix-list-name]

Router(config)#route-map TEST

Router(config-route-map)#match ip address 1

2. 匹配数据包大小

Router(config-route-map)#match length min max

3. 设定分组的下一跳IP(必须为直连IP)

Router(config-route-map)#set ip next-hop ip-address […ip-address]

Router(config-route-map)#set ip next-hop 10.1.12.2 10.1.13.3

4. 设定分组的出接口

Router(config-route-map)#set interface type number [?type number]

Router(config-route-map)#set interface fast 0/0

5. 应用PBR(对进入接口的数据流量生效,本地始发的流量无效)

Router(config-if)#ip policy route-map TEST

6. 应用PBR(针对本地始发的流量生效)

Router(config)# ip local policy route-map TEST

7. 查看PBR命令

Router#show ip policy

Router#show route-map [map-name]

二. 策略路由场景

1. 备份路径

无线路由器-网关-dtu

GW(config)#access-list 1 permit any

GW(config)#route-map PBR permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#set ip next-hop 10.1.1.2 10.2.2.2

2. 感知上游设备状态特性(两端都是思科设备,并均开启CDP)

无线路由器-网关-dtu

GW(config)#access-list 1 permit any

GW(config)#route-map PBR permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#set ip next-hop 10.1.1.2 10.2.2.2

GW(config-route-map)#set ip next-hop verify-availability

3. 感知上游设备状态特性(利用sla,无需思科和CDP)草稿,需完善

无线路由器-网关-dtu

无线路由器-网关-dtu

ip sla monitor responder

ip sla monitor 1

type echo protocol ipIcmpEcho 10.1.1.2 source-ipaddr 10.1.1.1

frequency 10

ip sla monitor schedule 1 life forever start-time now

track 1 rtr 1 reachability

GW(config)#access-list 1 permit any

GW(config-route-map)#route-map PBR permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#set ip next-hop verify-availability 10.1.1.2 10 track 1

GW(config-route-map)#set ip next-hop verify-availability 10.2.2.2 20 track 2

4. Recursive 可达路径关键词

无线路由器-网关-dtu

Recursive提供了一种非直连路径下一条(next-hop)的可能性,所指ip必须可达

GW(config)#access-list 1 permit any

GW(config)#route-map PBR permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#set ip next-hop 10.2.2.2

GW(config-route-map)#set ip next-hop recursive 10.1.12.2

GW(config)#ip route 10.1.12.0 255.255.255.0 10.1.1.2

GW(config)#ip route 0.0.0.0 0.0.0.0 serial s0/2

三. 策略路由案例

1. 按流量选择路径(注意,之前一课的路由策略都是按路由分路径)

无线路由器-网关-dtu

Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255

Router(config)#access-list 2 permit 192.168.2.0 0.0.0.255

Router(config)#route-map test permit 10

Router(config)#match ip address 1

Router(config-route-map)#set ip next-hop 10.1.1.2

Router(config)#route-map test permit 40

Router(config-route-map)#match ip address 2

Router(config-route-map)#set ip next-hop 10.2.2.2

Router(config)#int f0/0

Router(config-if)#ip policy route-map test

Router(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2

Router(config)#ip route 0.0.0.0 0.0.0.0 10.2.2.2 10

2. Next-hop关键字,不带default,优先级高于明细路由

无线路由器-网关-dtu

R1(config)#access-list 1 permit 10.1.1.0 0.0.0.255

R1(config)#route-map PBR permit 10

R1(config-route-map)#match ip address 1

R1(config-route-map)#set ip next-hop 10.1.13.3

R1(config)#int f0/0

R1(config-if)#ip policy route-map PBR

R1(config)#ip route 0.0.0.0 0.0.0.0 10.1.13.2

3. Next-hop,带default关键字,优先级低于明细路由

无线路由器-网关-dtu

R1(config)#access-list 1 permit 10.1.1.0 0.0.0.255

R1(config)#route-map PBR permit 10

R1(config-route-map)#match ip address 1

R1(config-route-map)#set ip default next-hop 10.1.13.3

R1(config)#int f0/0

R1(config-if)#ip policy route-map PBR

R1(config)#ip route 10.1.23.0 255.255.255.0 10.1.12.2

4. NAT应用策略路由

无线路由器-网关-dtu

无线路由器-网关-dtu

无线路由器-网关-dtu

GW(config)#access-list 1 permit 192.168.1.0 0.0.0.255

GW(config)#access-list 2 permit 192.168.2.0 0.0.0.255

GW(config)#route-map PBR permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#set ip next-hop 11.1.1.2

GW(config)#route-map PBR permit 20

GW(config-route-map)#match ip address 2

GW(config-route-map)#set ip next-hop 22.2.2.2

GW(config)#route-map nat1 permit 10

GW(config-route-map)#match ip address 1

GW(config-route-map)#match interface serial0/0 !!匹配数据包的出口

GW(config)#route-map nat2 permit 10

GW(config-route-map)#match ip address 1

GW(config)#route-map nat3 permit 10

GW(config-route-map)#match ip address 2

GW(config-route-map)#match interface serial0/1

GW(config)#route-map nat4 permit 10

GW(config-route-map)#match ip address 2

GW(config)#ip nat inside source route-map nat1 interface serial0/0 overload

GW(config)#ip nat inside source route-map nat2 interface serial0/1 overload

GW(config)#ip nat inside source route-map nat3 interface serial0/1 overload

GW(config)#ip nat inside source route-map nat4 interface serial0/0 overload

~随着越来越多的人在家中或远程工作,一个可靠的路由器和Wi-Fi连接变得至关重要。通过参考本文介绍的设置技巧,您可以确保您的网络连接更快,更可靠,并保护您的隐私和安全。

扫描二维码推送至手机访问。

版权声明:本文由路由设置网发布,如需转载请注明出处。

本文链接:https://www.shoulian.org/luyou/post/22093.html

分享给朋友:

“思科路由器配置手册(推荐)” 的相关文章

怎么获取路由器的位置

怎么获取路由器的位置

今天给各位分享怎么获取路由器的位置的知识,其中也会对寻找路由器的位置进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站 本文内容目录一览: 1、如何查路由器网络地址 2、如何查看路由器地址 3、如何查看自己的路由器IP地址? 4、怎么查看路由器地址 5、怎么查看无线路由器的管理...

路由器环路ospf怎么配

路由器环路ospf怎么配

本篇文章给大家谈谈路由器环路ospf怎么配,以及ensp路由器ospf配置对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 本文内容目录一览: 1、路由器交换技术怎么配置ospf 2、华为ensp路由器ospf怎么配置 3、急。路由器ospf协议配置.高手请进 4、OSPF具体怎么...

怎么设置路由器网络稳定

怎么设置路由器网络稳定

针对怎么设置路由器网络稳定这个问题,本文将综合不同朋友对这个路由无线网络怎么设置稳定的知识为大家一起来解答,希望能帮到大家 本文内容目录一览: 1、路由器怎样设置连接网络比较稳定 2、路由器怎么设置比较好 3、怎么设置路由器,可以更稳定? 4、无线路由器如何设置信号稳定 5、路由器怎...

路由器宽带插口怎么接

路由器宽带插口怎么接

针对路由器宽带插口怎么接这个问题,本文将综合不同朋友对这个宽带插无线路由器哪个接口的知识为大家一起来解答,希望能帮到大家 本文内容目录一览: 1、wifi路由器的正确插法? 2、无线路由器网线插口怎么接线? 3、路由器如何连接宽带 4、路由器和宽带怎么连接? 5、联通宽带怎么连接路由...

重新登录路由器怎么登

重新登录路由器怎么登

今天和朋友们分享重新登录路由器怎么登相关的知识,相信大家通过本文介绍也能对路由器重置后怎么登录路由器有自已的收获和理解。自己轻松搞问题。本文内容目录一览: 1、怎样登录路由器 登录路由器的方法 2、我用的宽带更换了账户和密码,路由器如何重新登陆? 3、怎么登陆无线路由器,路由器登录地址是什么...

路由器怎么设置不锁定

路由器怎么设置不锁定

本篇文章给大家谈谈路由器怎么设置不锁定,以及路由器怎么设置不锁定wifi对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 本文内容目录一览: 1、怎么设置路由器能限制别人连接wifi 2、家用联通宽带,无线路由器被锁了怎么解 3、路由器被锁住怎么办? 4、一台电脑被锁定,路由器怎么...