SLES 15
Sponsored Link

Initial Settings : Networking2019/01/14

[1] Set static IP address to the server.
# set hostname

localhost:~ #
hostnamectl set-hostname dlp.srv.world
localhost:~ #
vi /etc/sysconfig/network/ifcfg-eth0
# change like follows (replace IP and other values for your own environment)

BOOTPROTO='
static
'
# broadcast address

BROADCAST='
10.0.0.255
'
ETHTOOL_OPTIONS=''
# server's static IP address

IPADDR='
10.0.0.30
'
MTU=''
NAME=''
# subnet mask

NETMASK='
255.255.255.0
'
# network address

NETWORK='
10.0.0.0
'
REMOTE_IPADDR=''
STARTMODE='auto'
DHCLIENT_SET_DEFAULT_ROUTE='yes'
localhost:~ #
vi /etc/sysconfig/network/config
# line 182: add your domain-name (it's added to "search" line in resolv.conf)

NETCONFIG_DNS_STATIC_SEARCHLIST="
srv.world
"
# line 195: set DNS server

NETCONFIG_DNS_STATIC_SERVERS="
10.0.0.10
"
localhost:~ #
vi /etc/sysconfig/network/routes
# create new: set default gatewway

default 10.0.0.1 - eth0
localhost:~ #
localhost:~ #
ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:f7:86:96 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.30/24 brd 10.0.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fef7:8696/64 scope link
       valid_lft forever preferred_lft forever
[2] Disable IPv6 like follows if you do not need it.
localhost:~ #
vi /etc/default/grub
# line 12: add

GRUB_CMDLINE_LINUX="
ipv6.disable=1
"
# apply changes

localhost:~ #
grub2-mkconfig -o /boot/grub2/grub.cfg

localhost:~ #
Matched Content