初學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
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章