我必须连接两个 SG220 系列交换机。在第一台交换机 (S1) 上,我创建了 3 个 vlan(vlan10、vlan20 和 vlan30)。在其中一个端口上,我将 Mikrotik 路由器连接到每个端口都具有相同的 vlan 和 DHCP 池。在 S1 上,我将相应的端口配置为中继模式,并排除了默认的 vlan1。当我在访问模式下将端口专用于特定 vlan 时,连接的设备会从正确的 IP 池中获取 IP 地址。
在第二个交换机 (S2) 上,我在中继模式下将链路端口配置为 S1,并添加了 3 个 vlan 并排除了默认 vlan1。我在 S1 上的相应链接端口上有相同的设置。但是当我将特定端口专用于 S2 上的 vlan 时,连接的设备不会获得 IP 地址。
有人可以告诉我我做错了什么以及如何解决问题。
这是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
!
这是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
!
提前致谢。