在進行廣域網模擬環境實驗時;用到的 virtalbox host-only 網絡,會在鏈路層廣播數據包;如果此時windows 網卡開啟了數據包轉發,那么不能保證流量走wanem;所以現在需要進行設置:
通過注冊表進行設置:regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
將數值從 1 變為 0 ;

重啟系統即可完成;參考鏈接:How to enable IP forwarding in Windows to perform Emulation using NetSim?
# 2021年1月31日
Restart your system and again execute the command "netsh interface ipv4 show interface <if id>" to verify whether IP forwarding is enabled.
PS C:\Users\Administrator> netsh interface ipv4 show interface 23 接口 WLAN 3 參數 ---------------------------------------------- IfLuid : wireless_32772 IfIndex : 23 狀態 : connected 躍點數 : 50 鏈接 MTU : 1500 字節 可訪問時間 : 29000 毫秒 基本可訪問時間 : 30000 毫秒 重傳間隔 : 1000 毫秒 DAD 傳輸 : 3 站點前綴長度 : 64 站點 ID : 1 轉發 : disabled 播發 : disabled 鄰居發現 : enabled 鄰居無法訪問檢測 : enabled 路由器發現 : dhcp 受管理的地址配置 : enabled 其他有狀態的配置 : enabled 弱主機發送 : disabled 弱主機接收 : disabled 使用自動躍點數 : enabled 忽略默認路由 : disabled 播發的路由器生存期 : 1800 秒 播發默認路由 : disabled 當前躍點限制 : 0 強制 ARPND 喚醒模式 : disabled 定向 MAC 喚醒模式 : disabled ECN 功能 : application 基於 RA 的 DNS 配置(RFC 6106) : disabled DHCP/靜態 IP 共存 : disabled
保持更新;
