您的位置:首页 > 理论基础 > 计算机网络

ubuntu+win7 网络问题汇总

2014-01-13 19:51 267 查看
Q: can't ping win7 host and tftp.

A:

http://www.sysprobs.com/enable-ping-reply-windows-7

and refresh.

控制面板 系统和安全 允许程序通过防火墙

高亮某个条目 更改设置。

Q: ubuntu device not managed.

A: sudo vim /etc/NetworkManager/NetworkManager.conf

change false to true.

sudo service network-manager restart

Q: guest can't assign static ip on bridge.

A: use Host Only Adapter. OR double check your NetworkManager settings (I once wrongly set DNS.)

Q: guest not getting IP via DHCP over bridge mode.

A:

I work at a university, and it turns out that the network policy by default limits one MAC address per port, which explains the behavior I was seeing perfectly; all the VM traffic was being filtered at the switch. The solution was as simple as requesting them
to raise the MAC limit on my port, and the VMs are visible on the network now, lovely:-)

注记:ubuntu host + win7 guest: 我换一个地方就可以了,证明了上面说的是对的。



Q: win7 无法手动设置IP

A: WIN7自动进行了网络判断,更改了你的设置。如果你按单位网络的标准设置IP和网关,应该不会出现这个问题。



Q: win add firewall rules in programs

A:

Adding a rule for incoming traffic without security encapsulation for messenger.exe:

netsh advfirewall firewall add rule name="allow messenger" dir=in program="c:\programfiles\messenger\msmsgs.exe" security=authnoencap action=allow

Adding a rule for outgoing traffic at the port 80:

netsh advfirewall firewall add rule name="allow80" protocol=TCP dir=out localport=80 action=block

Adding rules to inbound traffic with safety & traffic encryption for TCP through port 80:

netsh advfirewall firewall add rule name="Require Encryption for Inbound TCP/80" protocol=TCP dir=in localport=80 security=authdynenc action=allow

Q: win 7 samba not stable

A: tail /var/log/messages

check you bridge card ip exist conflicts, e.g. by unplug WLAN port of your hub.

systems can drop idle connections after a specified time-out period (by default, 15 minutes) to prevent wasting server resources on unused sessions.



HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

REG_DWORD autodisconnect = 0xffffffff

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service\lanmanworkstation\parameters

REG_DWORD KeepConn = 65535

default = 600 seconds.



optional:

forcing Windows client to use SMB1:

"HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 0

"HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: