After fresh Linux installation, specially on virtual environment such as VM Ware, VirtualBox etc , interface configuration file may be missing on the system. Here I’m going to guide how to fix missing ifcfg-eth0 or network interface configuration file in Linux. 1) Find available physical interfaces Following command will output all connected physical interfaces.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@localhost]# ip addr 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 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 qlen 1000 link/ether 00:0c:29:a6:80:73 brd ff:ff:ff:ff:ff:ff inet 192.168.2.25/24 brd 192.168.2.255 scope global ens160 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fea6:8073/64 scope link valid_lft forever preferred_lft forever |
…