我必须连接两个SG220系列交换机。在第一个交换机(S1)上,我创建了3个vlan (vlan10、vlan20和vlan30)。在其中一个端口上,我用相同的vlans和DHCP池连接Mikrotik路由器。在S1上,我在主干模式下配置了相应的端口,并排除了默认的vlan1。当我在访问模式下将端口专用于特定的vlan时,连接的设备将从正确的IP池中获得IP地址。
在第二个交换机(S2)上,我以主干模式配置了到S1的链接端口,并添加了3个vlans和排除的默认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
!提前谢谢。
发布于 2018-06-27 12:04:30
显然,你在S1和S2上的后备箱设置不匹配。您需要完全匹配主干设置-相同的无标记/本机VLAN,相同的标记VLAN。如果它仍然不工作,你需要张贴(消毒)配置。
发布信息后进行编辑:您需要在交换机到开关接口上启用主干模式:
switchport mode trunkhttps://networkengineering.stackexchange.com/questions/51391
复制相似问题