0% found this document useful (0 votes)
5 views2 pages

VLAN Configuration and DHCP Setup Guide

The document outlines the configuration steps for setting up VLANs on three switches (SW1, SW2, SW3) and a trunk switch (SW4), including assigning VLANs to interfaces. It also details the configuration of a router with virtual sub-interfaces for each VLAN and the setup of DHCP pools for IP address allocation. Each VLAN is assigned a specific network and default router address for DHCP services.

Uploaded by

Habtamu Asayto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

VLAN Configuration and DHCP Setup Guide

The document outlines the configuration steps for setting up VLANs on three switches (SW1, SW2, SW3) and a trunk switch (SW4), including assigning VLANs to interfaces. It also details the configuration of a router with virtual sub-interfaces for each VLAN and the setup of DHCP pools for IP address allocation. Each VLAN is assigned a specific network and default router address for DHCP services.

Uploaded by

Habtamu Asayto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Step 1 : Configure Vlan for each(3) switch and assign the vlan for all interfaces

SW1
Switch>enable
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#do write

SW2
Switch>enable
Switch#configure terminal
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#do write

SW3
Switch>enable
Switch#configure terminal
Switch(config)#vlan 30
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#do write

SW4 /Trunk
Switch>enable
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name One
Switch(config-vlan)#exit

Switch(config)#vlan 20
Switch(config-vlan)#name Two
Switch(config-vlan)#exit

Switch(config)#vlan 30
Switch(config-vlan)#name Three
Switch(config-vlan)#exit

Interface Fa0/1
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit

Interface Fa0/2
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit

Interface Fa0/3
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit

Interface Fa0/4
Switch(config)#interface fastEthernet 0/4
Switch(config-if)#switchport mode trunk
Switch(config-if)#do write

Router
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet 0/0
Router(config-if)#no shutdown

Create Virtual sub interface for three vlans


Router(config)#interface gigabitEthernet 0/0.1
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address [Link] [Link]
Router(config-subif)#exit

Router(config)#interface gigabitEthernet 0/0.2


Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address [Link] [Link]
Router(config-subif)#exit

Router(config)#interface gigabitEthernet 0/0.3


Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address [Link] [Link]
Router(config-subif)#exit

Step 1 : Configure DHCP


Router# (config)#exit
Router#write

For vlan 10
Router#configure terminal
Router(config)#ip dhcp pool 1
Router(dhcp-config)#network [Link] [Link]
Router(dhcp-config)#default-router [Link]
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address [Link] [Link]

For vlan 20
Router(config)#ip dhcp pool 2
Router(dhcp-config)#network [Link] [Link]
Router(dhcp-config)#default-router [Link]
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address [Link] [Link]

For vlan 30
Router(config)#ip dhcp pool 3
Router(dhcp-config)#network [Link] [Link]
Router(dhcp-config)#default-router [Link]
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address [Link] [Link]

You might also like