【无标题】

在这里插入图片描述
代码
R1

> [Huawei]sys r1 [r1]int g0/0/1 [r1-GigabitEthernet0/0/1]ip add
> 192.168.1.1 26 May 18 2023 16:11:17-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP  on the interface
> GigabitEthernet0/0/1 has entered the UP state. 
> [r1-GigabitEthernet0/0/1]int g 0/0/0 [r1-GigabitEthernet0/0/0]ip add
> 192.168.1.65 26 May 18 2023 16:11:48-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP  on the interface
> GigabitEthernet0/0/0 has entered the UP state. 
> [r1-GigabitEthernet0/0/0]q [r1-GigabitEthernet0/0/0]undo ip add
> 192.168.1.65
>                                                   ^ Error:Incomplete command found at '^' position. [r1-GigabitEthernet0/0/0]undo ip add
> 192.168.1.65 26 May 18 2023 16:25:20-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP  on the interface
> GigabitEthernet0/0/0 has entered the DOWN state. 
> [r1-GigabitEthernet0/0/0]int g0/0/0.1 [r1-GigabitEthernet0/0/0.1]ip
> add q
>                                   ^ Error: Wrong parameter found at '^' position. [r1-GigabitEthernet0/0/0.1]q [r1]dhcp enable Info: The
> operation may take a few seconds. Please wait for a moment.done.
> [r1]vlan ba	 [r1]vlan batch 2 3  Info: This operation may take a few
> seconds. Please wait for a moment...done. <r1>sys Enter system view,
> return user view with Ctrl+Z. [r1]int g 0/0/0.1
> [r1-GigabitEthernet0/0/0.1]ip add 192.168.1.65 28
> [r1-GigabitEthernet0/0/0.1]dot1q termination vid 2  May 18 2023
> 16:36:34-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
> on the interface GigabitEthernet0/0/0.1 has entered the UP state. 
> [r1-GigabitEthernet0/0/0.1]arp broadcast enable 
> [r1-GigabitEthernet0/0/0.1]int g0/0/0.2 [r1-GigabitEthernet0/0/0.2]ip
> add 192.168.1.81 28 [r1-GigabitEthernet0/0/0.2]arp broadcast enable
> [r1-GigabitEthernet0/0/0.2]dot1q termination vid 3 May 18 2023
> 16:37:43-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
> on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
> [r1-GigabitEthernet0/0/0.2]q [r1]vlan 4 [r1-vlan4]q [r1]vlan batch 2
> to 3 Info: This operation may take a few seconds. Please wait for a
> moment...done. [r1]vlan batch 2 to 4 Info: This operation may take a
> few seconds. Please wait for a moment...done. [r1]int g 0/0/0.3
> [r1-GigabitEthernet0/0/0.3]ip add 192.168.1.97 28
> [r1-GigabitEthernet0/0/0.3]dot1q termination vid 4 May 18 2023
> 16:42:45-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
> on the interface GigabitEthernet0/0/0.3 has entered the UP state. 
> [r1-GigabitEthernet0/0/0.3]arp broadcast enable
> [r1-GigabitEthernet0/0/0.3]q [r1]ip pool 1 [r1-ip-pool-1]network
> 192.168.1.64 mask 28 [r1-ip-pool-1]gateway-list 192.168.1.65 [r1]ip pool 2  Info: It's successful to create an IP address pool.
> [r1-ip-pool-2]net	 [r1-ip-pool-2]netbios-type [r1-ip-pool-2]network
> 192.168.1.80 mask 28 [r1-ip-pool-2]gat	 [r1-ip-pool-2]gateway-list 192.168.1.81 [r1-ip-pool-2]q [r1]int g 0/0/0.1 [r1-GigabitEthernet0/0/0.1]dhcp select interface Error: The IP address
> segment has been used by a global IP pool.
> [r1-GigabitEthernet0/0/0.1]q 
> [r1]ip pool 1 
> [r1-ip-pool-1]dns-list 8.8.8.8 
> [r1-ip-pool-1]q 
> [r1]ip pool 2 
> [r1-ip-pool-2]dns-list 8.8.8.8 
> [r1-ip-pool-2]q 
> [r1]int g 0/0/0.1 
> [r1-GigabitEthernet0/0/0.1]dhcp select global 
> [r1-GigabitEthernet0/0/0.1]int g 0/0/0.2
> [r1-GigabitEthernet0/0/0.2]dhcp select global 
> [r1]ospf 1 rou 1.1.1.1
> [r1-ospf-1]a	 [r1-ospf-1]area 0 [r1-ospf-1-area-0.0.0.0]network
> 192.168.1.65 0.0.0.0 [r1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0 [r1-ospf-1-area-0.0.0.0]network 192.168.1.81 0.0.0.0 [r1-ospf-1-area-0.0.0.0]network 192.168.1.97 0.0.0.0 [r1]acl 3000
> [r1-acl-adv [r1-acl-adv-3000] [r1-acl-adv-3000]rule deny ip source 
> 192.168.1.64 0.0.0.15 destination 203.1.1. 100 0.0.0.0 [r1-acl-adv-3000]q [r1]int g 0/0/0.1
> [r1-GigabitEthernet0/0/0.1]traffic-filter inbound acl 3000
> [r1-GigabitEthernet0/0/0.1]q

R2

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net 192.168.1.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net 192.168.1.129 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 192.168.1.161 0.0.0.0
[r2]acl 2000
[r2-acl-basic-2000]rule pr	
[r2-acl-basic-2000]rule per	
[r2-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r2-acl-basic-2000]q
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]nat outbound 2000
 Info: The NAT address pool is empty 
[r2-GigabitEthernet0/0/2]q
[r2]nat address-group 1 202.1.1.
[r2]ip route-static 0.0.0.0 0 202.1.1.2
[r2]ospf 1
[r2-ospf-1]default-route-advertise 
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]ip add 202.1.1.1 30
May 18 2023 18:58:29-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r2-GigabitEthernet0/0/2]display ip routing-table protocol static
 <r2> sys
[r2]int g0/0/2
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet
 inside 192.168.1.98 telnet 
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
[r2-GigabitEthernet0/0/2]

R3.

<Huawei>sys
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 202.1.1.2 30
May 18 2023 17:23:21-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 203.1.1.1 24
May 18 2023 17:23:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 

TEST 1

[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 203.1.1.2 24
May 18 2023 17:26:27-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei]ip route-static 202.1.1.1 32 203.1.1.1

LSW1

<Huawei>sys
[Huawei]vlan ba	
[Huawei]vlan batch 2 to 4
[Huawei-GigabitEthernet0/0/4]port link-type access
[Huawei-GigabitEthernet0/0/4]port default vlan 4
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 3

PC1在这里插入图片描述
PC2
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值