初学HCIA:华为静态路由配置

在这里插入图片描述
子网划分192.168.1.0 24
主干:192.168.1.0/ 27
192.168.1.0/30 192.168.1.4/30 192.168.1.8/30 192.168.1.12/30 192.168.1.16 /30
192.168.1.20 /30
RI:192.168.1.32 /27
192.168.1.32/28 192.168.1.48/28
R2:192.168.1.64/ 27
192.168.1.64/28 192.168.1.80 /28
R3:192.168.1.96 /27
R4:192.168.1.128/27
192.168.1.128/28 192.168.1.144/28
R5:192.168.1.160/27
R1:
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip ad
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Feb 6 2020 18:14:31-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]inte g0/0/1
[r1-GigabitEthernet0/0/1]ip ad 192.168.1.9 30
[r1-LoopBack0]ip ad 192.168.1.33 28
[r1-LoopBack0]int l1
[r1-LoopBack1]ip ad 192.168.1.49 28
[r1]ip route-static 0.0.0.0 0 192.168.1.2
[r1]ip route-static 0.0.0.0 0 192.168.1.10
r1]user-interface vty 0 4
[r1-ui-vty0-4]au
[r1-ui-vty0-4]authentication-mode pa
[r1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):1234
R2:R3:R4:R5路由配置基本一致

R3:[r3]dhcp enable r3]ip pool
[r3]ip pool 1
Info: It’s successful to create an IP address pool.
[r3-ip-pool-1]network 192.168.1.96 mask 255.255.255.240
[r3-ip-pool-1]gateway-list 192.168.1.97
[r3-ip-pool-1]int g0/0/2
[r3-GigabitEthernet0/0/2]dhcp select global
R4:ip route-static 192.168.1.128 27 NULL 0
[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 80
R5:
[r5]acl 2000
[r5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r5]int g0/0/1
[r5-GigabitEthernet0/0/1]nat outbound 2000
[r5-GigabitEthernet0/0/1]nat static protocol tcp global
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值