SLES 12
Sponsored Link

Networking2015/11/21

[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)

# change

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 146: set DNS server

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

default 10.0.0.1 - eth0
localhost:~ #
systemctl restart wickedd wicked

localhost:~ #
ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    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:06:28:5d 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:fe06:285d/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 15: add

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

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

localhost:~ #
Matched Content