03-13-2023 02:04 AM
PFA for your reference
in SW
interface FastEthernet0/1
switchport trunk allowed vlan 1,10,20
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode trunk
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
ROUTER
p dhcp excluded-address 10.1.10.1 10.1.10.99
ip dhcp excluded-address 10.1.20.1 10.1.20.99
!
ip dhcp pool VLAN10
network 10.1.10.0 255.255.255.0
default-router 10.1.10.1
dns-server 10.1.10.1
ip dhcp pool VLAN20
network 10.1.20.0 255.255.255.0
default-router 10.1.20.1
dns-server 10.1.20.1
03-15-2023 01:24 AM
Hello @thirumg3
Please do [show interface status] on your switch and please share the output
Also do [show interface trunk] ont that switch.
Thanks.
03-14-2023 05:30 AM
. you must assign ip address to the Vlan not to the interface
04-30-2024 02:22 AM
I Think your configuration is not fully configured , You must connect switch interface FastEthernet0/1 to router interface(inside interface) and remove switchport mode trunk form all interface except f0/1
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide