I have to connect two SG220 series switches. On the first switch (S1) I have created 3 vlan (vlan10, vlan20 and vlan30). On one of the port I connected Mikrotik router with the same vlans and DHCP pools for each of them. On the S1 I configured the corresponding port in trunk mode and I excluded the default vlan1. When I dedicate a port to a specific vlan in access mode, connected device get an IP address from the right IP pool.
On the second switch (S2) i configured link port to S1 in a trunk mode and I added the 3 vlans and excluded default vlan1. I have the same setting on the corresponding link port on S1. But when I dedicate a specific port to a vlan on S2, connected device don't get an IP address.
Can someone tell me what am I doing wrong and how can I solve the problem.
This is the configuration of S1:
Switch-F0
v1.1.4.1
CLI v1.0
@
!
hostname "Switch-F0"
clock source sntp
sntp server 0.europe.pool.ntp.org port 123
clock timezone CET 2 minutes 0
!
vlan 10
name "vlan10"
vlan 20
name "vlan20"
vlan 30
name "vlan30"
voice vlan oui-table add 00:E0:BB 3COM
voice vlan oui-table add 00:03:6B Cisco
voice vlan oui-table add 00:E0:75 Veritel
voice vlan oui-table add 00:D0:1E Pingtel
voice vlan oui-table add 00:01:E3 Siemens
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
voice vlan oui-table add 00:09:6E Avaya
!
spanning-tree mst configuration
name "2C:AB:EB:D3:90:5E"
!
ip telnet server
ip ssh server
!
interface po1
switchport mode trunk uplink
!
interface po2
switchport mode trunk uplink
!
interface gi14
switchport mode trunk uplink
switchport trunk allowed vlan add 10,20,30
switchport forbidden vlan add 1
!
interface gi24
switchport trunk allowed vlan add 10,20,30
switchport forbidden vlan add 1
!
This is the configuration of S2:
Switch-F3
v1.1.4.1
CLI v1.0
@
!
hostname "Switch-F3"
clock source sntp
sntp server pool.ntp.org port 123
clock timezone CET 2 minutes 0
username "cisco" secret encrypted
!
vlan 10
name "vlan10"
vlan 20
name "vlan20"
vlan 30
name "vlan30"
voice vlan oui-table add 00:E0:BB 3COM
voice vlan oui-table add 00:03:6B Cisco
voice vlan oui-table add 00:E0:75 Veritel
voice vlan oui-table add 00:D0:1E Pingtel
voice vlan oui-table add 00:01:E3 Siemens
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
voice vlan oui-table add 00:09:6E Avaya
!
spanning-tree mst configuration
name "B0:7D:47:45:49:EB"
!
ip telnet server
ip ssh server
!
interface gi33
switchport mode access
switchport access vlan 10
!
interface gi50
switchport trunk allowed vlan add 10,20,30
switchport forbidden vlan add 1
!
Thanks in advance.