网站收录低的原因,优化师证书,jsp建网站,电商网站 解决方案一、实验拓扑如图#xff1a; 接口ip配置网络 #xff1a;10.17.12.* 10.17.13.* #xff0c;10.17.23.*
回环接口配置分别为 10.0.1.1 #xff0c;10.0.1.2#xff0c;10.0.1.3对应三台路由器
ar1配置接口ip interface GigabitEthernet0/0/0 ip address 10.17.12.1…一、实验拓扑如图 接口ip配置网络 10.17.12.* 10.17.13.* 10.17.23.*
回环接口配置分别为 10.0.1.1 10.0.1.210.0.1.3对应三台路由器
ar1配置接口ip interface GigabitEthernet0/0/0 ip address 10.17.12.1 255.255.255.0 interface GigabitEthernet0/0/1 ip address 10.17.23.1 255.255.255.0 环路ip
interface LoopBack0 ip address 10.0.1.1 255.255.255.255 ar2配置接口ip
interface GigabitEthernet0/0/0 ip address 10.17.12.2 255.255.255.0 interface GigabitEthernet0/0/1 ip address 10.17.13.1 255.255.255.0 ar2环路ip
interface LoopBack0 ip address 10.0.1.2 255.255.255.255 ar3接口和环路ip
interface GigabitEthernet0/0/0 ip address 10.17.13.2 255.255.255.0 interface GigabitEthernet0/0/1 ip address 10.17.23.2 255.255.255.0 interface LoopBack0 ip address 10.0.1.3 255.255.255.255 此时接口ip可以同网段可以相互ping同但是路由器回环ip不通 二、配置动态ospf路由方法
定义进程号命名区域发布网络
ospf 1 router-id 10.0.1.3 多数用路由的回环ip作为router-id
area 0 同区域内的路由可以相互学习 network 10.0.1.3 0.0.0.0 发布网络注意反掩码的使用 network 10.17.13.0 0.0.0.255 network 10.17.23.0 0.0.0.255 其他同理 在AR1配置默认路由看其他两个设备能否自动学习
ospf 1 router-id 10.0.1.1 default-route-advertise always 查看AR2和AR3是否有默认路由到0.0.0.0的网络 此时测试各路由的环路ip能否通信 正常通信 三.ospf的认证只有经过认证才可以相互发现
对设备的接口试图配置
ar1
interface GigabitEthernet0/0/0 ospf authentication-mode md5 10 cipher jw123456
interface GigabitEthernet0/0/1
ospf authentication-mode md5 10 cipher jw123456
ar2和ar3同理密文要一致
四、通过修改cost来选择路径ar1-ar2-ar3
当前路径 ar1-ar3 将ar1出口cost设置10再次查看到ar3的路径
interface GigabitEthernet0/0/1 ospf cost 10 再次查看路径 先到ar2再到ar3
完成实验。
总结
1.基本接口的ip配置了解设备的环回接口不依赖任何物理接口类似设备的id
2.ospf动态路由的配置方法ospf进程号router-idarea区域最重要相同区域才可以相互学习路由发布网络networkip网络起始地址反掩码
3.ospf的认证是配置在设备的接口下的
4.cost的修改可以改变路由方向