Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 06-03-2002, 09:52 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
IP Configuration for Static IP

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?
sde is offline   Reply With Quote
Old 06-03-2002, 03:47 PM   #2 (permalink)
revolution
Legend in my own mind
 
revolution's Avatar
 
Join Date: May 2002
Location: florida
Posts: 618
revolution is on a distinguished road
Send a message via AIM to revolution
ive looked, but im not sure...i usually use some sort of wizzard for it or ifconfig at the prompt
__________________
Is it me or does the word abbreviation seem a little long?


registered user #193524 with the Linux Counter,
http://counter.li.org
revolution is offline   Reply With Quote
Old 06-03-2002, 04:12 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
aah ! my sites and game servers have been down all day long

i'm ready for a nice little computer session tonight... i'll be in irc at 6 my time. .. make sure you are no where around if ya don't want me asking 2 many questions
sde is offline   Reply With Quote
Old 06-03-2002, 05:58 PM   #4 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Re: IP Configuration for Static IP

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]
bdl is offline   Reply With Quote
Old 06-03-2002, 06:12 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
thank you sir .. that works perfectly =)
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what's your Dream PC Configuration?? ashish Lounge 10 09-03-2004 10:48 AM
checking system configuration with JAVA callmefiero Java 3 08-26-2004 03:38 AM
vc++.net Platform Configuration out of Date sde Standard C, C++ 0 05-18-2004 10:42 AM


All times are GMT -8. The time now is 01:19 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting