# CCNA LAB SVI DHCP server VTP Root guard BPDU filter Inter VLAN routing 802.1Q and RSTP

**LAB Diagram**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729483125386/485aa8b9-2d0e-4913-9268-b887399cf128.png align="center")

**Configure the topology as per the diagram**

**Configure VLAN\_10 VLAN\_20 VLAN\_30 on Core\_SW**

**Configure 802.1Q Trunk Link Between Access Switches and Core\_SW**

**Configure VTP version 2 on Core\_SW**

**Configure VTP domain name lab.com**

**Make sure rest of the switches will get this information**

**Configure the ports into their VLAN as per the topology**

**Configure the IP address to VLANs for inter VLAN routing**

**IP 10.10.10.0/24 to VLAN 10**

**IP 20.20.20.0/24 to VLAN 20**

**IP 30.30.30.0/24 to VLAN 30**

**Configure DHCP server for VLAN 10,20,30 on Core\_SW**

`CORE_SW#show interfaces trunk`

`Core_SW(config)#interface range Gi 0/0-3`

`Core_SW(config-if-range)#switchport trunk encapsulation dot1q`

`Core_SW(config-if-range)#switchport mode trunk`

`Core_SW(config-if-range)#switchport nonegotiate`

`Core_SW(config-if-range)#switchport trunk allowed vlan 10,20,30`

`Core_SW(config-if-range)#switchport trunk native vlan 999`

`Core_SW(config-if-range)#exit`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729484158701/98baf5b3-4cc5-4266-bfbe-ec409b1d344b.png align="left")

`FLOOR_1(config)#interface Gi 0/0`

`FLOOR_1(config-if)#switchport trunk encapsulation dot1q`

`FLOOR_1(config-if)#switchport mode trunk`

`FLOOR_1(config-if)#switchport nonegotiate`

`FLOOR_1(config-if)#switchport trunk allowed vlan 10,20,30`

`FLOOR_1(config-if)#switchport trunk native vlan 999`

`FLOOR_1(config-if)#exit`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729485888036/d0380af4-dc42-4b06-bf70-c6058682ad5c.png align="left")

`FLOOR_2(config)#interface Gi 0/0`

`FLOOR_2(config-if)#switchport trunk encapsulation dot1q`

`FLOOR_2(config-if)#switchport mode trunk`

`FLOOR_2(config-if)#switchport nonegotiate`

`FLOOR_2(config-if)#switchport trunk allowed vlan 10,20,30`

`FLOOR_2(config-if)#switchport trunk native vlan 999`

`FLOOR_2(config-if)#exit`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729485934381/cead13a6-7870-4b86-8a8e-597360e7f9aa.png align="left")

`FLOOR_3(config)#interface Gi 0/0`

`FLOOR_3(config-if)#switchport trunk encapsulation dot1q`

`FLOOR_3(config-if)#switchport mode trunk`

`FLOOR_3(config-if)#switchport nonegotiate`

`FLOOR_3(config-if)#switchport trunk allowed vlan 10,20,30`

`FLOOR_3(config-if)#switchport trunk native vlan 999`

`FLOOR_3(config-if)#exit`

`Core_SW(config)#VTP domain lab.com`  
Domain name already set to lab.com  
`Core_SW(config)#VTP mode server`

`Core_SW(config)#VTP version 2`

`Core_SW(config)#end`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729486167974/9ea58a90-c21d-4b14-a847-cf0a61c8c0d1.png align="center")

`FLOOR_1(config)#VTP domain lab.com`  
Domain name already set to lab.com  
`FLOOR_1(config)#VTP mode client`

`FLOOR_1(config)#VTP version 2`

`FLOOR_1(config)#end`

`FLOOR_2(config)#VTP domain lab.com`  
Domain name already set to lab.com

`FLOOR_2(config)#VTP mode client`

`FLOOR_2(config)#VTP version 2`

`FLOOR_2(config)#end`

`FLOOR_3(config)#VTP domain lab.com`  
Domain name already set to lab.com

`FLOOR_3(config)#VTP mode client`

`FLOOR_3(config)#VTP version 2`

`FLOOR_3(config)#end`

`Core_SW(config)#vlan 10`

`Core_SW(config-vlan)#vlan 20`

`Core_SW(config-vlan)#vlan 30`

`Core_SW(config-vlan)#exit`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729486672009/bd2a7e1d-f863-43d7-8b16-548ac6f58cdf.png align="left")

`FLOOR_1(config)#interface range gi 0/1-2`

`FLOOR_1(config-if-range)#switchport mode access`

`FLOOR_1(config-if-range)#switchport access vlan 10`

`FLOOR_1(config-if-range)#exit`

`FLOOR_1(config)#end`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729486942747/9781932d-5219-44be-b3a1-c5448e965a6e.png align="center")

`FLOOR_2(config)#interface range gi 0/1-2`

`FLOOR_2(config-if-range)#switchport mode access`

`FLOOR_2(config-if-range)#switchport access vlan 20`

`FLOOR_2(config-if-range)#exit`

`FLOOR_2(config)#end`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729487064978/58caf1a0-5bbe-401f-bba5-77c0fcbafab4.png align="center")

`FLOOR_3(config)#interface range gi 0/1-2`

`FLOOR_3(config-if-range)#switchport mode access`

`FLOOR_3(config-if-range)#switchport access vlan 30`

`FLOOR_3(config-if-range)#exit`

`FLOOR_3(config)#end`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729487129782/a55dca10-0fcd-4948-8c46-38e0833b16f8.png align="center")

`Core_SW(config)#interface vlan 10`

`Core_SW(config-if)#ip address 10.10.10.254 255.255.255.0`

`Core_SW(config-if)#no shutdown`

`Core_SW(config-if)#exit`

`Core_SW(config)#interface vlan 20`

`Core_SW(config-if)#ip address 20.20.20.254 255.255.255.0`

`Core_SW(config-if)#no shutdown`

`Core_SW(config-if)#exit`

`Core_SW(config)#interface vlan 30`

`Core_SW(config-if)#ip address 30.30.30.254 255.255.255.0`

`Core_SW(config-if)#no shutdown`

`Core_SW(config-if)#exit`

`Core_SW#show ip interface brief`  
Interface              IP-Address      OK? Method Status          Protocol  
Vlan10                 10.10.10.254     YES manual up                    up  
Vlan20                20.20.20.254   YES manual up                    up  
Vlan30                30.30.30.254    YES manual up                    up\*\*

`Core_SW(config)#service dhcp`

`Core_SW(config)#ip dhcp pool VLAN10`

`Core_SW(dhcp-config)#network 10.10.10.0 255.255.255.0`

`Core_SW(dhcp-config)#default-router 10.10.10.254`

`Core_SW(dhcp-config)#dns-server 8.8.8.8`

`Core_SW(dhcp-config)#exit`

`Core_SW(config)#service dhcp`

`Core_SW(config)#ip dhcp pool VLAN20`

`Core_SW(dhcp-config)#network 20.20.20.0 255.255.255.0`

`Core_SW(dhcp-config)#default-router 20.20.20.254`

`Core_SW(dhcp-config)#dns-server 8.8.8.8`

`Core_SW(dhcp-config)#exit`

`Core_SW(config)#service dhcp   Core_SW(config)#ip dhcp pool VLAN30   Core_SW(dhcp-config)#network 30.30.30.0 255.255.255.0   Core_SW(dhcp-config)#default-router 30.30.30.254   Core_SW(dhcp-config)#dns-server 8.8.8.8   Core_SW(dhcp-config)#exit`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729494401267/3f3c52cb-4bea-46e4-89bd-0a87b0aeddba.png align="left")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729494460288/2da7fd74-a65d-4794-b7e5-89dcfcfdb82d.png align="left")

`Core_SW(config)#spanning-tree vlan 10,20,30 root primary`

`Core_SW(config)#end`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729494830885/42a39867-1944-4289-9784-b7b29c4b8e7b.png align="center")

`Core_SW(config)#interface range gi 0/1-3`

`Core_SW(config-if-range)#spanning-tree guard root`

`Core_SW(config-if-range)#end`

\*\**Oct  2 17:26:10.692: %SPANTREE-2-ROOTGUARD\_CONFIG\_CHANGE: Root guard enabled on port GigabitEthernet0/1  
Oct  2 17:26:10.693: %SPANTREE-2-ROOTGUARD\_CONFIG\_CHANGE: Root guard enabled on port GigabitEthernet 0/2  
\*Oct  2 17:26:10.693: %SPANTREE-2-ROOTGUARD\_CONFIG\_CHANGE: Root guard enabled on port GigabitEthernet 0/3.*
