cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
711
Views
10
Helpful
4
Replies

Help with inter-vlan routing

Tuff
Level 1
Level 1

Hi guys

   I am new to Cisco switching and i need some help. I have 3 vlans och 2 switches. Switch 1 has vlan 10 and vlan 20 configured on it and switch 2 has vlan 30 on it. I configured router on stick with dhcp and everything is good between the vlans and dhcp. My problem right now is that, i have a PC on the switch 2 which is in the default vlan 1. I would like to know how i can configure that pc so that it will get an ip address from the dhcp pool from the dhcp router.topology.PNG

 

 

 

 

dhcp pool.PNGinterfaces.PNG

3 Accepted Solutions

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

As VLAN 1 is not configured on Router. As both switches are working in L2 mode so you have to configure new VLAN 1 on the Router and configure DHCP pool for the VLAN 1. Same like you had configured VLAN 10 or 20. 

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

Hello,

 

in addition to Deepak's post, and wihout wanting to be redundant, you (obviously) also need a subinterface for the native Vlan. So the entire thing would look like this:

 

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool Vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
!
interface GigabitEthernet0/0.1
encapsulation dot1q 1 native
ip address 192.168.1.1 255.255.255.0

 

View solution in original post

Hello
An alternative to creating a additional

sub-interface

which isn't necessarily required for vlan 1

int gig0/0
ip address 192.168.1.1 255.255.255.224
exit

ip dhcp pool vlan 1
network 192.168.1.0 /26
default-router 192.168.1.1


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

4 Replies 4

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

As VLAN 1 is not configured on Router. As both switches are working in L2 mode so you have to configure new VLAN 1 on the Router and configure DHCP pool for the VLAN 1. Same like you had configured VLAN 10 or 20. 

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Hello,

 

in addition to Deepak's post, and wihout wanting to be redundant, you (obviously) also need a subinterface for the native Vlan. So the entire thing would look like this:

 

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool Vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
!
interface GigabitEthernet0/0.1
encapsulation dot1q 1 native
ip address 192.168.1.1 255.255.255.0

 

Thanks everyone.. It was helpful and i was able to fix it.

Hello
An alternative to creating a additional

sub-interface

which isn't necessarily required for vlan 1

int gig0/0
ip address 192.168.1.1 255.255.255.224
exit

ip dhcp pool vlan 1
network 192.168.1.0 /26
default-router 192.168.1.1


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 products for a $25 gift card