LinuxQuestions.org
Visit Jeremy's Blog.
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 11-04-2009, 07:23 AM   #1
Pooh
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Rep: Reputation: 15
How do I change my network config files in SuSe to make my IP permanent


Hi,

I am running Suse Linux. Last night we had a thunderstorm and my network card went. So i installed a new card, and managed to change the IP address correctly by using the command:

ifconfig eth1 x.x.x.x netmask x.x.x.x up

I then changed my gateway with the following command:

route add –net x.x.x.x netmask x.x.x.x eth1

Everything works 100%. But where are the network config files in Suse to set it permanently, and how do i do this? I tried navigating but can't find it.

Everytime the machine reboots it needs to be reset.

Thanks,
 
Old 11-04-2009, 07:44 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The most foolproof way would be to use yast, chances are that your network config file is named after the mac address of your old card and therefore is not working. If you run 'ifconfig -a' as root you will see the mac address of the new card, you should be able to rename the file /etc/sysconfig/network/ifcfg-eth... accordingly. Try yast first ...

cheers
 
Old 11-04-2009, 07:46 AM   #3
Pooh
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Original Poster
Rep: Reputation: 15
there is no GUI installed on this system, and I don't know how to install Yast using the command line. I have typed yast, but it just skips to the next line. So i don't think it is installed.
 
Old 11-04-2009, 07:50 AM   #4
Pooh
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Original Poster
Rep: Reputation: 15
under /etc/sysconfig/network/ i have a file named ifcfg-eth-id-00:19:d1:23:46:46

if i go vi ifcfg-eth-id-00:19:d1:23:46:46, it gives me a blank file.
 
Old 11-04-2009, 08:56 AM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
If you use tab completion it should escape the ':'s, you're actually editing a new file

You only need to rename it in any case... unless you want to change the ip address ?

Last edited by kbp; 11-04-2009 at 08:57 AM.
 
Old 11-04-2009, 09:16 AM   #6
Jim Bengtson
Member
 
Registered: Feb 2009
Location: Iowa
Distribution: Ubuntu 9.10
Posts: 164

Rep: Reputation: 38
If you just want to set a static IP address, read this:

http://www.thewebmasterscafe.net/web...tos-linux.html
 
Old 11-04-2009, 02:53 PM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by Pooh View Post
there is no GUI installed on this system, and I don't know how to install Yast using the command line. I have typed yast, but it just skips to the next line. So i don't think it is installed.
The correct name is yast2, so you probably won't get anything if you type yast as a user (actually you might; you might get an error message telling you that it is /sbin/yast, but is root only, depending on SuSE version).

If you don't have yast installed at all, you'll find it a bit difficult to manage the system in the long term; I guess you can use zypper to install and remove packages, if you need to, but I haven't tried that method.
 
Old 11-06-2009, 02:12 AM   #8
Pooh
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the responses. I managed to get Yast started by typing startx. And then i can go into Yast from the GUI, however i am unable to open anything in yast. it thinks a bit then does nothing.

I am currently running opesuse 10.2, Would upgrading to 11.1 solve my issues?
 
  


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
xm create with xmdefconfig - No permanent config files created? acid_kewpie Linux - Server 0 04-21-2009 12:48 PM
make a change permanent ubuntu sunnior Linux - Newbie 6 07-20-2008 10:41 PM
net.ipv4.tcp_syn_retries - how to make change permanent syx Linux - Networking 1 01-05-2005 10:54 AM
how do i make network setting permanent? taoweijia Linux - Newbie 3 02-22-2004 11:02 PM
make the permanent change to /etc/sysctl.conf ashley75 Linux - General 1 09-15-2003 12:24 PM

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

All times are GMT -5. The time now is 03:53 PM.

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