02-21-2017 06:25 PM - edited 03-08-2019 09:27 AM
I have two remote switches:
switch A (layer 3 switch) : vlan 10 ip 10.80.1.6, vlan 20 ip : 10.80.2.6, switch port f0/1 using vlan 20 and connect to switch B port f0/2
switch B (layer 2 switch): vlan 20 ip add 10.80.2.5, port f0/2 access ports using vlan 20. now the goal is to delet vlan 20 and use vlan 30 ( ip 10.80.1.5). thus port f0/2 will access vlan 30
in order to carry out this job,
(1) I login to switch A.using ssh ip 10.80.1.6, then change port f0/1 to be a layer 3 port through command: no switchport, ip add 12.1.1.1.
(2) I login to switch B using ssh ip 10.80.2.5 change ip address of vlan 20 to be ip 12.1.1.2. allow telnet
(3) in switch A, I telnet 12.1.1.2, add another vlan 30, ip add 10.80.1.5, port f0/2 access vlan 30 in switch B, then I remove vlan 20.
(4) in switch A, I restore the oringinal configuration of port f0/1 and remove ip address of 12.1.1.1
can we do like this by using a layer 3 port (switch A port f0/1) and connect to layer 2 port (switch B port f0/2) and carry the change? thanks
02-21-2017 11:04 PM
I assume the switches are directly connected.
I would create interface Vlan 20 and 30 on both switches with relevant IP Addresses, and I assume you have Vlan 20 and 30 on both switches. then on A f0/1 and B f0/2 do the following commands
"switchport mode trunk" you should still stay connected, but now using a trunk
then change the switchport access vlan from 20 to 30 on the interfaces
then set
"switchport mode access" on both switches.
remember do a 'reload in 005' on the switches in case you loose connection
02-21-2017 11:56 PM
Hi Richard,
Thanks, but my typo, the requirement is: in switch B, vlan 30 need to have ( ip 10.80.2.5), same as vlan 20, you can't assign same ip, also remember switch B is layer 2 switch, are you able to assign multiple vlan ip for it?
02-22-2017 03:46 AM
ok why not generate a new vlan xx, interface xx with a different IP address, trunk between the switches
connect using the new vlan Ip address, then you can play around with the other vlan addresses as required.
Yes you can have more than one vlan interfaces
02-22-2017 08:13 AM
I agree with Richard.
must have same vlans on both switches and connect two Switches using a trunk port as listed above by Richard.
HTH
Masood
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide