Quote:
Originally posted by mmilano My DSL service went down this morning and my computer was working very slow. So I rebooted the box.
Now it seems like DHCP kicked in because it's using the lowest IP available on my system.. I had it set before to the highest IP.
What file do I edit to set the Static IP? |
Well, you can setup your IP addresses (under Debian, anyway) in /etc/network/interfaces, the syntax is something like this:
Code:
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.2.255
gateway 192.168.2.1 The question is, what's serving DHCP to your network? A DSL router? You'll want to configure that to stop DHCP leases and then configure all your internal network so they use static IPs (if you really own the IP, that is)

.
[edit]
Neglected to mention, once you use the file above to start your network interfaces, you can use the command 'ifup' and 'ifdown' to bring up the connection or close the connection, respectively. For example, if you edit the file to change your IP, you would issue an '
ifdown eth0', edit the file, and reissue an '
ifup eth0'
[/edit]