Static IP setup in openSUSE 12.1

Hi,
I am trying set a static IP for our machine using YaST in intranet.
We have setup below details for eth0:
Static IP,
Netmask,
Domain Name,
3 DNS IPs,
Gateway IP
But when we restart the network only loopback IP is active.
Am i missing any setting here?
Please help me here. Help is greatly appreciated.

Thanks in Advance,
Saravanan

On 07/11/2012 08:26 PM, saravanan666 wrote:
>
> Hi,
> I am trying set a static IP for our machine using YaST in intranet.
> We have setup below details for eth0:
> Static IP,
> Netmask,
> Domain Name,
> 3 DNS IPs,
> Gateway IP
> But when we restart the network only loopback IP is active.
> Am i missing any setting here?
> Please help me here. Help is greatly appreciated.
>
> Thanks in Advance,
> Saravanan
>
>

Presumably you’ve seen it as an active device in Yast. Have you set
(under “activate device”) to activate at boot time?

What do you get from these commands:

  • /usr/sbin/hwinfo --netcard
  • /sbin/ifconfig


Regards
swerdna

Did you use YaST > Network devices > Network settings?
And then set in the Global options tab to Traditional with ifup?
And then in the next tab choose the device, edit it ad chose static IP and filled in there.
And in the third and fourth tabs for DNS/hostname and Routing?

Ok then, check what was created with

su -c 'cat /etc/sysconfig/network/ifcfg-eth0'

And you say “But when we restart the network only loopback IP is active.” you should show that (we are non-believers :wink: ):

/sbin/ifconfig -a

Thanks Swedna and Henk.
Got the issue fixed, issue was IP was not properly registerd in DHCP server.
Though when we tried to start network with static mode, had to use the service start command with device name
“service network start eth0”, if not network was not up. Strange that we had to use device name every time in static mode

You are welcome.

I understand that you had not reserved your IP address in the DHCP server as not under commande of the DHCP server. That can indeed create trouble, the more as the DHCP server is also your default router.

Try rebooting.

please let me know the command for “service network start etho”

On 2013-12-26 18:36, kajjapu wrote:
>
> saravanan666;2473935 Wrote:
>> Thanks Swedna and Henk.
>> Got the issue fixed, issue was IP was not properly registerd in DHCP
>> server.
>> Though when we tried to start network with static mode, had to use the
>> service start command with device name
>> “service network start eth0”, if not network was not up. Strange that we
>> had to use device name every time in static mode
>
> please let me know the command for “service network start etho”

Are you really using 12.1? Because it is obsolete and not maintained anymore.

Anyway, the command for “service network start etho” is “service network start etho”.

If you are using something different than openSUSE 12.1, please start a new thread and state your
problem clearly.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Im facing interface eth0 is not available. Please advise to fix this issue

On 2013-12-26 19:16, kajjapu wrote:
>
> Im facing interface eth0 is not available. Please advise to fix this
> issue

In 12.1?

You are not explaining much…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Am 26.12.2013 22:52, schrieb Carlos E. R.:
> On 2013-12-26 19:16, kajjapu wrote:
>>
>> Im facing interface eth0 is not available. Please advise to fix this
>> issue
>
> In 12.1?
>
> You are not explaining much…
>
>
The output from


/sbin/ifconfig

would help here to see the interface names and also the openSUSE version
as Carlos already asked, in 13.1 the naming scheme changed.


PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

On 2013-12-26 23:02, Martin Helm wrote:
> Am 26.12.2013 22:52, schrieb Carlos E. R.:

> would help here to see the interface names and also the openSUSE version
> as Carlos already asked, in 13.1 the naming scheme changed.

If it is 13.1, as I suspect, writing in this thread should be stopped and a new one started.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))