Issues with Networking WHEN not using DHCP

I am getting a bug on

cat /etc/*release
NAME="openSUSE Leap"
VERSION_ID="15.3"
ID_LIKE="suse opensuse"
PRETTY_NAME="- ViciBox v.10.0.1 220503"
BUG_REPORT_URL="https://bugs.opensuse.org"

Everytime I set a STATIC IP to GLOBAL not getting a PING
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet [GLOBAL_STATIC_IP] netmask 255.255.255.128 broadcast [BROADCAST_IP]

NETWORK PING | DOES NOT WORK.

IF I set DHCP even though the SAME GLOBAL STATIC IP there is a ping
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet [SAME_GLOBAL_STATIC_IP_BUT_DHCP_OPTION_WICKED] netmask 255.255.255.128 broadcast [BROADCAST_IP]

NETWORK PING | WORK.

If I set local address (192.168.#.#) instead of global static it begins to work as it should and ping,

SETUP is a VPS on a FreeBSD GATEWAY box.

Any Debug Command let me know not to familiar with Suse only use this OS on Vici installs.

Thanks in advance
J

You explain that you are setting all sorts of configuration variable, but you fail to tell how you did that and what you are using to configure your network. Remark that there are (at least) three ways to configure the network on an openSUSE system and also take into account that we aren’t mind readers.:wink:

And it looks as if you show some output, but we do not know which commands are used to get that output. So please always copy/paste between the CODE tags complete: as first line the prompt and the command, then all output and as last line the new prompt. Only so can we see what you did and saw.

Where?

  • In the ‘/etc/sysconfig/network/’ the only “STATIC” variables are:

NETCONFIG_DNS_STATIC_SEARCHLIST
NETCONFIG_DNS_STATIC_SERVERS
NETCONFIG_NTP_STATIC_SERVERS
NETCONFIG_NIS_STATIC_DOMAIN
NETCONFIG_NIS_STATIC_SERVERS

  • Or, are you talking about the “ifcfg” scripts in ‘/etc/sysconfig/network/’ and the “SCOPE” parameter?

Ok sorry.

Thought it was implied…

I used yast/system/network_settings

I also tested DIRECTLY editing file:

/etc/sysconfig/network/ifcfg-eth0

ONBOOT='yes'
PREFIX='25'
GATEWAY='GLOBAL-IP'
BOOTPROTO='dhcp'
STARTMODE='auto'
DNS1='DNS_IP'
DNS2='DNS_IP'
DNS3='DNS_IP'
DNS4='DNS_IP'

It does not matter BOOTPROTO=STATIC + GLOBAL IP (given by my ISP) if I use yast or directly editing ifcfg it does not ping outside, if I edit DHCP in bootproto or edit in yast to DHCP ping works with GLOBAL.

NETCONFIG_DNS_STATIC_SEARCHLIST
NETCONFIG_DNS_STATIC_SERVERS
NETCONFIG_NTP_STATIC_SERVERS
NETCONFIG_NIS_STATIC_DOMAIN
NETCONFIG_NIS_STATIC_SERVERS

This means I have to use these fields in the ifcfg instead of the I used above ?

No.

  • As their names suggest, they’re for static DNS, static NTP and static NIS Search Lists, Servers and Domains …

The current ifcfg doesn’t have a parameter “GATEWAY” …

@G0n3-Th1s:

I’ve double checked through the man pages, the configuration files, the openSUSE documentation, the Network – and –

  • And, yes, there was a parameter “GATEWAY” in the past but, it ain’t there no more …

You are correct I copied it incorrectly from an open old VM I had with CentOS config, but to make it easier replace GATEWAY for IPDDR,

ONBOOT='yes'
PREFIX='25'
IPADDR='GLOBAL-IP'
BOOTPROTO='dhcp'
STARTMODE='auto'
DNS1='DNS_IP'
DNS2='DNS_IP'
DNS3='DNS_IP'
DNS4='DNS_IP'



The above statements regarding the parameter of GATEWAY still doesn’t explain WHY when I did it originally within Yast same issue with connection occurred if I assign a global static ip. The VM had originally IPADDR, but I began experimenting with OLD centos parameters (uses wicked at least my old version settings) since I thought maybe it was missing some GATEWAY settings.

Any suggestion what might be the culprit?

Sorry, but, neither –

  • ONBOOT

nor

  • PREFIX

are current valid ifcfg parameters.

And, if, you’re configuring static IP addresses, “ BOOTPROTO=‘dhcp’ ” also doesn’t make sense.

  • Take a look in the ‘/etc/sysconfig/network/ifcfg-lo’ provided by the “wicked-service” package for an example usage.