walid97 wrote: Hi guys, I have 2 switches with 3 VLANs that span them (with trunk ports): The VLANs use different subnet like: 192.168.10.0/24 192.168.20.0/24 192.168.30.0/24 What IPs should I give to each switch? because trunking does not work without this IP (not IP for ports, but for switch itself)
walid97 wrote: Oh.. what I think is that we specify an IP for the switch itself with: Switch(config)#int vlan1 Switch(config-if)#ip address 192.168.x.x 255.255.255.0 vlan1 being the default. I dont think that we should specify IP for vlan2, vlan3 and vlan4 in the 2 switches !! Should we ?
walid97 wrote: So, if I have 2 switches and 3 vlans, each switch need this configuration: Switch1(config)#int vlan 2 Switch1(config-if)#ip address 192.168.10.1 255.255.255.0 Switch1(config)#int vlan 3 Switch1(config-if)#ip address 192.168.20.1 255.255.255.0 Switch1(config)#int vlan 4 Switch1(config-if)#ip address 192.168.30.1 255.255.255.0 Switch2(config)#int vlan 2 Switch2(config-if)#ip address 192.168.10.2 255.255.255.0 Switch2(config)#int vlan 3 Switch2(config-if)#ip address 192.168.20.2 255.255.255.0 Switch2(config)#int vlan 4 Switch2(config-if)#ip address 192.168.30.2 255.255.255.0 Switch3(config)#int vlan 2 Switch3(config-if)#ip address 192.168.10.3 255.255.255.0 Switch3(config)#int vlan 3 Switch3(config-if)#ip address 192.168.20.3 255.255.255.0 Switch3(config)#int vlan 4 Switch3(config-if)#ip address 192.168.30.3 255.255.255.0 IPs 192.168.10.4 till 192.168.10.254 can be assigned to the ports in Vlan2 IPs 192.168.20.4 till 192.168.20.254 can be assigned to the ports in Vlan3 IPs 192.168.30.4 till 192.168.30.254 can be assigned to the ports in Vlan4 Does it work this way ? Thanks!