s******s 发帖数: 13035 | 1 因为想对特定的机器打开防火墙, 但是机器的ip 192.168.0.x总是变动
有什么办法吗? |
t******g 发帖数: 10390 | 2 难道不能机器那边强制设置IP吗?
另外我记得dhcp的话,如果lease forever的话,ip应该和mac绑定的吧.
只要机器用同样的网卡介入,ip应该一样的吧.
【在 s******s 的大作中提到】 : 因为想对特定的机器打开防火墙, 但是机器的ip 192.168.0.x总是变动 : 有什么办法吗?
|
q**u 发帖数: 12289 | 3 No. DHCP works on a "first come, first serve" basis. "Lease forever" only
ensures that as long as the computer is up, its IP won't change. But if you
shut the computer down, there is no guarantee it will get the same IP the next
time.
【在 t******g 的大作中提到】 : 难道不能机器那边强制设置IP吗? : 另外我记得dhcp的话,如果lease forever的话,ip应该和mac绑定的吧. : 只要机器用同样的网卡介入,ip应该一样的吧.
|
z*****a 发帖数: 9790 | 4 who said this? Of course you can boundle one specific IP address to one MAC
address in DHCP, which means a guarantee for a computer to get the same IP
address everytime.
next
【在 q**u 的大作中提到】 : No. DHCP works on a "first come, first serve" basis. "Lease forever" only : ensures that as long as the computer is up, its IP won't change. But if you : shut the computer down, there is no guarantee it will get the same IP the next : time.
|
n****i 发帖数: 547 | 5 depends on router, some has this function,some not.
【在 s******s 的大作中提到】 : 因为想对特定的机器打开防火墙, 但是机器的ip 192.168.0.x总是变动 : 有什么办法吗?
|
q**u 发帖数: 12289 | 6 I did. What I forgot to clarify is that I meant the DHCP server included in
the majority of broadband routers. Sorry for the confusion, but I assumed
that was the pre-condition of the discussion.
you
【在 z*****a 的大作中提到】 : who said this? Of course you can boundle one specific IP address to one MAC : address in DHCP, which means a guarantee for a computer to get the same IP : address everytime. : : next
|
C*S 发帖数: 135 | 7 If your broadband router has an IP space larger than the computers
connected to it (this is the case for almost all home use), AND if
you do not turn off your router, then your computers should have the
same IP every time they power on. This is part of the DHCP protocol.
If your router was power down or rebooted for some reason, then the
DHCP server of it will assign IPs from the starting IP consecutively
according to the "power on sequence" of your computers.
Some routers allow its DHCP to assi
【在 q**u 的大作中提到】 : I did. What I forgot to clarify is that I meant the DHCP server included in : the majority of broadband routers. Sorry for the confusion, but I assumed : that was the pre-condition of the discussion. : : you
|
C*S 发帖数: 135 | 8 Wrong! If the dhcpd has more IPs than computers, and you do not restart it,
the IP assignment is always the same. This is specified by the DHCP protocol.
next
【在 q**u 的大作中提到】 : No. DHCP works on a "first come, first serve" basis. "Lease forever" only : ensures that as long as the computer is up, its IP won't change. But if you : shut the computer down, there is no guarantee it will get the same IP the next : time.
|
q**u 发帖数: 12289 | 9 I know what you're saying, which is why I used the term "no guarantee".
Please explain to the original poster why his computer's IP "always changes".
protocol.
you
【在 C*S 的大作中提到】 : Wrong! If the dhcpd has more IPs than computers, and you do not restart it, : the IP assignment is always the same. This is specified by the DHCP protocol. : : next
|
C*S 发帖数: 135 | 10 The DHCPd in the router might not 100% follow the protocol. Or maybe
the network card has some problem.
changes".
it,
only
the
【在 q**u 的大作中提到】 : I know what you're saying, which is why I used the term "no guarantee". : Please explain to the original poster why his computer's IP "always changes". : : protocol. : you
|