Article 6M032 ifconfig gives unknown host error?

ifconfig gives unknown host error?

by
heliostarfish
from LinuxQuestions.org on (#6M032)
I'm not sure what I'm missing. I am getting the error unknown host when I try to use ifconfig to set an ip address.

sudo ifconfig eth0 add 192.168.300.1 netmask 255.255.255.0

returns

192.168.300.1: Unknown host

This seems to be the example command used online. Is there something I'm missing?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments