cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4963
Views
0
Helpful
3
Replies

VLAN not working

icoltus
Level 1
Level 1

Hi! I'm doing a simple network of 1 router, 3 switches, 3 servers and 3 hosts. The router assigns dynamics IP's to the hosts through OSPF and inside the swtiches I have two VLAN's defined (40 and 50), the vlan 40 which corresponds to the switch 0 and hosts PC1 and Smartphone can connect via ping to the servers or to the router, contrary to that the vlan 50 cant ping to any other host or server, I wanted to know what am I doing wrong.

 

Right now, I can see that the message doesn't even "get" to the router and I don't know why because it has the smae configuration as the other swtich.

 

Thanks for the help in advance!

 

The files uploaded are the config files of the router the Swtich0 (Vlan40) and the Swtich1 (Vlan50) which is the one failing, I have also uploaded an image of the network.

1 Accepted Solution

Accepted Solutions

Hello

 

You have defined on the rtr the correct sub-interfaces for vlans 40-50, however your dhcp scope doesn't related to either of vlan 40 or 50.

 

This shouldn't stop connectivity it will only negate hosts from obtaining dhcp correctly if not at all - so you would have to manually apply the correct addressing for each host to communicate with each other.

 

I see trunks on each switch, I am assuming theses are for switch-to switch connectivity and also for switch 0 to rtr connectivity?

 

Your dhcp scope should be


Vlan 40
ip dhcp pool netB  
 network 192.168.20.0 255.255.255.0
 default-router 192.168.20.1

 

 

Vlan 50

ip dhcp pool netA 
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1

or
interface GigabitEthernet0/1.50
 encapsulation dot1Q 50
 ip address 10.0.0.1 255.0.0.0

 

res
Paul

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Can you post the config for switches (sh run) and the router?

What is the output of "sh vlan summ" from the switches?

HTH

These are the files you asked for

Hello

 

You have defined on the rtr the correct sub-interfaces for vlans 40-50, however your dhcp scope doesn't related to either of vlan 40 or 50.

 

This shouldn't stop connectivity it will only negate hosts from obtaining dhcp correctly if not at all - so you would have to manually apply the correct addressing for each host to communicate with each other.

 

I see trunks on each switch, I am assuming theses are for switch-to switch connectivity and also for switch 0 to rtr connectivity?

 

Your dhcp scope should be


Vlan 40
ip dhcp pool netB  
 network 192.168.20.0 255.255.255.0
 default-router 192.168.20.1

 

 

Vlan 50

ip dhcp pool netA 
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1

or
interface GigabitEthernet0/1.50
 encapsulation dot1Q 50
 ip address 10.0.0.1 255.0.0.0

 

res
Paul

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card