You can use set any ip-address for your IP-address
ifconfig interface IP-address netmask 255.255.255.0 broadcast 192.168.10.255
ifconfig eth2 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
For bringing up interface use
ifconfig eth2 up
For bringing down the interface use
ifconfig eth2 down
ifconfig interface IP-address netmask 255.255.255.0 broadcast 192.168.10.255
ifconfig eth2 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
For bringing up interface use
ifconfig eth2 up
For bringing down the interface use
ifconfig eth2 down