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
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
相关文章推荐
- http 基本知识
- 第一章 概述 1.3TCP/IP的分层
- 新的 Windows Azure 网络安全性白皮书
- 新的 Windows Azure 网络安全性白皮书
- 新的 Windows Azure 网络安全性白皮书
- 新的 Windows Azure 网络安全性白皮书
- 第一章 概述 1.2分层
- 自己写个网络爬虫玩玩
- H3CSE-H3C(华3)认证路由交换网络高级工程师培训
- java超简单的tcp用法
- linux网络协议栈(六)传输层 (2)UDP协议 2)connect
- linux网络协议栈(六)传输层 (2)UDP协议 1)创建和bind
- Ubuntu10.10的网络配置
- ASIHttpRequest简单用法
- HTTPS简介(图解)
- nfs网络文件系统
- 浏览器的工作原理:新式网络浏览器幕后揭秘
- linux网络协议栈(六)传输层 (1)传输层基本框架
- linux网络协议栈(五)网络层 (11)NAT穿越
- linux网络协议栈(五)网络层 (9)IPV6