はじめに
このドキュメントでは、Nexus 9000 シリーズスイッチにおいて、Trunk Port に追加の vlan を設定する方法と、その際の通信影響について記載します。
試験環境
今回の試験環境は下記となります。
SW-2 の Port E1/1 と E1/2 は vlan 1-2 のみ通している状況とし、vlan 3 を新規に追加する状況を想定します。
なお、SW-1 の Interface vlan 2 から、SW-2 を介して、SW-3 の Interface vlan 2 に対して icmp を連続して送信し、通信影響を確認します。

追加方法1
SW-2 の Port E1/1 と E1/2 に下記設定を追加します。
SW-2(config-if-range)# switchport trunk allowed vlan all
このとき、icmp の結果が以下となります。
SW-1# ping 2.2.2.3 interval 0 count unlimited
省略
64 bytes from 2.2.2.3: icmp_seq=1019 ttl=254 time=0.517 ms
64 bytes from 2.2.2.3: icmp_seq=1020 ttl=254 time=0.559 ms
64 bytes from 2.2.2.3: icmp_seq=1021 ttl=254 time=0.546 ms
64 bytes from 2.2.2.3: icmp_seq=1022 ttl=254 time=0.434 ms
64 bytes from 2.2.2.3: icmp_seq=1023 ttl=254 time=0.548 ms
64 bytes from 2.2.2.3: icmp_seq=1024 ttl=254 time=0.554 ms
64 bytes from 2.2.2.3: icmp_seq=1025 ttl=254 time=0.539 ms
64 bytes from 2.2.2.3: icmp_seq=1026 ttl=254 time=0.417 ms
^C
--- 2.2.2.3 ping statistics ---
1028 packets transmitted, 1027 packets received, 0.10% packet loss
round-trip min/avg/max = 0.383/0.547/2.664 ms
SW-1#
追加方法2
SW-2 の Port E1/1 と E1/2 に下記設定を追加します。
SW-2(config-if-range)# switchport trunk allowed vlan 2-3
このとき、icmp の結果が以下となります。
64 bytes from 2.2.2.3: icmp_seq=2424 ttl=254 time=0.683 ms
64 bytes from 2.2.2.3: icmp_seq=2425 ttl=254 time=0.747 ms
64 bytes from 2.2.2.3: icmp_seq=2426 ttl=254 time=0.485 ms
64 bytes from 2.2.2.3: icmp_seq=2427 ttl=254 time=0.465 ms
64 bytes from 2.2.2.3: icmp_seq=2428 ttl=254 time=0.464 ms
64 bytes from 2.2.2.3: icmp_seq=2429 ttl=254 time=0.461 ms
64 bytes from 2.2.2.3: icmp_seq=2430 ttl=254 time=0.482 ms
64 bytes from 2.2.2.3: icmp_seq=2431 ttl=254 time=0.484 ms
64 bytes from 2.2.2.3: icmp_seq=2432 ttl=254 time=0.474 ms
64 bytes from 2.2.2.3: icmp_seq=2433 ttl=254 time=0.448 ms
^C
--- 2.2.2.3 ping statistics ---
2435 packets transmitted, 2432 packets received, 0.12% packet loss
round-trip min/avg/max = 0.384/0.524/1.45 ms
SW-1#
追加方法3
SW-2 の Port E1/1 と E1/2 に下記設定を追加します。
SW-2(config-if-range)# switchport trunk allowed vlan add 3
このとき、icmp の結果が以下となります。
64 bytes from 2.2.2.3: icmp_seq=1728 ttl=254 time=0.693 ms
64 bytes from 2.2.2.3: icmp_seq=1729 ttl=254 time=0.676 ms
64 bytes from 2.2.2.3: icmp_seq=1730 ttl=254 time=0.585 ms
64 bytes from 2.2.2.3: icmp_seq=1731 ttl=254 time=0.597 ms
64 bytes from 2.2.2.3: icmp_seq=1732 ttl=254 time=0.596 ms
64 bytes from 2.2.2.3: icmp_seq=1733 ttl=254 time=0.506 ms
64 bytes from 2.2.2.3: icmp_seq=1734 ttl=254 time=0.466 ms
64 bytes from 2.2.2.3: icmp_seq=1735 ttl=254 time=0.46 ms
64 bytes from 2.2.2.3: icmp_seq=1736 ttl=254 time=0.459 ms
64 bytes from 2.2.2.3: icmp_seq=1737 ttl=254 time=0.475 ms
64 bytes from 2.2.2.3: icmp_seq=1738 ttl=254 time=0.466 ms
^C
--- 2.2.2.3 ping statistics ---
1740 packets transmitted, 1738 packets received, 0.11% packet loss
round-trip min/avg/max = 0.388/0.535/1.484 ms
SW-1#
通信影響がある設定
下記の場合は、vlan 2 が許可されていないため通信影響があります。
SW-2(config-if-range)# switchport trunk allowed vlan 3
参考情報
Cisco Nexus 9000 NX-OS Interfaces Configuration Guide, Release 10.2(x)