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

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

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

一. 策略路由配置

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、路由器密码是多少 一般路由器的初始账号密码是什么啊 路由器的登录密码是多少 路由器一般默认...

路由器的tftp怎么关闭

路由器的tftp怎么关闭

今天和朋友们分享路由器的tftp怎么关闭相关的知识,相信大家通过本文介绍也能对tftp 设置有自已的收获和理解。自己轻松搞问题。本文内容目录一览: 1、如何关闭路由器TFTP 2、怎么关闭TFTP服务器 3、路由器tftp服务器怎么关 4、如何更改路由器tftp和xmodem功能,使其更...

路由器无线怎么改名

路由器无线怎么改名

本篇文章给大家谈谈路由器无线怎么改名,以及路由器无线名称可以改吗对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 本文内容目录一览: 1、路由器怎么改名字 路由器如何改名字 2、怎么修改路由器的wifi名称和密码 3、wifi路由器怎么修改名字? 4、怎么修改无线网名称 5、w...

怎么在路由器添加mac

怎么在路由器添加mac

今天给各位分享怎么在路由器添加mac的知识,其中也会对怎么在路由器添加访问控制列表去过滤某些IP数据包进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站 本文内容目录一览: 1、路由器mac地址怎么设置 2、路由器里MAC地址是什么啊怎么设置 3、路由器mac怎么设置 4、路由器M...

鹰潭路由器怎么样

鹰潭路由器怎么样

当朋友们看到这个文章时想必是想要了解鹰潭路由器怎么样相关的知识,这里同时多从个角度为大家介绍路由器网络怎么样相应的内容。 本文内容目录一览: 1、为什么大多数无线路由默认信道都是1,6,11? 2、路由器怎么样 3、目前开通5g的城市有哪些? 4、WiFi:每个无线路由器的信道都是固定的...

蚂蚁帮路由器怎么联网

蚂蚁帮路由器怎么联网

有很多朋友不知道蚂蚁帮路由器怎么联网要如何操作,今天为大家整理了很多蚂蚁帮路由器怎么联网设置相关的答案,组成一篇内容丰富的文章,希望能到您 本文内容目录一览: 1、新买个路由器怎么设置才能上网 2、蚂蚁帮路由管理密码是多少 3、家里买了新路由器怎么安装正常上网 4、怎么设置路由器才能连接...