LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2008, 08:16 PM   #1
XtremeGamer99
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
Network config not saving...


Hello,

I'm setting up a small file server. The NIC is not built into the mother board, but added on as a PCI card. I'm running Debian Lenny.

Anyway, I'm trying to set a static IP to this computer. I do this by typing ifconfig eth0 192.168.1.1. It configures it and I have to wait a few moments for it to actually work, but it gets there.

Until reboot. Upon reboot, it keeps looking for a DHCP response or something to that affect. This computer isn't hooked up to any sort of network; instead, it's hooked up to another computer via a cross-over cable. Anyway, it doesn't load the static IP configuration like I need it to.

So, what do I do to keep the IP permanent? I can provide more details if needed. =)
 
Old 06-13-2008, 10:03 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
You need to edit /etc/network/interfaces eg:
Code:
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway (put your gateway here)
 
Old 06-16-2008, 01:23 PM   #3
kyawlinnyein
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by XtremeGamer99 View Post
Hello,

I'm setting up a small file server. The NIC is not built into the mother board, but added on as a PCI card. I'm running Debian Lenny.

Anyway, I'm trying to set a static IP to this computer. I do this by typing ifconfig eth0 192.168.1.1. It configures it and I have to wait a few moments for it to actually work, but it gets there.

Until reboot. Upon reboot, it keeps looking for a DHCP response or something to that affect. This computer isn't hooked up to any sort of network; instead, it's hooked up to another computer via a cross-over cable. Anyway, it doesn't load the static IP configuration like I need it to.

So, what do I do to keep the IP permanent? I can provide more details if needed. =)
See and edit at there
vi /etc/sysconfig/network
at there add ur setting and write then quit by using wq
 
Old 06-16-2008, 05:38 PM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
Originally Posted by kyawlinnyein View Post
See and edit at there
vi /etc/sysconfig/network
at there add ur setting and write then quit by using wq
Are you sure this is the proper place in debian? I have no /etc/sysconfig folder on sid.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving install config JAKK Slackware 3 01-24-2007 04:46 AM
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM
saving network config in 9.2 petkov Mandriva 1 03-22-2004 02:17 PM
Saving the config in KNOPPIX? Konig Debian 1 01-09-2004 09:15 AM
Saving eth0 config davee Linux - Networking 3 01-21-2003 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration