实战干货网络综合实验配置看了秒会(OSPF、RIP、DHCP、NAT、vlan划分、IP地址规划、路由重分发、服务器、动态路由下发默认)华为(ensp)

一、实验目的和环境

通过对实验模拟设备的配置,熟练掌握华为网络设备的配置命令,熟悉设备的功能,使模拟网络通畅。华为(ensp)模拟器

二、实验规划拓扑图

在这里插入图片描述

三、实验设备配置

LSW1的配置

sysname LSW1
vlan batch 11 12 1000 1001
interface Vlanif11
ip address 10.1.11.1 255.255.255.0
interface Vlanif12
ip address 10.1.12.1 255.255.255.0
interface Vlanif1000
ip address 10.1.122.1 255.255.255.0
interface Vlanif1001
ip address 10.1.111.1 255.255.255.0
interface Eth-Trunk1
port link-type access
port default vlan 1000
mode lacp-static
interface GigabitEthernet0/0/1
port link-type access
port default vlan 1001
interface GigabitEthernet0/0/2
port link-type access
port default vlan 11
interface GigabitEthernet0/0/3
port link-type access
port default vlan 12
interface GigabitEthernet0/0/5
eth-trunk 1
interface GigabitEthernet0/0/6
eth-trunk 1
interface LoopBack0
ip address 11.11.11.11 255.255.255.255
ospf 1 router-id 11.11.11.11
area 0.0.0.0
network 10.1.11.0 0.0.0.255
network 10.1.12.0 0.0.0.255
network 10.1.122.0 0.0.0.255
network 10.1.111.0 0.0.0.255
network 11.11.11.11 0.0.0.0

LSW2 的配置

sysname LSW2
vlan batch 13 14 1000 1002
interface Vlanif13
ip address 10.1.13.1 255.255.255.0
interface Vlanif14
ip address 10.1.14.1 255.255.255.0
interface Vlanif1000
ip address 10.1.122.2 255.255.255.0
interface Vlanif1002
ip address 10.1.112.2 255.255.255.0
interface Eth-Trunk1
port link-type access
port default vlan 1000
mode lacp-static
interface GigabitEthernet0/0/2
port link-type access
port default vlan 1002
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/5
eth-trunk 1
interface GigabitEthernet0/0/6
eth-trunk 1
interface LoopBack0
ip address 22.22.22.22 255.255.255.255
ospf 1 router-id 22.22.22.22
area 0
network 10.1.13.0 0.0.0.255
network 10.1.14.0 0.0.0.255
network 10.1.122.0 0.0.0.255
network 10.1.112.0 0.0.0.255
network 22.22.22.22 0.0.0.0

LSW7 的配置

interface Ethernet0/0/1
port link-type access
port default vlan 21
interface Ethernet0/0/2
port link-type access
port default vlan 22
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094

R1 的配置

sysname R1
interface GigabitEthernet0/0/0
ip address 202.2.2.1 255.255.255.0
interface GigabitEthernet0/0/1
ip address 202.2.12.1 255.255.255.0

R2 的配置

sysname R2
interface GigabitEthernet0/0/0
ip address 10.1.113.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 10.1.111.2 255.255.255.0
interface GigabitEthernet0/0/2
ip address 10.1.112.1 255.255.255.0
interface GigabitEthernet6/0/0
ip address 202.2.12.2 255.255.255.0
nat outbound 3000
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
acl number 3000
rule 5 permit ip source 10.0.0.0 0.255.255.255
nat static protocol tcp global 8.8.8.8 www inside 10.1.100.100 www netmask 255.255.255.255
ospf 1 router-id 2.2.2.2
default-route-advertise
area 0
network 2.2.2.2 0.0.0.0
network 10.1.111.0 0.0.0.255
network 10.1.113.0 0.0.0.255

R3 的配置

sysname R3
interface GigabitEthernet0/0/0
ip address 10.1.113.3 255.255.255.0
interface GigabitEthernet0/0/2
ip address 10.1.134.3 255.255.255.0
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
ospf 1 router-id 3.3.3.3
import-route rip 1 cost 5 type 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.113.0 0.0.0.255
rip 1
undo summary
default-route originate
version 2
network 10.0.0.0
network 3.0.0.0
import-route ospf 1

R4 的配置

sysname R4
interface GigabitEthernet0/0/0
ip address 10.1.134.4 255.255.255.0
interface GigabitEthernet0/0/1.21
dot1q termination vid 21
ip address 10.1.21.1 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/1.22
dot1q termination vid 22
ip address 10.1.22.1 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/2
ip address 10.1.135.4 255.255.255.0
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
rip 1
undo summary
version 2
network 4.0.0.0
network 10.0.0.0

R5 的配置

sysname R5
interface GigabitEthernet0/0/0
ip address 10.1.135.5 255.255.255.0
interface GigabitEthernet0/0/1
ip address 10.1.100.1 255.255.255.0
interface GigabitEthernet0/0/2
interface LoopBack0
ip address 5.5.5.5 255.255.255.255
rip 1
undo summary
version 2
network 5.0.0.0
network 10.0.0.0

PC端的配置

在这里插入图片描述

注:看不懂的可以看我的其他博客有详细文字配置解析
四、实验结果测试

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/wulimingde/article/details/107492584