[root@centos-7 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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@if4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 42:0d:bc:49:14:82 brd ff:ff:ff:ff:ff:ff link-netnsid 0
[root@centos-7 ~]# ifup eth0
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
./network-functions: line 286: cd: /var/run/netreport: No such file or directory
[root@centos-7 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 42:0d:bc:49:14:82 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.22.212/24 brd 192.168.22.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::400d:bcff:fe49:1482/64 scope link
valid_lft forever preferred_lft forever