LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-19-2015, 02:59 AM   #1
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Rep: Reputation: 15
Cannot found ifcfg scripts despite ifconfig other something else


Dear all,


I'm installing oracle linux 7.1, but have problems with network issues.

I've installed this Oracle Linux 7.1 64 bit under vmware player 7.0

Code:
root@localhost ~]# cat /etc/issue
\S
Kernel \r on an \m

[root@localhost ~]# cat /etc/oracle-release
Oracle Linux Server release 7.1
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
ifconfig show 4 interfaces

Code:
[root@localhost ~]# ifconfig
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.221.129  netmask 255.255.255.0  broadcast 192.168.221.255
        inet6 fe80::20c:29ff:fe27:288f  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:27:28:8f  txqueuelen 1000  (Ethernet)
        RX packets 5219  bytes 597412 (583.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5487  bytes 482909 (471.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno33554984: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:0c:29:27:28:99  txqueuelen 1000  (Ethernet)
        RX packets 10801  bytes 1800453 (1.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno50332208: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:0c:29:27:28:a3  txqueuelen 1000  (Ethernet)
        RX packets 69  bytes 6810 (6.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 38  bytes 3910 (3.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38  bytes 3910 (3.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

but ifcfg-* only only show one excluding local loopback and profile_1

Code:
[root@localhost ~]# ls -l /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 326 Dec 14 23:55 /etc/sysconfig/network-scripts/ifcfg-eno16777736
-rw-r--r--. 1 root root 325 Dec 14 01:28 /etc/sysconfig/network-scripts/ifcfg-eno16777736.bak
-rw-r--r--. 1 root root 254 Jan 15  2015 /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 173 Dec 14 01:27 /etc/sysconfig/network-scripts/ifcfg-Profile_1
why is this so? how to make rest of the ifcfg scripts appear?

thanks and many thanks in advance
 
Old 12-19-2015, 08:24 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Don't use ifconfig anymore. It's an old tool that works in many situations but is unable to cope with many networking concepts that have been added in the last 30 years or so - VLANs, bonds, multiple IP addresses on the same interface, tunnels and so on. Instead, use the ip tool. The rough equivalent of ifconfig is ip address (it doesn't show statistics, but adds link-level information).

With that out of the way: Interfaces can be created manually without ifcfg-* files. If you are adventurous, experiment with
Code:
# ip link add     # requires a few more parameters
# brctl addbr mybridge
# modprobe bonding && echo +blabla > /sys/class/net/bonding_masters 
# ip address
(they are all harmless and will disappear after a reboot)

I also think that network manager creates interfaces for all physical interfaces it encounters. If there is no ifcfg file, it will just apply default settings.
Do eno33554984 and eno50332208 correspond to real interfaces? Check for them in /var/log/messages, or run ip address to get more information about them.
 
Old 12-20-2015, 02:45 AM   #3
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Original Poster
Rep: Reputation: 15
here's the output that I've executed

Code:
[root@localhost ~]# service --status-all
netconsole module not loaded
Configured devices:
lo Profile_1 eno16777736
Currently active devices:
lo eno16777736 eno33554984 eno50332208
Usage: /etc/init.d/oracle-rdbms-server-11gR2-preinstall-firstboot {start|stop}
I also found that netconsole is not loaded

Code:
[root@localhost ~]# service netconsole status
netconsole module not loaded

here's ip show addr

Code:
[root@localhost ~]# ip addr show
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
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:27:28:8f brd ff:ff:ff:ff:ff:ff
    inet 192.168.221.129/24 brd 192.168.221.255 scope global eno16777736
    inet6 fe80::20c:29ff:fe27:288f/64 scope link
       valid_lft forever preferred_lft forever
3: eno33554984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:27:28:99 brd ff:ff:ff:ff:ff:ff
4: eno50332208: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:27:28:a3 brd ff:ff:ff:ff:ff:ff
so why is my netconsole not loaded


Code:
[root@localhost ~]# chkconfig "netconsole" --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
 
Old 12-20-2015, 04:39 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
netconsole is not started because it is not configured to start. You can see that it's off for all run levels.

By the way, better use systemctl instead of service when dealing with Oracle Linux 7 - as the output above recommends you to do. Instead of service --status-all, just run systemctl without parameters. To enable netconsole, systemcontrol enable netconsole - it will be started at reboot. To start it now, systemctl start netconsole.
 
Old 12-20-2015, 04:44 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The output of ip addr, by the way, shows that you have three interfaces, two of them without IP address. Their hardware addresses indicate that this is in fact a virtual machine running on VMware.

So, this VM has three network interfaces; one is configured via ifcfg, whereas the two others probably have a default config (they are up but have no IP address), since they don't have ifcfg files.
If you want them to go away, I guess you have to remove them from the virtual machine.
 
Old 01-07-2016, 01:15 AM   #6
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Original Poster
Rep: Reputation: 15
here's the output for /var/log/messages

Code:
tail -f /var/log/messages 
Jan  7 02:07:00 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:00 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:00 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:00 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmall in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:00 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmmax in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:00 localhost systemd-sysctl: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:00 localhost systemd: network.service: control process exited, code=exited status=1
Jan  7 02:07:00 localhost systemd: Failed to start LSB: Bring up/down networking.
Jan  7 02:07:00 localhost systemd: Unit network.service entered failed state.
Jan  7 02:07:23 localhost systemd: Stopped LSB: Bring up/down networking.
Jan  7 02:07:49 localhost systemd: Starting LSB: Bring up/down networking...
Jan  7 02:07:49 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmall in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:49 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmmax in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:49 localhost systemd-sysctl: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Jan  7 02:07:49 localhost network: Bringing up loopback interface:  Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Jan  7 02:07:49 localhost network: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Jan  7 02:07:49 localhost network: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Jan  7 02:07:49 localhost network: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jan  7 02:07:49 localhost network: [  OK  ]
Jan  7 02:07:49 localhost network: Bringing up interface Profile_1:  Error: Connection activation failed: Connection 'Profile 1' is already active on eno16777736
Jan  7 02:07:49 localhost network: [FAILED]
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  renaming /etc/sysconfig/network-scripts/ifcfg-eno33554984 -> /etc/sysconfig/network-scripts/ifcfg-eno16777736
Jan  7 02:07:49 localhost NetworkManager[624]: <info>  updating /etc/sysconfig/network-scripts/ifcfg-eno16777736
Jan  7 02:07:50 localhost network: Bringing up interface eno16777736:  [  OK  ]
Jan  7 02:07:50 localhost NetworkManager[624]: <info>  renaming /etc/sysconfig/network-scripts/ifcfg-eno16777736 -> /etc/sysconfig/network-scripts/ifcfg-eno33554984
Jan  7 02:07:50 localhost NetworkManager[624]: <info>  updating /etc/sysconfig/network-scripts/ifcfg-eno33554984
Jan  7 02:07:50 localhost network: Bringing up interface eno33554984:  [  OK  ]
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost network: RTNETLINK answers: File exists
Jan  7 02:07:50 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmall in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:50 localhost systemd-sysctl: Overwriting earlier assignment of kernel/shmmax in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:50 localhost systemd-sysctl: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
Jan  7 02:07:50 localhost systemd: network.service: control process exited, code=exited status=1
Jan  7 02:07:50 localhost systemd: Failed to start LSB: Bring up/down networking.
Jan  7 02:07:50 localhost systemd: Unit network.service entered failed state.
eno50332208 is not a real interface since it does not appear in /var/log/messages
Code:
[root@localhost network-scripts]# systemctl status network.service
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Thu 2016-01-07 15:07:50 SGT; 4min 44s ago
  Process: 12829 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
Jan 07 15:07:50 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
Jan 07 15:07:50 localhost.localdomain systemd[1]: Unit network.service entered failed state.
Code:
[root@localhost network-scripts]# systemctl status network.service
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Thu 2016-01-07 15:07:50 SGT; 4min 44s ago
  Process: 12829 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain network[12829]: RTNETLINK answers: File exists
Jan 07 15:07:50 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
Jan 07 15:07:50 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
Jan 07 15:07:50 localhost.localdomain systemd[1]: Unit network.service entered failed state.
do how to I ensure that systemctl start network works?

many thanks in advance!
 
  


Reply

Tags
network interface, oracle linux, rhel7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ifcfg eth0 missing in network-scripts cnidup Linux - Newbie 8 02-03-2013 11:55 PM
I screwed up the network config so i erased the ifcfg-eth* scripts and now i need to themrrobert Linux - Networking 1 01-03-2013 05:09 PM
How to change /etc/sysconfig/network-scripts/ifcfg-eth0 ariana Linux - Networking 1 05-01-2005 01:37 PM
can anyone post their /etc/sysconfig/network-scripts/ifcfg-wlan0? Dooberdoink Linux - Wireless Networking 1 03-27-2005 09:49 AM
Turning off ARP in ifcfg scripts? willm Linux - Networking 0 06-26-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration