如果我的术语有问题,请原谅我——我对 AIX 还很陌生。
我有一个运行 VIO 的 AIX 服务器 (6.1),有两个客户端分区(例如 CLIENTA 和 CLIENTB)。这两个分区在单个物理接口 (ent0) 和虚拟接口 (eth4) 之间绑定的 SEA 上运行。两个分区都将此 SEA 作为 IVM 中的第一个接口(这些接口在每个分区中显示为 ent0)。
这在我们的后台暂存环境中很好;然而,一旦部署到我们的数据中心,CLIENTA 分区将只能从一个 VLAN (112) 访问,CLIENTB 分区将只能从另一个 VLAN (113) 访问,VIO 将只能从管理 VLAN 访问(12)。我们已经部署了防火墙和交换机来支持这些 VLAN 并维护我们现有设备(主要是 Windows/Linux)的这些边界。
使用
cfgassist
,我在两个物理接口(ent2 和 ent3)上创建了一个 Etherchannel (ent9) 作为基本 NIB,其中 ent2 作为活动接口,ent3 作为备份。然后我在 Etherchannel (ent10) 之上创建了 SEA,使用
mkvdev -sea ent9 -vadapter ent5 -default ent5 -defaultid 1
mkvdev -vlan ent10 -tagid 112
然后,我使用和创建了两个客户端 VLANmkvdev -vlan ent10 -tagid 113
(分别创建 ent11 和 ent12)。
现在,当检查 IVM 中 CLIENTA 和 CLIENTB 分区的“以太网”选项卡时,我似乎可以将 ent0 或 ent9 指定为适配器。目前,我将 ent0 保留为第一个适配器,将 ent9 保留为第二个适配器。
在每个客户端分区上,我可以看到 ent0 和 ent1,并且我可以使用 ent0 访问我们的临时 LAN。我尝试通过 ent1 接口(即使用 Etherchannel/VLAN 中继)进行访问,但流量没有通过。
在每个客户端分区上,我创建了一个 VLAN 设备(使用smitty
),其基本适配器 ent1 和 tagid 112(对于 CLIENTA)或 113(对于 CLIENTB)。这创建了 ent2。我使用 mktcpip 为等效的 en2 设备分配 IP、子网掩码和网关。 netstat -nr
显示了我所期望的结果,我的临时网络位于 en0 接口上,常规网络(和默认路由)位于 en2 接口上。
我现在正在通过 ping 到外部世界 (8.8.8.8) 和 112 LAN 上的另一台设备进行测试,但在两个方向上都没有得到任何结果。
我错过了什么导致流量无法通过接口?
如何阻止最终用户(一旦部署)将自己的 VLAN 接口标记为 113 并访问其他客户端的分区?
更新:命令输出
维奥
$ entstat -all ent10
-------------------------------------------------------------
ETHERNET STATISTICS (ent10) :
Device Type: Shared Ethernet Adapter
Hardware Address: 98:be:94:02:1a:e2
Elapsed Time: 0 days 2 hours 55 minutes 50 seconds
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 1054 Packets: 16121
Bytes: 63240 Bytes: 1787781
Interrupts: 0 Interrupts: 16121
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Elapsed Time: 0 days 0 hours 0 minutes 0 seconds
Broadcast Packets: 0 Broadcast Packets: 2146
Multicast Packets: 0 Multicast Packets: 11682
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 0
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
LargeSend DataRateSet
--------------------------------------------------------------
Statistics for adapters in the Shared Ethernet Adapter ent10
--------------------------------------------------------------
Number of adapters: 2
SEA Flags: 00000183
< THREAD >
< LARGESEND >
VLAN Ids :
ent5: 2
Real Side Statistics:
Packets received: 8060
Packets bridged: 1054
Packets consumed: 5807
Packets fragmented: 0
Packets transmitted: 0
Packets dropped: 5807
Packets filtered(VlanId): 1199
Packets filtered(Reserved address): 5807
Virtual Side Statistics:
Packets received: 0
Packets bridged: 0
Packets consumed: 0
Packets fragmented: 0
Packets transmitted: 1054
Packets dropped: 0
Packets filtered(VlanId): 0
Other Statistics:
Output packets generated: 0
Output packets dropped: 0
Device output failures: 0
Memory allocation failures: 0
ICMP error packets sent: 0
Non IP packets larger than MTU: 0
Thread queue overflow packets: 0
SEA THREADS INFORMATION
Thread .............. #0
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 19
Queue max packets queued: 1
Thread .............. #1
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 713
Queue max packets queued: 1
Thread .............. #3
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 5567
Queue max packets queued: 1
Thread .............. #4
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 1074
Queue max packets queued: 1
Thread .............. #5
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 6
Queue max packets queued: 1
Thread .............. #6
SEA Default Queue #8
Queue full dropped packets: 0
Queue packets queued: 0
Queue average packets queued: 1
Queue packets count: 681
Queue max packets queued: 1
--------------------------------------------------------------
Real Adapter: ent9
ETHERNET STATISTICS (ent9) :
Device Type: EtherChannel
Hardware Address: 98:be:94:02:1a:e2
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 0 Packets: 16121
Bytes: 0 Bytes: 1787781
Interrupts: 0 Interrupts: 16121
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 2146
Multicast Packets: 0 Multicast Packets: 11682
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 2000
Driver Flags: Up Broadcast Running
Simplex Promiscuous 64BitSupport
ChecksumOffload PrivateSegment LargeSend DataRateSet
=============================================================
=============================================================
Statistics for every adapter in the EtherChannel:
-------------------------------------------------
Number of adapters: 2
Active channel: primary channel
Operating mode: Network interface backup mode
-------------------------------------------------------------
ETHERNET STATISTICS (ent2) :
Device Type: Gigabit Ethernet PCIe Adapter (e4145716e4142004)
Hardware Address: 98:be:94:02:1a:e2
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 0 Packets: 8060
Bytes: 0 Bytes: 898955
Interrupts: 0 Interrupts: 8060
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 1073
Multicast Packets: 0 Multicast Packets: 5841
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 2000
Driver Flags: Up Broadcast Running
Simplex Promiscuous 64BitSupport
ChecksumOffload PrivateSegment LargeSend
DataRateSet
Gigabit Ethernet PCIe Adapter (e4145716e4142004) Specific Statistics:
-----------------------------------------------------------------
Additional Driver Flags:
Entries to transmit timeout routine: 0
Link Status: Up
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
Transmit and Receive Flow Control Status: Enabled
XON Flow Control Packets Transmitted: 0
XON Flow Control Packets Received: 0
XOFF Flow Control Packets Transmitted: 0
XOFF Flow Control Packets Received: 0
Jumbo Frames: Disabled
TCP Segmentation Offload: Enabled
TCP Segmentation Offload Packets Transmitted: 0
Assigned Interrupt Source Numbers:
Bus interrupt level 0 : 255520
Bus interrupt level 1 : 255521
Receive statistics for RXQ number: 1
Number of receive packets: 8060
Number of receive bytes: 898955
Number of receive interrupts: 8060
Number of receive bad packets: 0
Number of receive packet drops: 0
Number of RX mbufs allocated from system pool: 0
Number of RX mbufs allocated from system pool for Jumbo: 0
Number of system pool RX mbuf allocation failures: 0
Number of rx_hog events: 0
Receive TCP Segment Aggregation: Disabled
Transmit statistics for TXQ number: 1
Number of transmit packets: 0
Number of transmit bytes: 0
Number of Unicast Packets: 0
Number of Multicast packets: 0
Number of Broadcast packets: 0
Number of transmit packet drops: 0
Number of transmit queue overflows: 0
TCP segmentation offload packets transmitted: 0
Maximum entries used on this transmit queue: 0
-------------------------------------------------------------
Backup adapter - ent3:
======================
ETHERNET STATISTICS (ent3) :
Device Type: Gigabit Ethernet PCIe Adapter (e4145716e4142004)
Hardware Address: 98:be:94:02:1a:e2
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 0 Packets: 8061
Bytes: 0 Bytes: 888826
Interrupts: 0 Interrupts: 8061
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 1073
Multicast Packets: 0 Multicast Packets: 5841
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 2000
Driver Flags: Up Broadcast Running
Simplex Promiscuous 64BitSupport
ChecksumOffload PrivateSegment LargeSend
DataRateSet
Gigabit Ethernet PCIe Adapter (e4145716e4142004) Specific Statistics:
-----------------------------------------------------------------
Additional Driver Flags:
Entries to transmit timeout routine: 0
Link Status: Up
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
Transmit and Receive Flow Control Status: Enabled
XON Flow Control Packets Transmitted: 0
XON Flow Control Packets Received: 0
XOFF Flow Control Packets Transmitted: 0
XOFF Flow Control Packets Received: 0
Jumbo Frames: Disabled
TCP Segmentation Offload: Enabled
TCP Segmentation Offload Packets Transmitted: 0
Assigned Interrupt Source Numbers:
Bus interrupt level 0 : 255496
Bus interrupt level 1 : 255497
Receive statistics for RXQ number: 1
Number of receive packets: 8061
Number of receive bytes: 888826
Number of receive interrupts: 8061
Number of receive bad packets: 0
Number of receive packet drops: 0
Number of RX mbufs allocated from system pool: 0
Number of RX mbufs allocated from system pool for Jumbo: 0
Number of system pool RX mbuf allocation failures: 0
Number of rx_hog events: 0
Receive TCP Segment Aggregation: Disabled
Transmit statistics for TXQ number: 1
Number of transmit packets: 0
Number of transmit bytes: 0
Number of Unicast Packets: 0
Number of Multicast packets: 0
Number of Broadcast packets: 0
Number of transmit packet drops: 0
Number of transmit queue overflows: 0
TCP segmentation offload packets transmitted: 0
Maximum entries used on this transmit queue: 0
--------------------------------------------------------------
Virtual Adapter: ent5
ETHERNET STATISTICS (ent5) :
Device Type: Virtual I/O Ethernet Adapter (l-lan)
Hardware Address: 86:1f:e3:5f:21:04
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 1054 Packets: 0
Bytes: 63240 Bytes: 0
Interrupts: 0 Interrupts: 0
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 0
Multicast Packets: 0 Multicast Packets: 0
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 20000
Driver Flags: Up Broadcast Running
Simplex Promiscuous AllMulticast
64BitSupport ChecksumOffload DataRateSet
Virtual I/O Ethernet Adapter (l-lan) Specific Statistics:
---------------------------------------------------------
RQ Length: 4545
Trunk Adapter: True
Priority: 1 Active: True
Filter MCast Mode: False
Filters: 255
Enabled: 0 Queued: 0 Overflow: 0
LAN State: Operational
Hypervisor Send Failures: 1054
Receiver Failures: 1054
Send Errors: 0
Hypervisor Receive Failures: 0
Invalid VLAN ID Packets: 0
ILLAN Attributes: 0000000000003103 [0000000000003103]
Port VLAN ID: 2
VLAN Tag IDs: None
Switch ID: ETHERNET0
Switch Mode: VEB
Management VLAN: Disabled
Hypervisor Information
Virtual Memory
Total (KB) 80
I/O Memory
VRM Minimum (KB) 100
VRM Desired (KB) 100
DMA Max Min (KB) 128
Transmit Information
Transmit Buffers
Buffer Size 65536
Buffers 32
History
No Buffers 0
Virtual Memory
Total (KB) 2048
I/O Memory
VRM Minimum (KB) 2176
VRM Desired (KB) 16384
DMA Max Min (KB) 16384
Receive Information
Receive Buffers
Buffer Type Tiny Small Medium Large Huge
Min Buffers 512 512 128 24 24
Max Buffers 2048 2048 256 64 64
Allocated 512 512 128 24 24
Registered 512 512 128 24 24
History
Max Allocated 512 512 128 24 24
Lowest Registered 512 512 128 24 24
Virtual Memory
Minimum (KB) 256 1024 2048 768 1536
Maximum (KB) 1024 4096 4096 2048 4096
I/O Memory
VRM Minimum (KB) 4096 4096 2560 864 1632
VRM Desired (KB) 16384 16384 5120 2304 4352
DMA Max Min (KB) 16384 16384 8192 4096 8192
I/O Memory Information
Total VRM Minimum (KB) 15524
Total VRM Desired (KB) 61028
Total DMA Max Min (KB) 69760
客户
# entstat -d ent2
-------------------------------------------------------------
ETHERNET STATISTICS (ent2) :
Device Type:
Hardware Address: 86:1f:e4:6d:3d:05
Elapsed Time: 0 days 2 hours 44 minutes 8 seconds
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 0 Packets: 0
Bytes: 0 Bytes: 0
Interrupts: 0 Interrupts: 0
Transmit Errors: 71 Receive Errors: 0
Packets Dropped: 71 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 0
Multicast Packets: 0 Multicast Packets: 0
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 20000
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
DataRateSet VIOENT
# entstat -d ent1
-------------------------------------------------------------
ETHERNET STATISTICS (ent1) :
Device Type: Virtual I/O Ethernet Adapter (l-lan)
Hardware Address: 86:1f:e4:6d:3d:05
Elapsed Time: 0 days 2 hours 44 minutes 23 seconds
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 0 Packets: 0
Bytes: 0 Bytes: 0
Interrupts: 0 Interrupts: 0
Transmit Errors: 71 Receive Errors: 0
Packets Dropped: 71 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 0
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 0 Broadcast Packets: 0
Multicast Packets: 0 Multicast Packets: 0
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 20000
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
DataRateSet VIOENT
Virtual I/O Ethernet Adapter (l-lan) Specific Statistics:
---------------------------------------------------------
RQ Length: 4545
Trunk Adapter: False
Filter MCast Mode: False
Filters: 255
Enabled: 1 Queued: 0 Overflow: 0
LAN State: Operational
Hypervisor Send Failures: 0
Receiver Failures: 0
Send Errors: 0
Hypervisor Receive Failures: 0
Invalid VLAN ID Packets: 71
ILLAN Attributes: 0000000000003002 [0000000000003002]
Port VLAN ID: 2
VLAN Tag IDs: None
Switch ID: ETHERNET0
Hypervisor Information
Virtual Memory
Total (KB) 80
I/O Memory
VRM Minimum (KB) 100
VRM Desired (KB) 100
DMA Max Min (KB) 128
Transmit Information
Transmit Buffers
Buffer Size 65536
Buffers 32
History
No Buffers 0
Virtual Memory
Total (KB) 2048
I/O Memory
VRM Minimum (KB) 2176
VRM Desired (KB) 16384
DMA Max Min (KB) 16384
Receive Information
Receive Buffers
Buffer Type Tiny Small Medium Large Huge
Min Buffers 512 512 128 24 24
Max Buffers 2048 2048 256 64 64
Allocated 512 512 128 24 24
Registered 512 512 128 24 24
History
Max Allocated 512 512 128 24 24
Lowest Registered 512 512 128 24 24
Virtual Memory
Minimum (KB) 256 1024 2048 768 1536
Maximum (KB) 1024 4096 4096 2048 4096
I/O Memory
VRM Minimum (KB) 4096 4096 2560 864 1632
VRM Desired (KB) 16384 16384 5120 2304 4352
DMA Max Min (KB) 16384 16384 8192 4096 8192
I/O Memory Information
Total VRM Minimum (KB) 15524
Total VRM Desired (KB) 61028
Total DMA Max Min (KB) 69760
客户端
尚未配置
答案1
对于 VLAN 部分,一般了解 VLAN 标记和端口 VLAN ID 的工作原理,以及管理程序对此类数据包执行的操作以及 SEA 执行的操作(具体取决于什么)addl_vlan_ids
(附加 VLAN ID 的缩写,定义了 VLAN 中继)针对 SEA 配置,最好抓住演示文稿进入 VLAN 标记和虚拟 I/O 世界的旅程!尽管您需要 Powerpoint,但遗憾的是它无法使用 OpenOffice 或 LibreOffice 打开。
有关 VLAN 和 SEA 的更多信息,请参阅管理关键任务共享以太网适配器上的 VLAN这是由引用的VLAN 标记和 VIOS:一些问题和解答。
当您特别要求 IVM 时,请仔细阅读IVM 和 VLAN 标记这也解释了 VLAN 标记包和端口 VLAN ID 之间的区别,并且还显示了lshwres command
lshwres -r virtualio --rsubtype eth --level lpar
我在评论中提到过。