Experiment Objective: 1. Implement DHCP Auto-assignment
2. Implement Web "website" Service and terminal access
Experimental steps:
- Configure Layer Two switch "SW1":
switch>en//Entering privileged mode
switch#conf//into global mode
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with cntl/z.
Switch (config) #vlan 10//create VLAN
Switch (Config-vlan) #vlan 20
Switch (Config-vlan) #vlan 30
Switch (Config-vlan) #e
Switch (config) #in F 0/1//Ingress Port
Switch (config-if) #no sh
Switch (config-if) #sw mode acc//access modes
Switch (config-if) #sw acc VLAN 10//join VLAN10
Switch (config-if) #e
Switch (config) #in f 0/2
Switch (config-if) #no sh
Switch (config-if) #sw mode acc
Switch (config-if) #sw ACC VLAN 20
Switch (config-if) #e
Switch (config) #in f 0/3
Switch (config-if) #no sh
Switch (config-if) #sw mode acc
Switch (config-if) #sw ACC VLAN 30
Switch (config-if) #e
Switch (config) #in g 0/1
Switch (config-if) #no sh
Switch (config-if) #sw mode trunk
Switch (config-if) #
%lineproto-5-updown:line protocol on Interface GIGABITETHERNET0/1, changed
%lineproto-5-updown:line protocol on Interface GIGABITETHERNET0/1, changed
Switch (config-if) #
Switch (config-if) #sw trunk allowed VLAN all
Switch (config-if) #e
Switch (config) #in f 0/24
Switch (config-if) #no sh
Switch (config-if) #sw mode trunk
Switch (config-if) #
%lineproto-5-updown:line protocol on Interface FASTETHERNET0/24, changed
%lineproto-5-updown:line protocol on Interface FASTETHERNET0/24, changed
Switch (config-if) #sw trunk allowed VLAN all
Switch (config-if) #e
- Configure Layer Two switch # second "SW2":
switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with cntl/z.
Switch (config) #vlan 10
Switch (Config-vlan) #vlan 30
Switch (Config-vlan) #vlan 40
Switch (Config-vlan) #vlan 50
Switch (Config-vlan) #e
Switch (config) #in f 0/1
Switch (config-if) #no sh
Switch (config-if) #sw mode acc
Switch (config-if) #sw ACC VLAN 40
Switch (config-if) #e
Switch (config) #in f 0/2
Switch (config-if) #no sh
Switch (config-if) #sw mode acc
Switch (config-if) #sw ACC VLAN 50
Switch (config-if) #e
Switch (config) #in g 0/2
Switch (config-if) #no sh
Switch (config-if) #sw mode trunk
Switch (config-if) #
%lineproto-5-updown:line protocol on Interface GIGABITETHERNET0/2, changed
%lineproto-5-updown:line protocol on Interface GIGABITETHERNET0/2, changed
Switch (config-if) #sw trunk allowed VLAN all
Switch (config-if) #e
Switch (config) #in f 0/24
Switch (config-if) #no sh
Switch (config-if) #sw mode trunk
Switch (config-if) #sw trunk allowed VLAN all
Switch (config-if) #e
Switch (config) #
3. Configure the three-tier switch "SW3 create VLAN10/20/30/40/50":
Switch (config) #in VLAN 10
Switch (config-if) #no sh
Switch (config-if) #ip add 192.168.10.254 255.255.255.0//Configure IP for VLAN10
Switch (config-if) #e
Switch (config) #in VLAN 20
Switch (config-if) #ip add 192.168.20.254 255.255.255.0//Configure IP for Vlan20
Switch (config-if) #no sh
Switch (config-if) #e
Switch (config) #in VLAN 30
Switch (config-if) #no sh
Switch (config-if) #ip add 192.168.30.254 255.255.255.0//Configure IP for VLAN30
Switch (config-if) #e
Switch (config) #in VLAN 10
Switch (config-if) #ip Help
Switch (config-if) #ip helper-address 192.168.50.1//Configure DHCP relay "help address"
Switch (config-if) #e
Switch (config) #in VLA 20
Switch (config-if) #ip helper-address 192.168.50.1
Switch (config-if) #e
Switch (config) #in VLAN 30
Switch (config-if) #ip helper-address 192.168.50.1
Switch (config-if) #e
Switch (config) #in VLAN 50
Switch (config-if) #ip add 192.168.50.254 255.255.255.0//Configure IP for VLAN50
Switch (config-if) #no sh
Switch (config-if) #e
Switch (config) #in VLAN 40
Switch (config-if) #no sh
Switch (config-if) #ip add 192.168.40.254 255.255.255.0//Configure IP for VLAN40
Switch (config-if) #e
Switch (config) #ip routing
4. Configure the Web server:
5. Configure the DHCP server to "establish three pool of addresses":
6. Terminal verification, testing, saving
Terminal Access Site success
Experimental topology diagram:
Thank you for all your support
16th issue of Small Business Network architecture-dhcp and website service "Cisco"