祖瑞科技 全国计算机 网络IT运维社区!

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 6140|回复: 0

H3CNE 18 静态路由和默认路由

[复制链接]

205

主题

218

帖子

1286

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1286
发表于 2021-11-20 21:57:38 | 显示全部楼层 |阅读模式
18 静态路由和默认路由
                              
<H3C>system-view
[H3C]sysname r1
[r1]interface loopback 0
[r1-LoopBack0]ip address 192.168.10.100 32
[r1-LoopBack0]interface gigabitethernet 0/0
[r1-GigabitEthernet0/0]ip address 172.16.14.1 24
[r1-GigabitEthernet0/0]quit
[r1]ip route-static 0.0.0.0 0.0.0.0 172.16.14.4
<H3C>system-view
[H3C]sysname r2
[r2]interface loopback 0
[r2-LoopBack0]ip address 192.168.20.100 32
[r2-LoopBack0]interface gigabitethernet 0/0
[r2-GigabitEthernet0/0]ip address 172.16.24.2 24
[r2-GigabitEthernet0/0]quit
[r2]ip route-static 0.0.0.0 0.0.0.0 172.16.24.4
[r2]quit
<H3C>system-view
[H3C]sysname r3
[r3]interface loopback 0
[r3-LoopBack0]ip address 192.168.30.100 32
[r3-LoopBack0]interface gigabitethernet 0/0
[r3-GigabitEthernet0/0]ip address 172.16.34.3 24
[r3-GigabitEthernet0/0]quit
[r3]ip route-static 0.0.0.0 0.0.0.0 172.16.34.4
<H3C>system-view
[H3C]sysname r4
[r4]interface loopback 0
[r4-LoopBack0]ip address 192.168.50.100 32
[r4-LoopBack0]interface gigabitethernet 0/0
[r4-GigabitEthernet0/0]ip address 172.16.14.4 24
[r4-GigabitEthernet0/0]interface gigabitethernet 0/1
[r4-GigabitEthernet0/1]ip address 172.16.24.4 24
[r4-GigabitEthernet0/1]interface gigabitethernet 0/2
[r4-GigabitEthernet0/2]ip address 172.16.34.4 24
[r4-GigabitEthernet0/2]interface gigabitethernet 6/1
[r4-GigabitEthernet6/1]ip address 100.100.45.4 24
[r4-GigabitEthernet6/1]quit
[r4]ip route-static 192.168.10.0 255.255.255.0172.16.14.1
[r4]ip route-static 192.168.20.0 255.255.255.0172.16.24.2
[r4]ip route-static 192.168.30.0 255.255.255.0172.16.34.3
[r4]ip route-static 0.0.0.0 0.0.0.0 100.100.45.1
[r4]acl basic 2000
[r4-acl-ipv4-basic-2000]step 20
[r4-acl-ipv4-basic-2000]rule permit source any
[r4]interface gigabitethernet 6/1
[r4-GigabitEthernet6/1]nat outbound 2000
[r4-GigabitEthernet6/1]quit
<H3C>system-view
[H3C]sysname r5
[r5]interface loopback 0
[r5-LoopBack0]ip address 192.168.50.100 32
[r5-LoopBack0]interface gigabitethernet 0/0
[r5-GigabitEthernet0/0]ip address 100.100.45.1 24
[r5-GigabitEthernet0/0]quit

[r4]delete static-routes all  //删除所有静态路由

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
祖瑞(上海)网络科技有限公司
我们在全国范围提供企业IT运维、网络工程、弱电安装、监控安防、计算机产品收售、办公设备耗材等服务!
期待与您的合作!
邮箱:sanne@zurkj.com
电话:021-51850021 18918292296
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

公司网站

QQ|Archiver|手机版|小黑屋|祖瑞科技 全国计算机 网络IT运维社区! ( 沪ICP备16021636号-2 )

GMT+8, 2024-11-25 23:33 , Processed in 0.052630 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表