How do I set the ip address for eth0, eth1 and the default gateway?
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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 set the ip address for eth0, eth1 and the default gateway?
How do I set the ip address for eth0, eth1 and the default gateway?
In RedHat its
/etc/sysconfig/network-scripts/ifcfg-eth0
and
/etc/sysconfig/network-scripts/ifcfg-eth1
What is the equivelent of those files in SuSE?
What is the equivlent of the file the default gateway is stored in?
In redhat its /etc/sysconfig/network, what would it be in SuSE?
This is what my /etc/sysconfig/network directory has:
linux:/etc/sysconfig/network # ls
. config if-down.d ifcfg-eth-id-00:0f:ea:e0:86:84 ifcfg.template providers scripts update-log.debug
.. dhcp if-up.d ifcfg-lo ifroute-lo routes update-log wireless
This is what /etc/sysconfig has:
linux:/etc/sysconfig # ls
. autofs clock dhcrelay hotplug joystick lirc network postfix scripts suseconfig xntp
.. backup console displaymanager ide kernel locate news powersave scsidev susehelp ypbind
SuSEfirewall2 boot cron esound isdn keyboard mail nfs proxy security sysctl
apache bootloader cups fonts-config ispell language mdadm onlineupdate saslauthd sound syslog
apache2 bootsplash dhcpd hardware java ldap mouse personal-firewall sax ssh windowmanager
Thanks in advance!
(Note, im working remotely through the command line)
The naming of the network devices has changed. ifcfg-eth-id-00:0f:ea:e0:86:84 is the configuration of the detected device. The gateway is set in routes.
The easiest way of configuration is with YaST, which also runs from command-line.
If you wanna stay on the command-line, type "yast network" to go directly to the network-section of yast. Or just type in yast to have access to all settings.
i am also trying to figure out how to configure the default gateway. mind to tell me a bit in detail how to configure in yast. i tried it before but cant. thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.