I have network. I have three different networks and 2 vlans. PC0 is a member of vlan 10, PC1 is a member of vlan 20. One of the networks for vlan 10, another one is for vlan 20, third network is for switches. I use first layer 3 switch for vlans and i want to use the switch as a default gateway for switches. Their default gateway is 192.168.0.254, i gave this ip address to "int vlan 1" of the layer 3 switch.
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 192.168.0.254 255.255.255.0
!
interface Vlan10
mac-address 00e0.a363.b601
ip address 192.168.1.2 255.255.255.0
!
interface Vlan20
mac-address 00e0.a363.b602
ip address 192.168.2.2 255.255.255.0
!
But i want to use 2 switches. If i use the same configuration there will be ip address conflict, how can i fix this ?