CentOS 7.2

$ uname -a Linux host.network 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 x86_64 x86_64 GNU/Linux 

Network interfaces:

 [root@host ~]# ip as 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 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 2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN link/ether 8a:51:05:fb:9e:35 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN link/ether 3e:4a:a2:c1:3c:27 brd ff:ff:ff:ff:ff:ff 4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32 link/ether 6e:2c:19:2a:64:12 brd ff:ff:ff:ff:ff:ff 5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32 link/ether 12:a9:fd:3e:82:77 brd ff:ff:ff:ff:ff:ff 6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether 2c:c4:7a:0c:94:81 brd ff:ff:ff:ff:ff:ff inet 123.123.123.101/24 brd 123.123.123.255 scope global eth0 valid_lft forever preferred_lft forever inet 123.123.123.102/32 brd 123.123.123.102 scope global eth0:0 valid_lft forever preferred_lft forever inet 123.123.123.103/32 brd 123.123.123.103 scope global eth0:1 valid_lft forever preferred_lft forever 7: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 2c:c6:7a:2c:94:23 brd ff:ff:ff:ff:ff:ff 8: teql0: <NOARP> mtu 1500 qdisc noop state DOWN qlen 100 link/void 9: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN link/ipip 0.0.0.0 brd 0.0.0.0 10: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN link/sit 0.0.0.0 brd 0.0.0.0 11: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN link/tunnel6 :: brd :: 

How to remove these extra interfaces? I only need eth0 and lo.

I suspected ipv6, but I have:

  • /etc/sysctl.conf :

     net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 
  • /etc/sysconfig/network :

     NETWORKING_IPV6=no 
  • /etc/sysconfig/network-scripts/ifcfg-eth0 :

     DEVICE=eth0 BOOTPROTO=static IPADDR=123.123.123.101 NETMASK=255.255.255.0 ONBOOT=yes GATEWAY=123.123.123.1 IPV6INIT=no IPV6_AUTOCONF=no 

there is something incomprehensible

 $ lsmod libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: could not get list of modules: No such file or directory 

I feel. that I collected a kernel with some kind of tunnels for ipv6 ... but I don’t need them, and these interfaces got out in one server statistics and loom there, I want to beat them.

  • one
    Please provide the list of loaded modules ( $ lsmod ) and the contents of all /etc/sysconfig/network-scripts/ifcfg* files directly in the text of the question. You can make changes by clicking edit below question text. - aleksandr barakin
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky ♦

1 answer 1

could not open / proc / modules

this is the root of the “problem”: the linux program is assembled “entirely”, without the removal of rarely used code into modules that are loaded on demand.

therefore, immediately upon initialization of the program, all these “extra” interfaces are created.

I see at least two exit options:

  1. rebuild the linux program, including “back” support for dynamically loadable modules (now this is the de facto standard in general purpose distributions, which include centos ).
  2. rebuild the linux program, generally removing the functionality that “knows” these “extra” network interfaces (such “cleaning” is a rather dreary and painstaking exercise).