環(huán)境:
Guest: RHEL4U8 @ VirtualBox 3.1.4 HOST: Windows 7 問題描述: HOST可以ping通Guest,反之不行。 問題分析: 1.出現(xiàn)此類問題, 憑經(jīng)驗(yàn), 應(yīng)該是由防火墻引起的。 2.關(guān)閉Windows7 自帶的防火墻, 果然正常了 3.Google之,查出問題是由“Windows 7 防火墻 默認(rèn)防ping”的策略引起的 解決辦法: 1. 直接關(guān)閉Windows 7 系統(tǒng)自帶防火墻(極度不推薦) 2. 添加自定義策略: a. 在控制面板中打開“Windows Firewall” (Control Panel\All Control Panel Items\Windows Firewall), 選擇“Advanced Settings” b. 右擊“Inbound Rules”,選擇“New Rule”,選“Custom”,下一步,選“All Programs”, 下一步,Protocol選擇“ICMPv4”,下一步,設(shè)置本地和遠(yuǎn)端受限IP(根據(jù)情況設(shè)置,我這里設(shè)置 remote IP address 為IP段: 選 These IP Address,然后點(diǎn)Add添加Guest虛擬機(jī)所在的IP段), 下一步,默認(rèn), 下一步,默認(rèn),最后,輸入防火墻規(guī)則名稱和注釋。 c. OK 參考此文: <http://www./enable-ping-reply-windows-7> 版權(quán)歸原作者所有,僅供學(xué)習(xí)記錄之用 ================================================================================= How to Enable Ping Reply in Windows 7![]() ![]() Ping Reply in Windows 7
Reasons: By default ICMP echo request, used for ping command is blocked in Windows 7 default firewall settings. Solutions: in two methods you can solve this ping request reply problem in windows 7. 1) Disable the firewall completely in windows 7 which is not recommended. 2) Give exception for ICMP echo request to reply ping command in existing firewall rule, without disabling it in windows 7.
ICMP Rule in Windows 7To create an exception rule for ICMP echo request in default firewall in windows 7, follow the steps. 1) Go to Windows Firewall in Control panel You can see, Windows Firewall status is On. Click on Advanced settings in left side as mentioned above. 2) Select Inbound Rule, Right clink on it and select New Rule… 3) Select Custom (Custom Rule) at last and press Next. 4) Leave All programs and go to Next. 5) Click on Protocol type and select ICMP4 as shown below. ICMP4 is the protocol used in ping command when your network is communicating with IPv4.
6) Since we are going to apply this rule for any IP, means responds to any IP addresses coming with echo request, select ‘Any IP addresses’ in next screen. You can add specific IP addresses also, if you want your windows 7 computer to respond to them only for ICMP echo request (ping )
7) Allow the connection in next screen, press Next. 8) Keep the all three check boxes checked in the next screen, to apply this rule any type of network you connected. 9) Give a name to this rule. This name will be showing under Inbound Rules in Windows Firewall. In future you can delete the rule by this name. Click Finish. 10) That’s it; these are easy steps to enable ping in windows 7 and the rule will be immediately applied and appeared in inbound rules. Now, Windows 7 computer will be responding to ICMP echo ping requests without disabling or stopping the windows firewall. ================================================================================= |
|