I was given a rhel7 vmware template to use for provisioning rhel 7 test environments. When I created my vm, it booted up fine except that my network interface doesn't seem to come up. If I type ifconfig -a I get the following:
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:50:56:XX:XX:XX txqueuelen 1000 (Ethernet)
RX packets 55 bytes 3300 (3.2 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 792 bytes 62296 (60.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 792 bytes 62296 (60.8 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
As you can see, I don't have an ip address for ens192. Being a programmer and not a sysadmin, I did some flailing around on Google and was told that I should edit a 70-persistent-net.rules file. I don't have this file. So I flailed around some more and learned that I should run the command /lib/udev/write_net_rules. I don't seem to have this either. I then read about a couple of udevadmn commands I can run. They don't seem to do anything. I tried activating the connection using nmtui, it crashes when I do.
I've also tried the "/etc/init.d/network restart" command. It fails and suggests that I try a couple of commands to see why. So when I typed in the suggested command "systemctl status network.service", I get the following output:
Jan 23 08:30:39 myhostname network[10858]: RTNETLINK answers: File exists
Jan 23 08:30:39 myhostname network[10858]: RTNETLINK answers: File exists
Jan 23 08:30:39 myhostname systemd[1]: network.service: control process exited, code=exited status = 1
Jan 23 08:30:39 myhostname systemd[1]: Failed to start LSB: Bring up/down networking
Jan 23 08:30:39 myhostname systemd[1]: Unit network.service entered failed state.
Is there anything I'm not trying that would help me get this interface to get an ipaddress?
Thanks!