cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1873
Views
5
Helpful
11
Replies

cant add ip address for another vlan interface

robertkwild
Spotlight
Spotlight

hi all,

 

i have set up a management ip obviously to manage the switch and given it the management gateway so i can access it on different vlans ie my pc (i have done this for all my switches below and it works)

 

but im trying to give another vlan interface an ip address as i have other switches on vlan 7 aswell and i would like ping between them all (the same command i did in the picture doesnt work like it did for the other switches)

 

vlan 7

switcha - 192.168.200.254

switchb - 192.168.200.253

switchc - 192.168.200.252

switchd - 192.168.200.251 - one i want to do

 

see pic

 

cheers,

rob

11 Replies 11

Richard Burts
Hall of Fame
Hall of Fame

Rob

 

It appears that this switch is SG300. Can you confirm that this is correct? Is this switch operating in layer 2 mode or in layer 3 mode?

 

The behavior suggests that it is in layer 2 mode. As a layer 2 switch it needs a vlan interface for management purposes. But it needs only one management vlan. If you configure a second vlan interface and give it an IP address many layer 2 switches will disable the original management vlan interface. That appears to be the case in the output that you posted.

 

HTH

 

Rick

HTH

Rick

its an sg300-52P

can i change it to layer 3 via command line?

as vip mamber said.. run on l3

Jaderson Pessoa
*** Rate All Helpful Responses ***

ok looks simple but i saw that NOTE that everything ie config will be erased... maybe i will leave it for now

 

so does that mean it will flatten the switch and do a hard factory reset?

You will lost your all configurations.

check this other post talking about: https://community.cisco.com/t5/small-business-switches/changing-sg300-from-layer-3-to-layer-2/td-p/2349293
Jaderson Pessoa
*** Rate All Helpful Responses ***

So there is significant operational impact in making the change from layer 2 to layer 3 which is required to be able to have active IP subnets in multiple vlans. The original poster needs to determine whether the benefit is worth is. Especially since it looks like the vlan 7 they want to put an IP address on duplicates the function of the existing management vlan 250 I wonder if they really want to do this.

 

HTH

 

Rick

HTH

Rick

Nice answer Richard. 

Jaderson Pessoa
*** Rate All Helpful Responses ***

Thank you. It does illustrate clearly the importance of having a clear network architecture and as you prepare to deploy a new switch to determine whether you want it to be layer 3 capable or not.

 

HTH

 

Rick

HTH

Rick

unfortunatley this switch was configured before i joined here otherwise i would had made sure it was a L3 switch and not a L2 switch

 

the reason i want to make it a L3 is because i want to add an ip address to one of the VLANS aswell as add a management iip

I do not understand this statement

i want to add an ip address to one of the VLANS aswell as add a management iip

If I am understanding the discussion the switch already has a management vlan (vlan 250) and an IP address in that vlan. You appear to want to add an IP address for another vlan for management purposes (vlan 7). It is not clear why you need 2 vlans for management purposes. If I have misunderstood something please clarify. 

 

But putting that aspect aside, you have asked a question about configuring an IP address on a second vlan. It appears that to be able to do that you will need to change the operating mode from layer 2 to layer 3 which will remove the existing config. If you want the second active IP address then schedule a maintenance window and make your changes, which will include needing to rebuild the configuration.

 

HTH

 

Rick

HTH

Rick
Review Cisco Networking products for a $25 gift card