How do I change my network config files in SuSe to make my IP permanent
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 ...
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.