cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
982
Views
10
Helpful
8
Replies

PROVIDING IP ADDRESSES TO VLAN BY L3 SWITCH

vkarthik.cs
Level 1
Level 1

I know how to give the dynamic ip by router to its networks.

But i like to give the dynamic ip to vlan by L3 switch.

Is it possible?:?? I want a help?

1 Accepted Solution

Accepted Solutions

Hi,

enable

config t

service dhcp

ip dhcp excluded-address x.x.x.x  x.x.x.x  ---> range of static IPs you want to exclude from dhcp pool

no ip dhcp conflict-logging

ip dhcp pool mypool

network x.x.x.x / x  ---> subnet + prefix length

default router x.x.x.x  ---> the default gateway: address of the vlan interface in same subnet as the pool

dns-server x.x.x.x x.x.x.x   ----> the dns servers

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

View solution in original post

8 Replies 8

cadet alain
VIP Alumni
VIP Alumni

Hi,

you can use a  switch as DHCP server without any problem.

the configuration is the same but  to be sure just activate the service first: service dhcp in global config

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Thank you sir,,,,can u say the switching commands for that..............i am waiting for that

Hi,

enable

config t

service dhcp

ip dhcp excluded-address x.x.x.x  x.x.x.x  ---> range of static IPs you want to exclude from dhcp pool

no ip dhcp conflict-logging

ip dhcp pool mypool

network x.x.x.x / x  ---> subnet + prefix length

default router x.x.x.x  ---> the default gateway: address of the vlan interface in same subnet as the pool

dns-server x.x.x.x x.x.x.x   ----> the dns servers

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

vkarthik.cs
Level 1
Level 1

very very thank you sir.............but i have one doubt.......i.e

we have one dhcp server for providing ip to vlan(different)

suppose if i am configuring l3 switch as dhcp to provide ip to vlan(differnt).

Is there any wrong that 2 dhcp server in network?

Hi,

if you've got multiple servers then the fastest one to respod to DHCP discover will be the one providing the IP.

if the router is in another subnet and you  can't communicate with it then it won't be no problem.

tell us exactly what you wanrt to achieve.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

am already having one dhcp server on network.....it will give ip to one vlan

now am going to configuring router as dhcp....to provide ip to another vlan......

so is there any by this?./...........this is my question..........

Hi,

are these 2 servers on same subnet? if not then the vlan that is attached to the switch dhcp server will be broadcasting the dhcp discovers and so if you've got no dhcp relay agent configured the other server will never see a discover message so it won't be a problem.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

very very thank you sir.

Review Cisco Networking for a $25 gift card