Comprehensive Training of "Comprehensive Practice of Enterprise Projects" (4)

Required documents and simulator files

The document "Comprehensive Training of Enterprise Projects" (4)

Explanation

This experiment is carried out according to the actual scenario of the real network engineering project as much as possible, so the initial configuration of the simulator in this simulator must use a PC to connect to the console port of the device through the console line for initial configuration CLI interface.

surroundings

Hardware environment: list of
Insert picture description here
experimental topology
Insert picture description here
addresses
Insert picture description here
Insert picture description here

Basic configuration

Complete the IP and host name configuration of all devices according to the above address planning table, and configure the enable encryption password and VTY password as: cisco

Project requirements

1. Router DHCP-server requirements
Basic functions:

configure IP address; G0 / 0 for the interface with SwitchA; G0 / 1 for the interface with SwitchB; G0 / 1 for the interface with SwitchC; and Router-rip The connected interface is G0 / 2.
Routing function:
Configure OSPF, RIP routing protocol, route redistribution; OSPF redistribution to RIP metric value is 3; RIP co-band subnet redistribution to OSPF, so that the entire network interoperability.
DHCP function:
Configure the DHCP protocol to make the router provide IP automatic allocation services for users in the OSPF network domain, create four address pools of vlan10, vlan20, vlan30, and vlan40, and the first 100 IP addresses cannot be automatically assigned to the PC. The DNS server IP is 114.114 .114.114. Tip: Use the loopback port IP as the DHCP service address.
2. The requirements of SwitchA The
basic function is to

configure the IP address; the interface with the DHCP-server is G0 / 2 and the routing port is enabled; the interfaces with SwitchB are F0 / 23 and F0 / 24; the interface with SwitchC is G0 / 1, the interconnection VLAN is 500; the interface interconnected with SwitchD is F0 / 1, and the interconnection VLAN is 700; meanwhile, the interconnection interface only releases the interconnected VLAN number.
Routing function
Configure the OSPF routing protocol (Router-id: 5.5.5.5) to summarize the routes from SwitchC and SwitchD between regions to make the entire network interoperable.
Port aggregation function
Set the aggregation port number to 1 and the mode to desirable. The aggregation port adopts the routing mode.
3. SwitchB requirements for
basic functions

Configure IP address; G0 / 2 interconnection interface with DHCP-server and enable routing interface; F0 / 23 and F0 / 24 interconnection interface with SwitchA; F0 / 1 interconnection interface with SwitchC, interconnection VLAN is 600; the interface interconnected with SwitchD is G0 / 1, and the interconnection VLAN is 800; at the same time, the interconnection interface only releases the interconnected VLAN number.
Routing function
Configure the OSPF routing protocol (Router-id: 6.6.6.6) to summarize the routes from SwitchC and SwitchD between regions to make the entire network interoperable.
Port aggregation function
Set the aggregation port number to 1 and the mode to desirable. The aggregation port adopts the routing mode.
4. SwitchC requirements for
basic functions

Configure IP addresses; create four loopback ports; create VLAN 900 as the management VLAN for SwitchC and S2-A and S2-B and name it Manager; the interface interconnected with SwitchA is G0 / 1, interconnected VLAN is 500; the interface interconnected with SwitchB is F0 / 24, the interconnected VLAN number is 600; the interface interconnected with S2-A is F0 / 1, and the interface interconnected with S2-B is F0 / 2; The connection port only releases the interconnected VLAN number.
Routing function
Configure the OSPF routing protocol (Router-id: 7.7.7.7) to make the entire network interoperable.
5. Switch SwitchD needs
basic functions to
configure IP addresses; create four loopback ports; create VLAN900 as the management VLAN for SwitchD and S2-C, S2-D and name it Manager; the interface interconnected with SwitchB is G0 / 1, interconnected VLAN is 800; the interface interconnected with SwitchA is F0 / 24, the interconnected VLAN number is 700; the interface interconnected with S2-C is F0 / 1, and the interface interconnected with S2-D is F0 / 2; The connection port only releases the interconnected VLAN number.
Routing function
Configure OSPF routing protocol (Router-id: 8.8.8.8), so that the entire network can communicate.
Switch S2-A to S2-E requirements
Configure the corresponding VLAN according to the network topology, add the corresponding interface to the VLAN, and create a management VLAN so that the switch can be managed remotely.
6. Router Router-rip requirements
Basic functions:

Configure IP address; G0 / 2 interface with DHCP-server; G0 / 0 interface with DHCP-2 switch.
Routing function:
Configure RIP routing protocol to make the entire network interoperable.
7. Router DHCP-2 requirements
Basic functions:

configuration of IP address; G0 / 1 interface with Router-rip, VLAN 1000 interconnection; G0 / 2 interface with S2-E switch.
Routing function:
Configure RIP routing protocol and one-arm routing protocol (see the address planning table for sub-interface numbers) to make the entire network interoperable.
DHCP function :
Configure the DHCP protocol to make the router provide IP automatic allocation services for users of this network, create two address pools of vlan10 and vlan20, and require that the first 100 IP addresses cannot be automatically assigned to the PC, and the DNS server IP is 114.114.114.114.
8. The PC requires that the
PC automatically obtains the IP address of the network through DHCP and can access the entire network segment.

The configuration commands are as follows:

Router DHCP-2

Router(config)#hostname DHCP-2
DHCP-2(config)#line vty 0 4
DHCP-2(config-line)#password cisco
DHCP-2(config-line)#login
DHCP-2(config-line)#exit
DHCP-2(config)#enable secret cisco

DHCP-2(config)#int g0/1
DHCP-2(config-if)#ip add 172.16.1.6 255.255.255.252
DHCP-2(config)#int g0/2.1
DHCP-2(config-subif)#encapsulation dot1Q 10
DHCP-2(config-subif)#ip add 172.16.10.1 255.255.255.0
DHCP-2(config)#int g0/2.2
DHCP-2(config-subif)#encapsulation dot1Q 20
DHCP-2(config-subif)#ip add 172.16.20.1 255.255.255.0

DHCP-2(config)#router rip
DHCP-2(config-router)#version 2
DHCP-2(config-router)#no auto-summary 
DHCP-2(config-router)#network 172.16.10.0
DHCP-2(config-router)#network 172.16.20.0
DHCP-2(config-router)#network 172.16.1.0

DHCP-2(config)#service dhcp
DHCP-2(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.100
DHCP-2(config)#ip dhcp excluded-address 172.16.20.1 172.16.20.100

DHCP-2(config)#ip dhcp pool vlan10	
DHCP-2(dhcp-config)#dns-server 114.114.114.114
DHCP-2(dhcp-config)#network 172.16.10.0 255.255.255.0
DHCP-2(dhcp-config)#default-router 172.16.10.1

DHCP-2(config)#ip dhcp pool vlan20
DHCP-2(dhcp-config)#dns-server 114.114.114.114
DHCP-2(dhcp-config)#network 172.16.20.0 255.255.255.0
DHCP-2(dhcp-config)#default-router 172.16.20.1

Router DHCP-sever

Router(config)#hostname DHCP-server
DHCP-server(config)#line vty 0 4
DHCP-server(config-line)#password cisco
DHCP-server(config-line)#login
DHCP-server(config-if)#exit
DHCP-server(config)#enable secret cisco

DHCP-server(config)#int g0/0
DHCP-server(config-if)#ip add 192.168.1.1 255.255.255.252
DHCP-server(config)#int g0/1
DHCP-server(config-if)#ip add 192.168.1.5 255.255.255.252
DHCP-server(config)#int g0/2
DHCP-server(config-if)#ip add 172.16.1.1 255.255.255.252
DHCP-server(config)#int loopback 0
DHCP-server(config-if)#ip add 1.1.1.1 255.255.255.255

DHCP-server(config)#service dhcp
DHCP-server(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.100
DHCP-server(config)#ip dhcp excluded-address 192.168.20.1 192.168.20.100
DHCP-server(config)#ip dhcp excluded-address 192.168.30.1 192.168.30.100
DHCP-server(config)#ip dhcp excluded-address 192.168.40.1 192.168.40.100

DHCP-server(config)#ip dhcp pool vlan10
DHCP-server(dhcp-config)#dns-server 114.114.114.114
DHCP-server(dhcp-config)#network 192.168.10.0 255.255.255.0
DHCP-server(dhcp-config)#default-router 192.168.10.1

DHCP-server(config)#ip dhcp pool vlan20
DHCP-server(dhcp-config)#dns-server 114.114.114.114
DHCP-server(dhcp-config)#network 192.168.20.0 255.255.255.0
DHCP-server(dhcp-config)#default-router 192.168.20.1

DHCP-server(config)#ip dhcp pool vlan30
DHCP-server(dhcp-config)#dns-server 114.114.114.114
DHCP-server(dhcp-config)#network 192.168.30.0 255.255.255.0
DHCP-server(dhcp-config)#default-router 192.168.30.1

DHCP-server(config)#ip dhcp pool vlan40
DHCP-server(dhcp-config)#dns-server 114.114.114.114
DHCP-server(dhcp-config)#network 192.168.40.0 255.255.255.0
DHCP-server(dhcp-config)#default-router 192.168.40.1

DHCP-server(config)#route ospf 1
DHCP-server(config-router)#network 192.168.1.0 0.0.0.3 area 0
DHCP-server(config-router)#network 192.168.1.4 0.0.0.3 area 0
DHCP-server(config-router)#network 1.1.1.1 0.0.0.0 area 0
DHCP-server(config-router)#redistribute rip metric 3

DHCP-server(config)#route rip
DHCP-server(config-router)#network 172.16.1.0
DHCP-server(config-router)#redistribute ospf 1 metric 3
DHCP-server(config-router)#version 2
DHCP-server(config-router)#no auto-summary 

Router Route-rip

Router(config)#hostname Router-rip
Router-rip(config)#line vty 0 4
Router-rip(config-line)#password cisco
Router-rip(config-line)#login
Router-rip(config)#enable secret cisco

Router-rip(config)#int g0/0
Router-rip(config-if)#ip add 172.16.1.5 255.255.255.252
Router-rip(config)#int g0/2
Router-rip(config-if)#ip add 172.16.1.2 255.255.255.252

Router-rip(config)#router rip
Router-rip(config-router)#version 2
Router-rip(config-router)#no auto-summary 
Router-rip(config-router)#network 172.16.1.0

Switch S2-A

Switch(config)#hostname S2-A
S2-A(config)#line vty 0 4
S2-A(config-line)#password cisco
S2-A(config-line)#login
S2-A(config)#enable secret cisco

S2-A(config)#vlan 10
S2-A(config-vlan)#vlan 900
S2-A(config-vlan)#name Ez

S2-A(config)#int vlan 900
S2-A(config-if)#ip add 192.168.100.1 255.255.255.192
S2-A(config-if)#int f0/1
S2-A(config-if)#sw acc vlan 10
S2-A(config)#int f0/2
S2-A(config-if)#sw acc vlan 10
S2-A(config)#int f0/24
S2-A(config-if)#sw mode trunk 
S2-A(config)#ip default-gateway 192.168.100.62

Switch S2-B

Switch(config)#hostname S2-B
S2-B(config)#line vty 0 4
S2-B(config-line)#password cisco
S2-B(config-line)#login
S2-B(config)#enable secret cisco

S2-B(config)#vlan20
S2-B(config-vlan)#vlan900
S2-B(config-vlan)#name Gneg

S2-B(config)#int f0/1
S2-B(config-if)#sw acc vlan 20
S2-B(config)#int f0/2
S2-B(config-if)#sw acc vlan 20
S2-B(config)#int vlan 900
S2-B(config-if)#ip add 192.168.100.2 255.255.255.192
S2-B(config)#int f0/24
S2-B(config-if)#sw mo tr
S2-B(config)#ip default-gateway 192.168.100.62

Switch S2-C

Switch(config)#hostname S2-C
S2-C(config)#line vty 0 4
S2-C(config-line)#password cisco
S2-C(config-line)#login
S2-C(config)#enable secret cisco

S2-C(config)#vlan 30
S2-C(config-vlan)#vlan 900
S2-C(config-vlan)#name Gnol

S2-C(config)#int vlan 900
S2-C(config-if)#ip add 192.168.100.65 255.255.255.192
S2-C(config)#int f0/1
S2-C(config-if)#sw acc vlan 30
S2-C(config)#int f0/2
S2-C(config-if)#sw acc vlan 30
S2-C(config)#int f0/24
S2-C(config-if)#sw mo tr
S2-C(config)#ip default-gateway 192.168.100.126

Switch S2-D

Switch(config)#hostname S2-D
S2-D(config)#line vty 0 4
S2-D(config-line)#password cisco
S2-D(config-line)#login
S2-D(config)#enable secret cisco

S2-D(config)#vlan 40
S2-D(config-vlan)#vlan 900
S2-D(config-vlan)#name Ez

S2-D(config)#int f0/1
S2-D(config-if)#sw acc vlan 40
S2-D(config)#int f0/2
S2-D(config-if)#sw acc vlan 40
S2-D(config)#int vlan 900
S2-D(config-if)#ip add 192.168.100.66 255.255.255.192
S2-D(config)#int f0/24
S2-D(config-if)#sw mo tr
S2-D(config)#ip default-gateway 192.168.100.126

Switch S2-E

Switch#conf ter
Switch(config)#line vty 0 4
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config)#enable secret cisco
Switch(config)#hostname S2-E

S2-E(config)#vlan 10
S2-E(config-vlan)#vlan 20
S2-E(config-vlan)#name Gnol

S2-E(config)#int f0/1
S2-E(config-if)#sw acc vlan 10
S2-E(config)#int f0/2
S2-E(config-if)#sw acc vlan 20
S2-E(config)#int vlan 10
S2-E(config-if)#ip add 172.16.10.100 255.255.255.0
S2-E(config)#int vlan 20
S2-E(config-if)#ip add 172.16.20.100 255.255.255.0
S2-E(config)#int g0/2
S2-E(config-if)#switchport mode trunk 
S2-E(config)#ip default-gateway 172.16.10.1

SwitchA

Switch(config)#hostname SwitchA
SwitchA(config)#line vty 0 4
SwitchA(config-line)#password cisco
SwitchA(config-line)#login
SwitchA(config)#enable secret cisco

SwitchA(config)#vlan 500
SwitchA(config-vlan)#vlan 700
SwitchA(config-vlan)#name Gneg

SwitchA(config)#int vlan 500
SwitchA(config-if)#ip add 192.168.1.13 255.255.255.252
SwitchA(config)#int vlan 700
SwitchA(config-if)#ip add 192.168.1.25 255.255.255.252
SwitchA(config)#int port-channel 1
SwitchA(config-if)#no switchport 
SwitchA(config-if)#ip add 192.168.1.9 255.255.255.252
SwitchA(config)#int g0/2
SwitchA(config-if)#no switchport 
SwitchA(config-if)#ip add 192.168.1.2 255.255.255.252
SwitchA(config)#int range f0/23-24
SwitchA(config-if-range)#no switchport 
SwitchA(config-if-range)#channel-group 1 mode on
SwitchA(config)#int g0/1
SwitchA(config-if)#switchport mode dynamic desirable 
SwitchA(config-if)#switchport mode acc
SwitchA(config-if)#switchport mode tr
SwitchA(config)#int f0/1
SwitchA(config-if)#switchport mode dynamic desirable
SwitchA(config-if)#sw mo access 
SwitchA(config-if)#sw mo tr

SwitchA(config)#route ospf 1
SwitchA(config-router)#network 192.168.1.12 0.0.0.3 area 10
SwitchA(config-router)#network 192.168.1.24 0.0.0.3 area 20
SwitchA(config-router)#network 192.168.1.8 0.0.0.3 area 0
SwitchA(config-router)#network 192.168.1.0 0.0.0.3 area 0
SwitchA(config-router)#router-id 5.5.5.5
SwitchA(config-router)#area 10 range 1.1.4.0 255.255.252.0
SwitchA(config-router)#area 20 range 4.4.0.0 255.255.252.0

SwitchB

Switch(config)#hostname SwitchB
SwitchB(config)#line vty 0 4 
SwitchB(config-line)#password cisco
SwitchB(config-line)#login
SwitchB(config-line)#exit
SwitchB(config)#enable secret cisco

SwitchB(config)#vlan 600
SwitchB(config-vlan)#vlan 800
SwitchB(config-vlan)#name Gnol

SwitchB(config)#int g0/2
SwitchB(config-if)#no switchport 
SwitchB(config-if)#ip add 192.168.1.6 255.255.255.252
SwitchB(config-if)#ex
SwitchB(config)#int port-channel 1
SwitchB(config-if)#no switchport 
SwitchB(config-if)#ip add 192.168.1.10 255.255.255.252
SwitchB(config)#int vlan 600
SwitchB(config-if)#ip add 192.168.1.17 255.255.255.252
SwitchB(config)#int vlan 800
SwitchB(config-if)#ip add 192.168.1.21 255.255.255.252
SwitchB(config)#int g0/1
SwitchB(config-if)#switchport mode access 
SwitchB(config-if)#switchport mode trunk 
SwitchB(config)#int f0/1
SwitchB(config-if)#switchport mode access 
SwitchB(config-if)#switchport mode trunk 

SwitchB(config)#route ospf 1
SwitchB(config-router)#network 192.168.1.20 0.0.0.3 area 20
SwitchB(config-router)#network 192.168.1.16 0.0.0.3 area 10
SwitchB(config-router)#network 192.168.1.4 0.0.0.3 area 0
SwitchB(config-router)#network 192.168.1.8 0.0.0.3 area 0
SwitchB(config-router)#router-id 6.6.6.6
SwitchB(config-router)#area 20 range 4.4.0.0 255.255.252.0
SwitchB(config-router)#area 10 range 1.1.4.0 255.255.252.0

SwitchB(config)#int range f0/23-24
SwitchB(config-if-range)#no switchport
SwitchB(config-if-range)#channel-group 1 mode on

SwitchC

Switch(config)#hostname SwitchC
SwitchC(config)#line vty 0 4
SwitchC(config-line)#password cisco
SwitchC(config-line)#login
SwitchC(config)#enable secret cisco

SwitchC(config)#int loopback 0
SwitchC(config-if)#ip add 1.1.4.1 255.255.255.0
SwitchC(config)#int loopback 1
SwitchC(config-if)#ip add 1.1.5.1 255.255.255.0
SwitchC(config)#int loopback 2
SwitchC(config-if)#ip add 1.1.6.1 255.255.255.0
SwitchC(config)#int loopback 3
SwitchC(config-if)#ip add 1.1.7.1 255.255.255.0

SwitchC(config)#vlan 10
SwitchC(config-vlan)#vlan 20
SwitchC(config-vlan)#vlan 500
SwitchC(config-vlan)#vlan 600
SwitchC(config-vlan)#vlan 900
SwitchC(config-vlan)#name Manager

SwitchC(config)#int vlan 10
SwitchC(config-if)#ip add 192.168.10.1 255.255.255.0
SwitchC(config)#int vlan 20
SwitchC(config-if)#ip add 192.168.20.1 255.255.255.0
SwitchC(config)#int vlan 500
SwitchC(config-if)#ip add 192.168.1.14 255.255.255.252
SwitchC(config)#int vlan 600
SwitchC(config-if)#ip add 192.168.1.18 255.255.255.252
SwitchC(config)#int vlan 900
SwitchC(config-if)#ip add 192.168.100.62 255.255.255.192

SwitchC(config)#route ospf 1
SwitchC(config-router)#network 1.1.4.0 0.0.0.255 area 10
SwitchC(config-router)#network 1.1.5.0 0.0.0.255 area 10
SwitchC(config-router)#network 1.1.6.0 0.0.0.255 area 10
SwitchC(config-router)#network 1.1.7.0 0.0.0.255 area 10
SwitchC(config-router)#network 192.168.10.0 0.0.0.255 area 10
SwitchC(config-router)#network 192.168.20.0 0.0.0.255 area 10
SwitchC(config-router)#network 192.168.1.12 0.0.0.3 area 10
SwitchC(config-router)#network 192.168.1.16 0.0.0.3 area 10
SwitchC(config-router)#network 192.168.100.0 0.0.0.63 area 10
SwitchC(config-router)#router-id 7.7.7.7

SwitchB(config)#int g0/1
SwitchC(config-if)#sw mo acc
SwitchC(config-if)#sw mo tr
SwitchB(config)#int f0/1
SwitchC(config-if)#switchport mode acc
SwitchC(config-if)#switchport mode tr
SwitchC(config)#int f0/2
SwitchC(config-if)#sw mo acc
SwitchC(config-if)#sw mo tr
SwitchC(config)#int f0/24
SwitchC(config-if)#sw mo acc
SwitchC(config-if)#sw mo tr

SwitchD

Switch(config)#hostname SwitchD
SwitchD(config)#line vty 0 4
SwitchD(config-line)#password cisco
SwitchD(config-line)#login
SwitchD(config)#enable secret cisco

SwitchD(config)#vlan 30
SwitchD(config-vlan)#vlan 40
SwitchD(config-vlan)#vlan 700
SwitchD(config-vlan)#vlan 800
SwitchD(config-vlan)#vlan 900
SwitchD(config-vlan)#name Ez

SwitchD(config)#int vlan 30
SwitchD(config-if)#ip add 192.168.30.1 255.255.255.0
SwitchD(config)#int vlan 40	
SwitchD(config-if)#ip add 192.168.40.1 255.255.255.0
SwitchD(config)#int vlan 700
SwitchD(config-if)#ip add 192.168.1.26 255.255.255.252
SwitchD(config)#int vlan 800
SwitchD(config-if)#ip add 192.168.1.22 255.255.255.252
SwitchD(config)#int vlan 900
SwitchD(config-if)#ip add 192.168.100.126 255.255.255.192
SwitchD(config)#int loopback 0
SwitchD(config-if)#ip add 4.4.0.4 255.255.255.0
SwitchD(config)#int loopback 1
SwitchD(config-if)#ip add 4.4.1.4 255.255.255.0
SwitchD(config)#int loopback 2
SwitchD(config-if)#ip add 4.4.2.4 255.255.255.0
SwitchD(config)#int loopback 3
SwitchD(config-if)#ip add 4.4.3.4 255.255.255.0

SwitchD(config)#route ospf 1
SwitchD(config-router)#network 4.4.0.0 0.0.0.255 area 20
SwitchD(config-router)#network 4.4.1.0 0.0.0.255 area 20
SwitchD(config-router)#network 4.4.2.0 0.0.0.255 area 20
SwitchD(config-router)#network 4.4.3.0 0.0.0.255 area 20
SwitchD(config-router)#network 192.168.30.0 0.0.0.255 area 20
SwitchD(config-router)#network 192.168.40.0 0.0.0.255 area 20
SwitchD(config-router)#network 192.168.1.24 0.0.0.3 area 20
SwitchD(config-router)#network 192.168.1.20 0.0.0.3 area 20
SwitchD(config-router)#network 192.168.100.64 0.0.0.63 area 20
SwitchD(config-router)#router-id 8.8.8.8

After completing the 280 items in the inspection results, one is the S2-B switch. The default gateway inspection result is X. Here is the error in the inspection result. You can ignore it.
Insert picture description here
Insert picture description here
The open port is opened (no shutdown). Another point is that after completing 280 items, the PC will not get an IP. There are two reasons: one is that the route is not configured successfully, and the other is that the DHCP relay is not configured successfully. As a result of the inspection, there is no DHCP relay, so if there is no relay, the IP will not be obtained automatically.

DHCP relay
Configure DHCP relay for SwitchC and SwitchD

Switch SwitchC

SwitchC(config)#int vlan 10
SwitchC(config-if)#ip helper-address 1.1.1.1
SwitchC(config-if)#int vlan 20
SwitchC(config-if)#ip helper-address 1.1.1.1

Switch SwitchD

SwitchD(config)#int vlan 30
SwitchD(config-if)#ip helper-address 1.1.1.1
SwitchD(config-if)#int vlan 40
SwitchD(config-if)#ip helper-address 1.1.1.1

The PC function can successfully obtain the IP. This experiment is successful.
Insert picture description here
This experiment is over here. It is not easy to create. Like a support.

Published 13 original articles · Like 43 · Visits 1189

Guess you like

Origin blog.csdn.net/Long_UP/article/details/105447794