SUSE / openSUSE This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-14-2005, 01:49 PM
|
#1
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Rep:
|
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)
Last edited by abefroman; 05-14-2005 at 01:51 PM.
|
|
|
05-16-2005, 02:31 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
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.
|
|
|
05-17-2005, 06:05 AM
|
#3
|
Member
Registered: Jun 2003
Location: Germany
Distribution: OpenSuSE, SLES, Debian, Ubuntu, Eisfair
Posts: 79
Rep:
|
Hiho ...
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.
Greetz
Pete
|
|
|
05-18-2005, 07:20 PM
|
#4
|
LQ Newbie
Registered: May 2005
Posts: 3
Rep:
|
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
|
|
|
05-19-2005, 03:32 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
Configure gateway with YaST:
YaST -> Network Devices -> Network Card -> 'Change' -> 'Edit' -> 'Routing' -> enter gateway address
This is from the graphical YaST, but the menus should be named identical on command -line.
|
|
|
05-19-2005, 04:15 AM
|
#6
|
Member
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381
Rep:
|
In a terminal type
ifconfig eth0 192.168.1.5
where 192.168.1.5 is a sample of the address you want to attach to the chip associated with eth0
type ifconfig to ensure it has worked
type route to see if you have a gateway this should have an ip with the ug designation
|
|
|
All times are GMT -5. The time now is 09:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|