美文网首页
eNSP四:单臂路由

eNSP四:单臂路由

作者: 沿哲 | 来源:发表于2020-09-14 11:18 被阅读0次

任务

  • 修改路由器名称:AR1名为R1, AR2名为R2 。
    按照图上标识,配置设备的IP地址。

  • 在R1上配置动态NAT,(不转换端口信息)
    配置acl 2000,匹配LAN1的网络, 规则编号为5。
    公网地址池组1的范围是:100.1.1.10~~100.1.1.20

  • 在R2上配置easy ip
    配置acl 2000,匹配LAN2的网络,规则编号为5。

要配置的网络结构如下图所示,目标是使PC1和PC2能相互通信


要配置的图

路由器AR1

<Huawei>system-view 
[Huawei]sysname R1
[R1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 12
[R1-GigabitEthernet0/0/0.1]ip add 192.168.255.1 24
[R1-GigabitEthernet0/0/0.1]arp broadcast enable 
[R1-GigabitEthernet0/0/0.1]int g0/0/0.2
[R1-GigabitEthernet0/0/0.2]dot1q termination vid 21
[R1-GigabitEthernet0/0/0.2]ip add 192.168.1.1 24
Sep  8 2020 16:16:54-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
[R1-GigabitEthernet0/0/0.2]arp broadcast enable

交换机SW1

[SW1]vlan batch 12 21 \\注意语句的顺序,这一句要先有
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/
Sep  8 2020 16:12:42-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.2
[SW1-Ethernet0/0/2]port link-type access    
[SW1-Ethernet0/0/2]port default vlan 12
[SW1-Ethernet0/0/2]int e0/0/3
Sep  8 2020 16:13:02-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW1-Ethernet0/0/3]port link-type access 
[SW1-Ethernet0/0/3]port default vlan 21
[SW1-Ethernet0/0/3]q
[SW1]q
[SW1]int e0/0/1  \\端口1的配置容易忘!
[SW1-Ethernet0/0/1]port link-type trunk 
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 12 21

配置成功后ping检验如下图

配置成功图

相关文章

网友评论

      本文标题:eNSP四:单臂路由

      本文链接:https://www.haomeiwen.com/subject/oohjektx.html