思博出品,必出精品,来思博学真操实练。Section 2路由部分Section 2.1 VRRPCore-01:interface Vlanif10ip address 192.168.10.252 255.255.255.0vrrp vrid 1 virtual-ip 192.168.10.254vrrp vrid 1 priority 110vrrp vrid 1 preempt-mode timer delay 2vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 20 /* 监控上联接口,当上联异常时,自动降低20的优先级,让Core-02成为VLAN10主网关*/#interface Vlanif20ip address 192.168.20.252 255.255.255.0vrrp vrid 2 virtual-ip 192.168.20.254vrrp vrid 2 preempt-mode timer delay 2Core-02:interface Vlanif10ip address 192.168.10.253 255.255.255.0vrrp vrid 1 virtual-ip 192.168.10.254vrrp vrid 1 preempt-mode timer delay 2#interface Vlanif20ip address 192.168.20.253 255.255.255.0vrrp vrid 2 virtual-ip 192.168.20.254vrrp vrid 2 priority 110vrrp vrid 2 preempt-mode timer delay 2vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 20 /* 监控上联接口,当上联异常时,自动降低20的优先级,让Core-01成为VLAN20主网关*/
Section 2.2 OSPF基础配置Core-01:/*配置VLAN30接口,用于与R1进行互联*/interface GigabitEthernet0/0/1port link-type accessport default vlan 30#interface Vlanif30ip address 192.168.100.1 255.255.255.252#router id 3.3.3.3#ospf 2016area 0.0.0.1 /*Core-01上所有接口都为区域1*/ network 192.168.10.252 0.0.0.0 network 192.168.20.252 0.0.0.0 network 192.168.100.1 0.0.0.0Core02:/*配置VLAN40接口,用于与R1进行互联*/interface GigabitEthernet0/0/1port link-type accessport default vlan 40interface Vlanif40ip address 192.168.100.5 255.255.255.252#router id 4.4.4.4#ospf 2016area 0.0.0.1 /*Core-02上所有接口都为区域1*/ network 192.168.10.253 0.0.0.0 network 192.168.100.5 0.0.0.0 network 192.168.20.253 0.0.0.0R1:interface Serial1/0/0link-protocol pppip address 192.168.100.9 255.255.255.252#interface GigabitEthernet0/0/0ip address 192.168.100.2 255.255.255.252#interface GigabitEthernet0/0/1ip address 192.168.100.6 255.255.255.252#router id 1.1.1.1 /*配置R1路由器在路由协议中的名字*/#ospf 2016area 0.0.0.0 network 192.168.100.9 0.0.0.0area 0.0.0.1 network 192.168.100.2 0.0.0.0 network 192.168.100.6 0.0.0.0R2:interface Serial1/0/0link-protocol pppip address 192.168.100.10 255.255.255.252#interface GigabitEthernet0/0/0ip address 192.168.200.254 255.255.255.0#router id 2.2.2.2#ospf 2016area 0.0.0.0 network 192.168.100.10 0.0.0.0 network 192.168.200.254 0.0.0.0
Section 2.3 OSPF验证R1:interface Serial1/0/0ospf authentication-mode md5 1 cipher 123R2:interface Serial1/0/0ospf authentication-mode md5 1 cipher 123认证成功后,R1与R2能够正常建立邻居关系,如果密码不正确,R1与R2无法正常建立邻居关系!思博SPOTO出品,必出精品,来思博学真操实练。
思博网络始终围绕客户需求持续创新,加大课程研发投入,厚积薄发,推动个人成长,加速职业进程,为世界节省培养ICT架构师的时间,SPOTO思博网络成立于2003年,深知行业发展的规律,从实际认证需求出发,16年的认证培训经验沉淀了一套独有的IT互联网技术人才培训体系,业务遍及全球六大洲,共计124个*,是一家真正意义上的全球互联网技术人才培训教育机构。2019年教学里程碑:累计培养了1951位IE,教学历程碑:1年培养844位IE专家人才,在线听课人数突破31万+,新增VIP学员超过1.3万,荣获*高新技术企业资质,腾讯云官方授权合作伙伴,学员覆盖全球150个*和地区,获选腾讯课堂严选课程认证(6万家机构严选4家),连续第三年获得腾讯课堂年度官方认证机构。