关于#ensp#的问题,如何解决?

img


fvvggybvfyyhbvv
求过程 代码
服了,难度hcia都没达到

该回答通过自己思路及引用到GPTᴼᴾᴱᴺᴬᴵ搜索,得到内容具体如下。根据您提供的拓扑图和网络需求,以下是每个设备的配置和相应的命令:
1.修改设备名称并配置IP地址
交换机Switch1:

hostname Switch1
interface Ethernet0/0/1
 description To R1
 ip address 200.10.10.2 255.255.255.252
interface Ethernet0/0/2
 description To AR2
 switchport access vlan 10
interface Ethernet0/0/3
 description To AR3
 switchport access vlan 20
interface Vlan10
 ip address 192.168.1.254 255.255.255.0
interface Vlan20
 ip address 192.168.2.254 255.255.255.0

路由器R1:

hostname R1
interface GigabitEthernet0/0/0
 description To AR1
 ip address 200.10.10.1 255.255.255.252
interface GigabitEthernet0/0/1.10
 encapsulation dot1Q 10
 ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/0/1.20
 encapsulation dot1Q 20
 ip address 192.168.2.1 255.255.255.0
interface GigabitEthernet0/0/1
 description To Switch1
 switchport mode trunk

路由器AR1:

hostname AR1
interface GigabitEthernet0/0/0.10
 encapsulation dot1Q 10
 ip address 192.168.1.253 255.255.255.0
interface GigabitEthernet0/0/0.20
 encapsulation dot1Q 20
 ip address 192.168.2.253 255.255.255.0
interface GigabitEthernet0/0/0
 description To Switch1
 no shutdown

路由器AR2:

hostname AR2
interface GigabitEthernet0/0/1
 ip address 192.168.10.254 255.255.255.0
interface GigabitEthernet0/0/2
 description To Switch1
 switchport mode access
 switchport access vlan 10
interface GigabitEthernet0/0/3
 description To AR3
 switchport mode access
 switchport access vlan 20
ip dhcp pool DHCP_Pool
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.254

路由器AR3:

hostname AR3
interface GigabitEthernet0/0/1
 description To Switch1
 switchport mode access
 switchport access vlan 20
interface Loopback0
 ip address 192.168.20.1 255.255.255.255
interface Loopback1
 ip address 192.168.30.1 255.255.255.255

路由器AR4:

hostname AR4
interface Ethernet0/0/1
 ip address 200.10.10.5 255.255.255.252
interface Loopback0
 ip address 100.10.10.1 255.255.255.255

PC1:

ip address 192.168.1.100 255.255.255.0
default-gateway 192.168.1.254

2.配置OSPF路由协议

路由器R1:

router ospf 1
 network 192.168.1.0 0.0.0.255 area 0
 network 192.168.2.0 0.0.0.255 area 0

路由器AR1:

router ospf 1
 network 192.168.1.0 0.0.0.255 area 0
 network 192.168.2.0 0.0.0.255 area 0

路由器AR2:

router ospf 1
 network 192.168.10.0 0.0.0.255 area 0

路由器AR3:

router ospf 1
 network 192.168.20.1 0.0.0.0 area 0
 network 192.168.30.1 0.0.0.0 area 0

3.配置NAT地址转换

路由器AR1:

ip nat pool NAT_Pool 200.1.1.1 200.1.1.5 netmask 255.255.255.0
ip access-list standard NAT_ACL
 permit 192.168.1.0 0.0.0.255
 permit host 192.168.30.1
ip nat inside source list NAT_ACL pool NAT_Pool

4.配置静态路由

路由器AR3:

ip route 0.0.0.0 0.0.0.0 192.168.2.253

路由器AR4:

ip route 192.168.1.0 255.255.255.0 200.10.10.2
ip route 192.168.2.0 255.255.255.0 200.10.10.2

5.配置ACL包过滤防火墙

路由器AR3:

ip access-list extended ACL_Block_PC1
 deny ip host 192.168.1.100 host 192.168.30.1
 permit ip any any
interface Loopback1
 ip access-group ACL_Block_PC1 in

6.配置DHCP地址池

路由器AR2:

ip dhcp excluded-address 192.168.10.254
ip dhcp pool DHCP_Pool
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.254

至此,根据您提供的网络需求,所有设备的配置都已完成。


如果以上回答对您有所帮助,点击一下采纳该答案~谢谢