Странное 2960 поведение в моей сети

10

У меня есть несколько маршрутизаторов и коммутаторов Cisco в наших зданиях. По сути, каждое здание имеет один маршрутизатор и один или несколько коммутаторов. Я использую только две VLAN для каждого здания: VLAN1 - это VLAN для передачи данных (также собственная), а VLAN200 - это голосовая VLAN. VLAN каждого коммутатора «подключен» к подинтерфейсу на соответствующем маршрутизаторе здания (802.1q), и на каждом коммутаторе порт, подключенный к подинтерфейсу маршрутизатора, настроен как магистральный порт, поэтому мы имеем смежность двух VLAN.

Дело в том, что, как я заметил, коммутаторы с IOS 12.2 могут «выбирать» правильный интерфейс VLAN, когда я пытаюсь достичь (пропинговать) удаленную подсеть. Все коммутаторы имеют 192.168.X.0/24данные и 10.10.X.0 /24голос, поэтому, если я пытаюсь пропинговать 192.168.1.2, коммутатор использует интерфейс VLAN ( 192.168.20.2) в качестве интерфейса пинга своего источника, а если я пытаюсь пропинговать мой Менеджер вызовов ( 10.10.254.1), коммутатор использует интерфейс VLAN в 10.10.248.2качестве источника ,

Коммутаторы с IOS 15 (новые), с той же конфигурацией и подключенные к маршрутизаторам того же типа (как коммутаторы с IOS 12.2), не используют правильный интерфейс VLAN. Они всегда используют голосовой интерфейс VLAN (в моем случае 200), поэтому я должен выбрать исходный интерфейс, если хочу получить ответ от удаленного устройства (конечно, в зависимости от подсети удаленного назначения). Странное поведение, так как я использую в основном одну и ту же конфигурацию, но в разных местах. Новые коммутаторы используют шаблон «dual-ipv4-and-ipv6», а старые (12.2) используют шаблон «desktop default». Компьютеры за коммутаторами не имеют никаких проблем с подключением, потому что маршрутизатор направляет пакеты к правильному месту назначения, но почему коммутаторы не делают? Есть идеи?

Я не уверен, что мои коммутаторы поддерживают маршрутизацию, ниже результата команды "sh sdm предпочитать":

  default             Default bias
  dual-ipv4-and-ipv6  Support both IPv4 and IPv6
  lanbase-routing     Supports both IPv4 and IPv6 Static Routing
  qos                 QoS bias

Это конфигурация коммутатора:

Current configuration : 9403 bytes
!
! Last configuration change at 00:09:28 UTC Mon Jun 27 2011 by admin
! NVRAM config last updated at 23:32:34 UTC Sun Jun 26 2011 by admin
!
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!

!
boot-start-marker
boot-end-marker
!
enable secret 5 *Removed*
!
username admin privilege 15 secret 5 *Removed*
no aaa new-model
system mtu routing 1500
!
!
ip domain-name lvdomain.local
ip name-server 192.168.0.43
ip name-server 192.168.0.45
!
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos srr-queue input bandwidth 70 30
mls qos srr-queue input threshold 1 80 90
mls qos srr-queue input priority-queue 2 bandwidth 30
mls qos srr-queue input cos-map queue 1 threshold 2 3
mls qos srr-queue input cos-map queue 1 threshold 3 6 7
mls qos srr-queue input cos-map queue 2 threshold 1 4
mls qos srr-queue input dscp-map queue 1 threshold 2 24
mls qos srr-queue input dscp-map queue 1 threshold 3 48 49 50 51 52 53 54 55
mls qos srr-queue input dscp-map queue 1 threshold 3 56 57 58 59 60 61 62 63
mls qos srr-queue input dscp-map queue 2 threshold 3 32 33 40 41 42 43 44 45
mls qos srr-queue input dscp-map queue 2 threshold 3 46 47
mls qos srr-queue output cos-map queue 1 threshold 3 4 5
mls qos srr-queue output cos-map queue 2 threshold 1 2
mls qos srr-queue output cos-map queue 2 threshold 2 3
mls qos srr-queue output cos-map queue 2 threshold 3 6 7
mls qos srr-queue output cos-map queue 3 threshold 3 0
mls qos srr-queue output cos-map queue 4 threshold 3 1
mls qos srr-queue output dscp-map queue 1 threshold 3 32 33 40 41 42 43 44 45
mls qos srr-queue output dscp-map queue 1 threshold 3 46 47
mls qos srr-queue output dscp-map queue 2 threshold 1 16 17 18 19 20 21 22 23
mls qos srr-queue output dscp-map queue 2 threshold 1 26 27 28 29 30 31 34 35
mls qos srr-queue output dscp-map queue 2 threshold 1 36 37 38 39
mls qos srr-queue output dscp-map queue 2 threshold 2 24
mls qos srr-queue output dscp-map queue 2 threshold 3 48 49 50 51 52 53 54 55
mls qos srr-queue output dscp-map queue 2 threshold 3 56 57 58 59 60 61 62 63
mls qos srr-queue output dscp-map queue 3 threshold 3 0 1 2 3 4 5 6 7
mls qos srr-queue output dscp-map queue 4 threshold 1 8 9 11 13 15
mls qos srr-queue output dscp-map queue 4 threshold 2 10 12 14
mls qos queue-set output 1 threshold 1 100 100 50 200
mls qos queue-set output 1 threshold 2 125 125 100 400
mls qos queue-set output 1 threshold 3 100 100 100 400
mls qos queue-set output 1 threshold 4 60 150 50 200
mls qos queue-set output 1 buffers 15 25 40 20
mls qos
!
crypto pki trustpoint TP-self-signed-3287232768
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-3287232768
 revocation-check none
 rsakeypair TP-self-signed-3287232768
!
!
crypto pki certificate chain TP-self-signed-3287232768
 certificate self-signed 01
  *Removed*
        quit
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
!
!
!
!
!
vlan internal allocation policy ascending
!
!
class-map match-all AutoQoS-VoIP-RTP-Trust
  match ip dscp ef
class-map match-all AutoQoS-VoIP-Control-Trust
  match ip dscp cs3  af31
!
policy-map AutoQoS-Police-CiscoPhone
 class AutoQoS-VoIP-RTP-Trust
   set dscp ef
  police 1000000 8000 exceed-action policed-dscp-transmit
 class AutoQoS-VoIP-Control-Trust
   set dscp cs3
  police 1000000 8000 exceed-action policed-dscp-transmit
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/1
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/2
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/3
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/4
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/5
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/6
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/7
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/8
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/9
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/10
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/11
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface FastEthernet0/12
 description *****IP PHONES and PC*****
 switchport voice vlan 200
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos trust
 spanning-tree portfast
 service-policy input AutoQoS-Police-CiscoPhone
!
interface GigabitEthernet0/1
 description *****Trunk to FRIAS.3580.1941*****
 switchport mode trunk
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust cos
 auto qos trust
!
interface GigabitEthernet0/2
 description *****Trunk to FRIAS.3580.1941*****
 switchport mode trunk
 srr-queue bandwidth share 1 30 35 5
 queue-set 2
 priority-queue out
 mls qos trust cos
 auto qos trust
!
interface Vlan1
 description *****3580 Data VLAN 1*****
 ip address 192.168.26.2 255.255.255.0
 no ip route-cache
!
interface Vlan200
 description *****3580 Voice VLAN 200*****
 ip address 10.10.253.2 255.255.255.0
 no ip route-cache
!
ip http server
ip http authentication local
ip http secure-server
!
!
snmp-server community public RO
!
ipv6 access-list IPv6_In_Traffic_Shutdown
 deny ipv6 any any
!
!
line con 0
line vty 0 4
 logging synchronous
 login local
 length 0
line vty 5 15
 login
!
end
Абделя
источник
4
Можете ли вы опубликовать конфиг с того, который работает, а тот, который не работает?
Рон Магистраль
4
В дополнение к конфигам, может быть, show ip route от рабочего и нерабочего?
Тодд Уилкокс
Переключатели L2
Абдель
@Abdel Вполне возможно, что ваши 2960 коммутаторы с IOS 15.x поддерживают маршрутизацию, и это может объяснить то, что вы видите. См. Этот документ Cisco о настройке IP-маршрутизации на 2960 с IOS 15.0 (1): cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/…
Тодд Уилкокс,
1
Я не видел команду ip default-gatewayили ip route 0.0.0.0 0.0.0.0в этой конфигурации. Если вы пингуете от самого коммутатора, это может быть проблемой.
Джастин Ян

Ответы:

1

Коммутатор Cisco 2960 - это коммутатор с поддержкой L3. Современные коммутаторы обычно больше не ограничиваются L2, а границы маршрутизатора / коммутатора размыты по сравнению с традиционными определениями.

Вам не хватает ip routingкоманды из вашей конфигурации. Если вы добавите эту команду, вы обнаружите, что SVI VLAN могут маршрутизироваться непосредственно между собой на коммутаторе. Дополнительную информацию об этой функции можно найти здесь: Настройка маршрутизации InterVLAN на коммутаторах уровня 3

Однако я не вижу какой-либо конфигурации маршрутизации или шлюза по умолчанию, настроенного на вашем коммутаторе, поэтому я сомневаюсь, что сам коммутатор может обратиться к любой помощи удаленной сети. Я подозреваю, что здесь используется proxy-arp, а основные классы - это то, что «выбирает» VLAN. Прокси ARP

fileinster
источник
1
Вам нужна как минимум лицензия IP Base, чтобы использовать ее в качестве коммутатора уровня 3. Если вы получаете LAN Base, это коммутатор уровня 2.
Рон Мопин
1

Я предполагаю, что локальные сети не добавляются в таблицу маршрутизации автоматически. Проверьте show ip route, появляются ли они, и добавьте локальные маршруты, если необходимо.

Zac67
источник
0

Коммутатор или маршрутизатор по умолчанию использует исходящий интерфейс, если у вас есть два исходящих интерфейса с одинаковой маской, я думаю, что коммутатор использует самый низкий IP-адрес. Из личного опыта я знаю, что если у вас есть 32-битный IP-адрес маски в обратной связи, коммутатор будет использовать этот IP-адрес для всех пингов, если вы не определите источник. В вашем случае, когда вы отправляете эхо-запрос на устройство, которое находится в другой подсети, чем сеть 10.xxx, вы не получите ответ, потому что этот шлюз не знает о других подсетях, так как это - сеть voip, этот шлюз знает только о IP-адресах VoIP.

user3476261
источник
0

вы настроили интерфейсы для голосового VLAN, пожалуйста, попробуйте использовать команду ниже для интерфейсов

switchport mode dynamic desirable
switchport voice vlan 200
duplex auto
speed auto
mls qos trust device cisco-phone
mls qos trust cos
spanning-tree portfast
no shutdown

а также поставить ip default-gateway <ip of router interface>.

Суджит Сингх
источник