Invalid command : set interfaces [ethernet]


#1

set interfaces ethernet eth1 address ‘192.168.0.1/24’

What is wrong with this. Please help. After typing this command I’m getting following error…

Invalid command : set interfaces [ethernet]

I’m doing a project.


#2

Hi, you need to be in configure mode and don’t need to put the ’ ’ on the address:
set interfaces ethernet eth1 address 192.168.0.1/24

if you do this and still not get a valid answer then:
sudo su
ifconfig -a
to see if you have valid interfaces