Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to make IP address permanent?

Reply
Thread Tools Display Modes

How to make IP address permanent?

 
 
Fred
Guest
Posts: n/a

 
      06-14-2008, 05:11 AM
I have Fedora 9 installed on a PC. X is not working, so I cannot use
/usr/bin/system-config-network to configure the network interface. So, I
used the "setup" command, which allows you to configure networking.
However, this does not save the changes to the /etc/sysconfig/network*
files. Neither does ifconfig. Is there a "non-gui" tool which will
allow me to permanently configure eth0's IP address?


-Thanks

 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a

 
      06-14-2008, 05:23 AM
On 2008-06-14, Fred <(E-Mail Removed)> wrote:
> I have Fedora 9 installed on a PC. X is not working, so I cannot use
> /usr/bin/system-config-network to configure the network interface. So, I
> used the "setup" command, which allows you to configure networking.
> However, this does not save the changes to the /etc/sysconfig/network*
> files. Neither does ifconfig. Is there a "non-gui" tool which will
> allow me to permanently configure eth0's IP address?


system-config-network should figure out that it doesn't have X and run
in an ncurses window. But, you can simply edit the
/etc/sysconfig/network-scripts/ifcfg-eth0 file directly if you don't
want to run it, or if it doesn't fall back to ncurses for some reason.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Fred
Guest
Posts: n/a

 
      06-14-2008, 02:05 PM
On Fri, 13 Jun 2008 22:23:58 -0700, Keith Keller wrote:

> On 2008-06-14, Fred <(E-Mail Removed)> wrote:
>> I have Fedora 9 installed on a PC. X is not working, so I cannot use
>> /usr/bin/system-config-network to configure the network interface. So, I
>> used the "setup" command, which allows you to configure networking.
>> However, this does not save the changes to the /etc/sysconfig/network*
>> files. Neither does ifconfig. Is there a "non-gui" tool which will
>> allow me to permanently configure eth0's IP address?

>
> system-config-network should figure out that it doesn't have X and run
> in an ncurses window. But, you can simply edit the
> /etc/sysconfig/network-scripts/ifcfg-eth0 file directly if you don't
> want to run it, or if it doesn't fall back to ncurses for some reason.
>
> --keith



Yes, the ncurses version does run, I enter the network parameters, but it
does not change or save them (as root). Great.

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      06-14-2008, 02:23 PM
Fred <(E-Mail Removed)> writes:

>I have Fedora 9 installed on a PC. X is not working, so I cannot use
>/usr/bin/system-config-network to configure the network interface. So, I
>used the "setup" command, which allows you to configure networking.
>However, this does not save the changes to the /etc/sysconfig/network*
>files. Neither does ifconfig. Is there a "non-gui" tool which will
>allow me to permanently configure eth0's IP address?


How about using an editor?



>-Thanks


 
Reply With Quote
 
Fred
Guest
Posts: n/a

 
      06-14-2008, 02:37 PM
On Sat, 14 Jun 2008 14:23:55 +0000, Unruh wrote:

> How about using an editor?
>
>>-Thanks



There are numerous settings besides the IP address in the
/etc/sysconfig/networking config files. I have edited these files in the
past, I'm just having difficulty believing that after all these years, I
still have a need to do so.
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      06-14-2008, 06:52 PM
On 2008-06-14, Fred <(E-Mail Removed)> wrote:
> On Fri, 13 Jun 2008 22:23:58 -0700, Keith Keller wrote:
>>
>> system-config-network should figure out that it doesn't have X and run
>> in an ncurses window. But, you can simply edit the
>> /etc/sysconfig/network-scripts/ifcfg-eth0 file directly if you don't
>> want to run it, or if it doesn't fall back to ncurses for some reason.

>
> Yes, the ncurses version does run, I enter the network parameters, but it
> does not change or save them (as root). Great.


No, it is not supposed to change them. After you run
system-config-network, it's your job to run /etc/init.d/network restart
to apply the changes. Depending on what else you have running this
might not be such a great idea, which is why it's left to you.

What is your evidence that it's not saving your changes? Did you look
in the file in /etc/sysconfig/ that I quoted above? If your changes are
in fact there, then just restart the network. If they're not there,
then you have some more research to do. What happens when you edit the
file by hand? Or if you move the file and have config-network recreate
it?

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make make a network boot floppy? Boe Windows Networking 3 05-23-2006 11:37 PM
How do I make network mappings (mounts?) permanent Bob Macpherson Linux Networking 1 06-22-2005 10:24 AM
How to make eth0 driver permanent? somebody Linux Networking 4 10-31-2004 03:51 PM
Configure a Permanent IP Address for Network Devices tg Windows Networking 0 02-24-2004 08:32 PM
Get the permanent mac address of a network card cris Linux Networking 5 09-03-2003 08:03 PM



1 2 3 4 5 6 7 8 9 10 11