我有一台戴尔服务器,带有 2 个板载 bce(4) NIC。这两个 NIC 使用 LACP 聚合到 EX2200 Juniper 交换机上的 lagg0。在 lagg0 上我有 2 个 VLAN。
当我仅配置一个 vlan 时,一切都运行正常,但当我配置第二个 vlan 时,我开始遇到连接到服务器的 sshd 管道断开问题。
最好的例子是,当我通过 ssh 进入该服务器时,它工作了大约 30 秒,之后它就会因为管道破裂而冻结。
一旦我删除第二个 vlan(或者至少从中删除 IP 地址),它就会再次正常工作。
我还要补充一点,这只会在路由流量上中断,如果流量来自与 vlan 相同的子网,那就没问题。
[root@fbsd9] ~ # ifconfig
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:1a:a0:05:c5:da
inet6 fe80::21a:a0ff:fe05:c5da%bce0 prefixlen 64 scopeid 0x1
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
bce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:1a:a0:05:c5:da
inet6 fe80::21a:a0ff:fe05:c5d8%bce1 prefixlen 64 scopeid 0x2
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:1a:a0:05:c5:da
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
laggproto lacp
laggport: bce1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
laggport: bce0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
vlan4094: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=103<RXCSUM,TXCSUM,TSO4>
ether 00:1a:a0:05:c5:da
inet6 fe80::21a:a0ff:fe05:c5da%vlan4094 prefixlen 64 scopeid 0x9
inet 172.16.1.197 netmask 0xffffffc0 broadcast 172.16.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
vlan: 4094 parent interface: lagg0
vlan4093: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=103<RXCSUM,TXCSUM,TSO4>
ether 00:1a:a0:05:c5:da
inet6 fe80::21a:a0ff:fe05:c5da%vlan4093 prefixlen 64 scopeid 0xa
inet 172.16.2.19 netmask 0xffffff00 broadcast 172.16.2.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
vlan: 4093 parent interface: lagg0
答案1
我自己想通了,
问题是,EX2200 前面的 Junos 路由器在将 lagg0(以及 vlan*)的 MAC 地址分配给正确的 VLAN 时出现问题。我只需使用专用以太网卡来执行路由服务(如 ssh 等)。
这样,客户就可以从他们的 VLAN 内连接到服务器,同时我仍在管理接口上具有出站/路由连接。
此致