大多数路由器都可以选择将静态 IP 分配给 MAC 地址。让你的Linux机器使用dhcp。登录路由器设置页面。应该有一个设置页面来将静态 IP 分配给给定的 MAC 地址。这在 Linksys 路由器上可用。如果您不支持,请查看是否可以使用 dd-wrt/open-wrt/tomato 刷新您的路由器。这些固件肯定支持此功能。
如果您仍然想配置 Linux 客户端而不是路由器,我建议您选择最高的第四个四元数。除非网络上有这么多盒子,否则路由器不会使用该 IP。
Most of the routers have option to assign static ip to a mac addres. Let you Linux box on dhcp. Log on to router setting page. There should be a setting page to assign static ip to a given MAC address. This is available on Linksys router. If your doesn't support than see if you can flash your router with dd-wrt/open-wrt/tomato. these firmware definatly support this feature.
If you still want to configure you Linux client and not the router than i suggest you pick the highest fourth quad number. Router will not use that ip unless you have so many box on the network.
发布评论
评论(3)
你的路由器可能正在运行 dhcp 服务器,所以你应该将你的 linux 盒子设置为一个不在你的路由器 dhcp 范围内的 IP。
有关如何为 debian 设置静态 IP 的信息,请参阅
man Interfaces
。问候
your router is probably running a dhcp server, so you should set your linux box to an ip which is not covered by the dhcp range of your router.
See
man interfaces
for information about how to set the static ip for your debian.Regards
是的,您可以让您的 PC 使用静态 IP,而网络的其余部分保留在 DHCP 上
我正在运行 Ubuntu Lucid (10.04)
2 个选项
auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
network 192.168.0.0
Broadcast 192.168.0.255
gateway 192.168.0.1
Yes you can make your PC use a static ip while the rest of the network remains on DHCP
I'm Running Ubuntu Lucid (10.04)
2 options
auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
大多数路由器都可以选择将静态 IP 分配给 MAC 地址。让你的Linux机器使用dhcp。登录路由器设置页面。应该有一个设置页面来将静态 IP 分配给给定的 MAC 地址。这在 Linksys 路由器上可用。如果您不支持,请查看是否可以使用 dd-wrt/open-wrt/tomato 刷新您的路由器。这些固件肯定支持此功能。
如果您仍然想配置 Linux 客户端而不是路由器,我建议您选择最高的第四个四元数。除非网络上有这么多盒子,否则路由器不会使用该 IP。
Most of the routers have option to assign static ip to a mac addres. Let you Linux box on dhcp. Log on to router setting page. There should be a setting page to assign static ip to a given MAC address. This is available on Linksys router. If your doesn't support than see if you can flash your router with dd-wrt/open-wrt/tomato. these firmware definatly support this feature.
If you still want to configure you Linux client and not the router than i suggest you pick the highest fourth quad number. Router will not use that ip unless you have so many box on the network.