To set static ip we can use yast command #yast From the table that appears select Network services > Network settings Go to address and set ip,netmask and hostname Then from Hostname/DNS give hostname and nameserver details Then from Routing give gateway Afterthat click ok and restart network service #service network restart (note:the configuration file is /etc/sysconfig/network/ifcfg- interfacename)