HUAWEI HCIA R&S 静态路由(华为mate40)

网友投稿 401 2022-09-22


HUAWEI HCIA R&S 静态路由(华为mate40)

interface GigabitEthernet0/0/0 ip address 192.168.12.1 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.1.254 255.255.255.0

R2

interface GigabitEthernet0/0/0 ip address 192.168.12.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.23.2 255.255.255.0

R3

interface GigabitEthernet0/0/0 ip address 192.168.23.3 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.34.3 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 192.168.2.254 255.255.255.0

R4

interface GigabitEthernet0/0/0 ip address 192.168.34.4 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.3.254 255.255.255.0

静态路由的配置静态路由标准配法 [R2]ip route-static X.X.X.X mask 出接口 下一跳 R1配置到达192.168.2.0/24与192.168.3.0/24网段静态路由

[R1]ip route-static 192.168.2.0 24 GigabitEthernet 0/0/0 192.168.12.2 [R1]ip route-static 192.168.3.0 24 GigabitEthernet 0/0/0 192.168.12.2

R2配置到达192.168.1.0/24 192.168.2.0/24与192.168.3.0/24网段静态路由

[R2]ip route-static 192.168.1.0 24 GigabitEthernet 0/0/0 192.168.12.1 [R2]ip route-static 192.168.2.0 24 GigabitEthernet 0/0/1 192.168.23.3 [R2]ip route-static 192.168.3.0 24 GigabitEthernet 0/0/1 192.168.23.3

R3配置到达192.168.1.0/24与192.168.3.0/24网段静态路由

[R3]ip route-static 192.168.1.0 24 GigabitEthernet 0/0/0 192.168.23.2 [R3]ip route-static 192.168.3.0 24 GigabitEthernet 0/0/1 192.168.34.4

R4配置到达192.168.1.0/24 192.168.2.0/24网段静态路由

[R4]ip route-static 192.168.1.0 24 GigabitEthernet 0/0/0 192.168.34.3 [R4]ip route-static 192.168.2.0 24 GigabitEthernet 0/0/0 192.168.34.3


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:假装网络工程师16——路由策略filter-policy与route-policy(使用filter-policy过滤路由)
下一篇:Java队列篇之实现数组模拟队列及可复用环形队列详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~