|
在進(jìn)行廣域網(wǎng)模擬環(huán)境實(shí)驗(yàn)時(shí);用到的 virtalbox host-only 網(wǎng)絡(luò),會(huì)在鏈路層廣播數(shù)據(jù)包;如果此時(shí)windows 網(wǎng)卡開(kāi)啟了數(shù)據(jù)包轉(zhuǎn)發(fā),那么不能保證流量走wanem;所以現(xiàn)在需要進(jìn)行設(shè)置: 通過(guò)注冊(cè)表進(jìn)行設(shè)置:regedit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters 將數(shù)值從 1 變?yōu)?0 ;
重啟系統(tǒng)即可完成;參考鏈接: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 參數(shù) ---------------------------------------------- IfLuid : wireless_32772 IfIndex : 23 狀態(tài) : connected 躍點(diǎn)數(shù) : 50 鏈接 MTU : 1500 字節(jié) 可訪問(wèn)時(shí)間 : 29000 毫秒 基本可訪問(wèn)時(shí)間 : 30000 毫秒 重傳間隔 : 1000 毫秒 DAD 傳輸 : 3 站點(diǎn)前綴長(zhǎng)度 : 64 站點(diǎn) ID : 1 轉(zhuǎn)發(fā) : disabled 播發(fā) : disabled 鄰居發(fā)現(xiàn) : enabled 鄰居無(wú)法訪問(wèn)檢測(cè) : enabled 路由器發(fā)現(xiàn) : dhcp 受管理的地址配置 : enabled 其他有狀態(tài)的配置 : enabled 弱主機(jī)發(fā)送 : disabled 弱主機(jī)接收 : disabled 使用自動(dòng)躍點(diǎn)數(shù) : enabled 忽略默認(rèn)路由 : disabled 播發(fā)的路由器生存期 : 1800 秒 播發(fā)默認(rèn)路由 : disabled 當(dāng)前躍點(diǎn)限制 : 0 強(qiáng)制 ARPND 喚醒模式 : disabled 定向 MAC 喚醒模式 : disabled ECN 功能 : application 基于 RA 的 DNS 配置(RFC 6106) : disabled DHCP/靜態(tài) IP 共存 : disabled 保持更新; |
|
|