多平台统一管理软件接口,如何实现多平台统一管理软件接口
534
2022-09-23
Telnet. 直连路由原理和路由器转发原则(telnet默认端口)
Telnet
第一步:基本配置R1和R2设备配置IP地址 检查网络连通性
第二步:开启telnet服务器的telnet服务[R2]telnet server enable -----华为默认情况已经开启了Error: TELNET server has been enabled[R2]
第三步:开启telnet服务器的VTY功能 开启远程功能[R2]user-interface vty ?INTEGER<0-4,16-20> The first user terminal interface to be configured[R2]user-interface vty 0 4 -----0到4表示最多有5个同时登录到telnet服务器[R2-ui-vty0-4]auth [R2-ui-vty0-4]authentication-mode ? -----选择认证模式aaa AAA authenticationpassword Authentication through the password of a user terminal interface [R2-ui-vty0-4]authentication-mode password Please configure the login password (maximum length 16):Huawei@123 ---输入密码Huawei@123
第四步:在客户端进行telnet远程测试
Login authentication
Password: -----输入正确的密码 不显示密码
权限问题:
在服务器端设备权限为级别1[R2-ui-vty0-4]user privilege level 1
[R1]user-interface console 0 -----进入到console接口 [R1-ui-console0]idle-timeout ?INTEGER<0-35791> Set the number of minutes before a terminal user times out[R1-ui-console0]idle-timeout 0 -----永不超时
密码模式 AAA和password
巡检一般给1级别
S
客户端 用户模式
查看
telent极不安全 抓包可以抓到密码
什么是路由 什么是路由表路由器的认识路由器的每一个接口处于在不同的网段里面
路由的概念:就是描述到达目标一个路径
路由表的概念:将很多条路由(路径)归纳起来的一张表格
通过命令行display ip routing-table
[R1]display ip routing-table Route Flags: R - relay, D - download to fib
Routing Tables: PublicDestinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.12.0/24 Direct 0 0 D 192.168.12.1 GigabitEthernet0/0/0192.168.12.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.12.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[R1]
路由表是怎么形成的?通过直连路由和非直连路由进行构成
路由器当中默认的四条路由[R1]display ip routing-table Route Flags: R - relay, D - download to fib
Routing Tables: PublicDestinations : 4 Routes : 4
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
什么是直连路由?产生条件1、接口配置IP地址(备注:接口指的是物理接口或者逻辑接口或者虚拟接口等)2、并企这个接口的IP地址的物理和协议状态都得是UP的两个条件同时满足的时候 才能产生直连路由
直连路由有啥作用?R1通过直连路由访问到R2设备 就是直连设备的通信
路由表当中字段讲解
Routing Tables: PublicDestinations : 8 Routes : 8 Destination/Mask Proto Pre Cost Flags NextHop Interface10.1.12.0/24 Direct 0 0 D 10.1.12.1 GigabitEthernet0/0/010.1.12.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/010.1.12.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/010.1.23.0/24 Static 60 0 RD 10.1.12.2 GigabitEthernet0/0/0127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0Destination/Mask:目标网络:你想去往目标地的网络Proto:路由来源:要么是通过直连学习到 要么是通过静态或者动态构建出来的Pre:优先级:直连是0 OSPF是10和150 静态是60 rip是100 BGP是255Cost:开销值(cost):可以理解为花销成本Flags:标志位NextHop:下一跳:你想要去往目标地的下一站 127.0.0.1表示的是抵达设备自身流量Interface:出接口:数据包发送的接口注意:一般来说 出接口和下一跳在同一个网段(也有不在一个网段的情况,比如BGP)
1、被转发的路由条路必须存在2、根据最长匹配原则进行匹配 也就是掩码越长越好3、当掩码一样 会比较优先级 优先级是最小最优先4、当掩码一样 优先级一样的情况下 会比较开销 也就是cost值 这个数值越小越优先5、当前面的所有原则是一样的情况 负载分担
负载分担
路由器转发路由的方式 (尽力而为)
有路由条目就帮你转发 没有就丢弃优先级的数值直连 direct 0静态 static 60RIP协议 100OSPF 10
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~