华强电子网

电子元器件
采购信息平台

扫码下载
手机洽洽

  • 华强电子网公众号

    电子元器件原材料

    采购信息平台

  • 华强电子网移动端

    生意随身带

    随时随地找货

  • 华强微电子公众号

    专注电子产业链

    坚持深度原创

  • 华强商城公众号

    一站式电子元器件

    采购平台

  • 芯八哥公众号

    半导体行业小灵通

RIP缺省静态路由的重发布配置教程

来源:华强电子网 作者:华仔 浏览:834

标签:

摘要: R1的配置 :(config)#interface s1 (-if)#ip address 10.1.1.1 255.255.255.0 (-if)#no shutdown (config)#interface loop 0 (-if)#ip address 1.1.1.1 255.255.255.0 (config)#router rip (config-router)#network 10.0

R1的配置 :(config)#interface s1
(-if)#ip address 10.1.1.1 255.255.255.0
(-if)#no shutdown
(config)#interface loop 0
(-if)#ip address 1.1.1.1 255.255.255.0
(config)#router rip
(config-router)#network 10.0.0.0
(config-router)#network 1.0.0.0

R2的配置(config)#interface s0
(-if)#clock rate 64000
(-if)#ip address 10.1.1.2 255.255.255.0
(-if)#no shutdown
(config)#interface s1
(-if)#ip add 172.16.1.2 255.255.255.0
(-if)#no shutdown
(config)#interface loop 0
(-if)#ip add 2.2.2.2 255.255.255.0
(config)#router rip
(-router)#network 10.0.0.0
(-router)#network 172.16.0.0
(-router)#network 2.0.0.0

R3的配置:(config)#interface s0
(-if)#clock rate 64000
(-if)#ip address 172.16.1.3 255.255.255.0
(-if)#no shutdown
(config)#interface s1
(-if)#ip address 192.168.1.3 255.255.255.0
(-if)#no shutdown
(config)#interface loop 0
(-if)#ip address 3.3.3.3 255.255.255.0
(config)#ip route 0.0.0.0 0.0.0.0 s1
(config)#router rip
(-router)#network 172.16.0.0
(-router)#network 192.168.1.0
(-router)#network 3.0.0.0
(config)#ip default-network 172.16.0.0注:将缺省路由发布到R1,R2

R4的配置(config)#interface s0
(-if)#clock rate 64000
(-if)#ip address 192.168.1.4 255.255.255.0
(-if)#no shutdown
(-if)#ip add 4.4.4.4 255.255.255.0
(config)#ip route 0.0.0.0 0.0.0.0 s0
型号 厂商 价格
EPCOS 爱普科斯 /
STM32F103RCT6 ST ¥461.23
STM32F103C8T6 ST ¥84
STM32F103VET6 ST ¥426.57
STM32F103RET6 ST ¥780.82
STM8S003F3P6 ST ¥10.62
STM32F103VCT6 ST ¥275.84
STM32F103CBT6 ST ¥130.66
STM32F030C8T6 ST ¥18.11
N76E003AT20 NUVOTON ¥9.67