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. |
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 :D |
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
|
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. |
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 11:18 AM. |