
要求:

R1:
<Huawei>u t m
Info: Current terminal monitor is off.
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R1
[R1]us
[R1]user-int
[R1]user-interface co
[R1]user-interface console 0
[R1-ui-console0]id
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]q
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.0.0.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 11.0.0.1 24
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 12.0.0.1 24
[R1-GigabitEthernet0/0/2]ospf
[R1-GigabitEthernet0/0/2]q
[R1]ospf 1
R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]net
[R1-ospf-1-area-0.0.0.0]network 10.0.0.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 12.0.0.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255
ospf-1-area-0.0.0.0]q
[R1-ospf-1]q
[R1]acl 3000
1-acl-adv-3000]rule permit ip source 192.168.10.0 0.0.0.255
[R1-acl-adv-3000]int g0/0/1
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]nat outbound 3000

**R2:**
<Huawei>u t m
Info: Current terminal monitor is off.
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R2
[R2]user-interface co
[R2]user-interface console 0
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]q
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[R2-GigabitEthernet0/0/0]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 24.0.0.2 24
[R2-GigabitEthernet0/0/2]int g0/0/1
R2-GigabitEthernet0/0/1]ip add 23.0.0.2 24
[R2]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[R2]ip pool 1
Info: It's successful to create an IP address pool.
[R2-ip-pool-1]gateway-list 192.168.40.1
[R2-ip-pool-1]network 192.168.40.0 mask 24
[R2-ip-pool-1]dns-list 8.8.8.8
R2-ip-pool-1]lease day 7
[R2-ip-pool-1]int g0/0/1
R2-GigabitEthernet0/0/1]dhcp select global
[R2-GigabitEthernet0/0/1]q
[R2]ospf 1

博客内容仅提及了'ping'及'要求',未给出更多关键信息。推测可能与网络中ping命令的使用要求有关。
&spm=1001.2101.3001.5002&articleId=112520102&d=1&t=3&u=654c0778c527487f9adbed9b589cf155)
1665

被折叠的 条评论
为什么被折叠?



