Working on an assignment where I need to create a new network adaptor (Host only) in VMware an I need to enter the following
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.150.129 netmask 255.255.255.0
sudo route add default gw 192.168.150.242 eth1
However I get an error as the output
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
255.255.255.: Host name lookup failure
What am I doing wrong?