如何在 macOS Big Sur 11.4 中禁用校验和卸载?

如何在 macOS Big Sur 11.4 中禁用校验和卸载?

将我的 macOS 更新到 macOS Big Sur 11.4 后,在我的主机和主机上的 VM 之间捕获的数据包显示 IP 和 TCP 层的数据包校验和错误。我已经在 VM 内部捕获了数据包,没有校验和错误。

我认为我尝试过:

  1. sysctl -w net.link.ether.inet.apple_hwcksum_rx=0并且sysctl -w net.link.ether.inet.apple_hwcksum_tx=0。我收到错误sysctl: unknown oid 'net.link.ether.inet.apple_hwcksum_rx'。我检查了一下,net.link.ether.inet 可用的选项有
~: sysctl -w net.link.ether.inet.
arp_llreach_base         maxhold                  send_conflicting_probes
arp_unicast_lim          maxhold_total            sendllconflict
host_down_time           maxtries                 stats
keep_announcements       probe_intvl              useloopback
log_arp_warnings         proxyall                 verbose
max_age                  prune_intvl

2.sudo ifconfig bridge100 -rxcsum -txcsum给予ifconfig: -rxcsum: Operation not supported on socket

bridge100接口的相关信息:

bridge100: flags=8a63<UP,BROADCAST,SMART,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 index 18
    eflags=41808000<ROUTER4,CL2K,ECN_ENABLE,FASTLN_ON>
    options=3<RXCSUM,TXCSUM> <------------------I can see rxcsum here, still operation is not allowed
    ether 8a:e9:fe:55:3e:64
    inet 192.168.73.1 netmask 0xffffff00 broadcast 192.168.73.255
    inet6 fe80::1874:f039:53ce:72b7%bridge100 prefixlen 64 secured scopeid 0x12
    inet6 fd15:4ba5:5a2b:1002:cf6:8ccd:2af9:aa84 prefixlen 64 deprecated autoconf secured
    Configuration:
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x0
    member: en10 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 17 priority 0 path cost 0
            hostfilter 0 hw: 0:0:0:0:0:0 ip: 0.0.0.0
    member: en11 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 19 priority 0 path cost 0
            hostfilter 0 hw: 0:0:0:0:0:0 ip: 0.0.0.0
    member: en12 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 22 priority 0 path cost 0
            hostfilter 0 hw: 0:0:0:0:0:0 ip: 0.0.0.0
    Address cache:
        0:c:29:7:ba:63 Vlan1 en11 1093 flags=0<>
        0:c:29:7:ba:59 Vlan1 en12 1190 flags=0<>
    nd6 options=201<PERFORMNUD,DAD>
    media: autoselect
    status: active
    state availability: 0 (true)
    desc: com.apple.NetworkSharing
    qosmarking enabled: yes mode: none
    low power mode: disabled
    multi layer packet logging (mpklog): disabled
    routermode4: enabled
    routermode6: enabled

VM 托管在 VMware Fusion 12.0 上

答案1

正如@Spiff 建议的那样,我尝试了sudo sysctl net.link.generic.system.hwcksum_tx=0sudo sysctl net.link.generic.system.hwcksum_rx=0并且它完成了工作。

相关内容