Route-1 - static_route

直接上拓扑图:

静态路由网络拓扑图

包含了 配置口令,PPP 封装,pap 认证以及静态路由配置 4 种命令。

配置口令

config>> line console 0
config-line>> pass cisco
config-line>> login

config>>enable sec ruijie

PPP封装,pap认证

home router

config>> int ser 0/1/0
config-if>> ip address 60.205.184.5 255.255.255.0
config-if>> clock rate 9600 // DCE需要配置
config-if>> enca ppp
config-if>> ppp auth pap
config-if>> ppp pap sent home pass 0 123 // 0 是加密
config-if>> exit

config>> username school pass 123

school router

config>> int ser 0/1/0
config-if>> ip address 60.205.184.6 255.255.255.0
config-if>> enca ppp
config-if>> ppp auth pap
config-if>> ppp pap sent school pass 0 123 // 0 是加密
config-if>> exit

config>> username home pass 123

静态路由配置

注意:
1)在以太网链路,配置静态路由的时候,配置为出接口+下一跳的ip地址的形式。
2)在ppp、hdlc广域网链路,推荐静态路由配置为本地出接口

home router

config>> ip route 192.168.3.0 255.255.255.0 ser 0/1/0   // 本地出接口
home# show ip route

home router show ip route

school router

config>> ip route 192.168.1.0 255.255.255.0 ser 0/1/0   // 本地出接口
school# show ip route

school router show ip route

最终结果如下

home router show run 结果如下:
home router show run

school router show run 结果如下:
school router show run

结果验证

192.168.1.45 ping 192.168.3.45
home ping school

192.168.3.45 ping 192.168.1.45
school ping home

pkt 文件在我的 github 上:https://github.com/YLD10/Route

猜你喜欢

转载自blog.csdn.net/yld10/article/details/80202891