Practical dry goods network comprehensive experimental configuration watched in seconds (OSPF, RIP, DHCP, NAT, vlan division, IP address planning, route redistribution, server, dynamic routing is issued default) Huawei (ensp)

1. Experimental purpose and environment

Through the configuration of experimental simulation equipment, master the configuration commands of Huawei network equipment, and be familiar with the functions of the equipment to make the simulation network smooth. Huawei (ensp) emulator

2. Experimental planning topology diagram

Insert picture description here

Three, experimental equipment configuration

Configuration of 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

Configuration of 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

Configuration of 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 configuration

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 configuration

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 configuration

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 configuration

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 configuration

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 configuration

Insert picture description here

Note: If you don’t understand, please see my other blogs with detailed text configuration analysis
Fourth, the experimental results test

Insert picture description here

Guess you like

Origin blog.csdn.net/wulimingde/article/details/107492584