Forums

Resolved
0 votes
What i Do
/etc/sysconfig/network
NOZEROCONF="yes"
GATEWAYDEV="enp1s0"
NETWORKING_IPV6=no
IPV6_AUTOCONF=no

cat ifcfg-enp2s0
DEVICE=enp2s0
TYPE="Ethernet"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
IPADDR="192.168.0.1"
NETMASK="255.255.255.0"
IPV6INIT=no
IPV6_AUTOCONF=no

cat sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

but
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
ether d4:5d:64:1e:c5:df txqueuelen 1000 (Ethernet)
RX packets 734770 bytes 335633276 (320.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 612023 bytes 276918015 (264.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Thursday, October 28 2021, 07:15 AM
Share this post:
Responses (2)
  • Accepted Answer

    Thursday, October 28 2021, 07:56 AM - #Permalink
    Resolved
    0 votes
    thanks
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 28 2021, 07:28 AM - #Permalink
    Resolved
    0 votes
    What is the problem? Your output shows it is disabled. If it is enabled you see something like:
    enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
    inet 172.17.20.1 netmask 255.255.255.0 broadcast 172.17.20.255
    inet6 fe80::96de:80ff:feba:89ca prefixlen 64 scopeid 0x20<link>
    ether 94:de:80:ba:89:ca txqueuelen 1000 (Ethernet)
    RX packets 783 bytes 79119 (77.2 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 1604334 bytes 397775616 (379.3 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 26
    Note the inet6 line.

    All you should need are the sysctl.conf commands and they would probably be better in a file in /etc/sysctl.d/.

    The webconfig can and will (from time to time) overwrite your other changes
    The reply is currently minimized Show
Your Reply