ubuntu+win7 网络问题汇总

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值