On the basis of configuring two layer-3 switches, add two servers and connect them to the g0/1 and g0/2 ports of the top-layer switch respectively
1. Enter in the top-level switch:
switch>enable
Switch#configure terminal
Switch(config)#vlan 70
Switch(config-vlan)#interface range g0/1-2
Switch(config-if)#switchport access vlan 70
Switch(config-if)#int vlan 70
Switch(config-if)#ip address 202.206.73.100 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#ip routing
Switch(config)#router rip
Switch(config-router)#version 2
Switch(config-router)#network 202.206.73.0
This switch configuration is complete
Next configure the server
2. Set in the upper left server
IP:202.206.73.1
Gateway: 202.206.73.100
test:
Ping the server in PC0 below: ping 202.206.73.1
that's it
The upper right is the DNS server
1. Configure IP, gateway and DNS
IP:202.206.73.2
Gateway: 202.206.73.100
Click the Services tab, select DNS
Name:www.hebust.edu.cn
Address:202.206.73.1
Click "Add"
Select "on"
2. Set the PC below
Set whichever PC you need to access the DNS server
Example: PC0
Set the DNS Server of PC0: 202.206.73.2
Select Web Browser
Enter in the URL: www.hebust.edu.cn (Name just added)
click go
If it is displayed as above, it is passed
The servers this time are interconnected by dividing them into the same vlan 70, or by assigning different gateways to the two interfaces connected to the server. Remember to add IP to the RIP protocol, and then configure IP for the two servers.