You can do this by using temporary or permanent way.
Temporary way:
Pretend that your ethernet is eth0, and you know that DHCP block IP from the router/wireless router is 192.168.1.0/24, you can set static IP address in that range:
$ sudo ip addr add 192.168.1.11/24 dev eth0And when you finished, you can just delete that temporary additional IP:
$ sudo ip addr del 192.168.1.11/24 dev eth0
Permanent way:
You can add permanently by adding config in /etc/network/interfaces file:
auto eth0:1Then you set eth0:1 to be up:
iface eth0:1 inet DHCP
$ sudo ifup eth0:1Check to make sure you've got the correct IP address assignment:
$ sudo ifconfig -a | grep eth0
No comments:
Post a Comment
Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)