cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
748
Views
0
Helpful
11
Replies

Switch IP Address

My core switch has a three vlans, vlan1, vlan2 and vlan3. Vlan2 and vlan3 has been configured with their IP Address. All Servers and Workstations belong to vlan1. I have not assigned an IP Address to vlan1 yet but the switch IP Address is 10.1.1.2. I need to assign an IP Address to vlan1. Can i use the switch IP Address 10.1.1.2 or should i give it a new IP Address? Can either one of these work?

Any help will be greatly appreciated

Thanks,

Lake

11 Replies 11

Jon Marshall
Hall of Fame
Hall of Fame

lharrypersaud wrote:

My core switch has a three vlans, vlan1, vlan2 and vlan3. Vlan2 and vlan3 has been configured with their IP Address. All Servers and Workstations belong to vlan1. I have not assigned an IP Address to vlan1 yet but the switch IP Address is 10.1.1.2. I need to assign an IP Address to vlan1. Can i use the switch IP Address 10.1.1.2 or should i give it a new IP Address? Can either one of these work?

Any help will be greatly appreciated

Thanks,

Lake

Lake

So is 10.1.1.2 in vlan 1 ?

Not entirely sure what you are asking. Do you mean does the switch need a different address than the one used by servers/workstations ? What is the default-gateway for servers/workstations.

By the way there are probably 2 things you should look to change -

1) having servers and workstations in the same vlan is a bad idea. Think broadcasts/virus's etc.

2) using vlan for any end devices is a bad idea.

Ideally you want the servers in their own vlan(s) and the workstations in their own vlan(s). Perhaps this is what vlan 2 and 3 are for ?

Jon

10.1.1.2 is in vlan1 which is the default vlan which is the switch IP Address but it has not yet been assigned to vlan1 manually.

Do you mean does the switch need a different address than the one used by servers/workstations ?Yes

My question is since 10.1.1.2 has been assigned to the switch can i manully assign it to vlan1?

The servers and workstations are using the the firewall for the default gateway, 10.1.1.1

I am planning to separate servers and workstations but i will have to do that at a later date because i have to change IP Addresses of server.

Thanks,

Lake

Lake

My question is since 10.1.1.2 has been assigned to the switch can i manully assign it to vlan1?

Still not totally sure what you mean. When you say "assigned" to the switch what do you mean ie. it hasn't actually been configured yet it is just the IP that will be used for the switch ?

If so then yes configure the vlan 1 interface with that ip eg.

int vlan 1

ip address 10.1.1.2

Jon

10.1.1.2 is the IP Address i use to login to the switch to manage it? Can i manually assign it to vlan1? Optionally, can i use another IP Address for vlan1 if i choose to?

Thanks,

Lake

What is that address assigned to currently ie. it must be attached to an interface somewhere on the switch

Jon

Vlan1 is is currently a layer 2 vlan. I just assigned the IP Address to the switch during the initial setup not to an interface. I am trying to make vlan1 a layer 3 vlan by assigning an IP Address to vlan1

Thanks,

Lake

But that IP must be assigned to something. What switch are you using ? Can you post a "sh ip int brief" from the switch ?

I am very sorry for all this trouble. I am not at the office right now.

The IP is assigned to the core switch which is just for management and it it the management vlan1.

Vlan1 has not been configured yet because it is the default vlan but i would just like to assign and ip address to it and enable routing?

Thanks,

Lake

lharrypersaud wrote:

I am very sorry for all this trouble. I am not at the office right now.

The IP is assigned to the core switch which is just for management and it it the management vlan1.

Vlan1 has not been configured yet because it is the default vlan but i would just like to assign and ip address to it and enable routing?

Thanks,

Lake

Lake

No need to apologise.

Unless the switch is something like a 6500 running CatOS where you apply the IP to an sc0 interface then usually on switches (L2 or L3) when you assign an IP it is assigned to L3 vlan interface (or more unusually to a loopback interface). So i think that is where the confusion is coming from on our side ie. 10.1.1.2 is already assigned on the switch so it must be assigned to an interface.

Perhaps when you get back into work you can tell use what switch model this is and post "sh ip int brief" and we can take it from there.

Jon

Hi Lake,

a vlan is a L2 broadcast domain it is not a L3 thing but you can assign an ip address to an interface Vlan or SVI which is a CPU interface accessible by all hosts in this VLAN.Can you post output of show ip int brief | ex una.

Regards.

Alain

Don't forget to rate helpful posts.

I logged into the switch this morning and i verified that the ip address was assigned to vlan1. I am extremely sorry for all the confusion.

Thanks a million,

Lake