The ChenMing's solution is very nice for me (either on desktop that laptop). I have changed only eth and gw's ip number:
# Add following lines to /etc/rc.local to setup a static ip address and default route.
ifconfig eth0 192.168.0.20 route add default gw 192.168.0.10
After a simple restart it's all right! ;)
The ChenMing's solution is very nice for me (either on desktop that laptop). I have changed only eth and gw's ip number:
# Add following lines to /etc/rc.local to setup a static ip address and default route.
ifconfig eth0 192.168.0.20
route add default gw 192.168.0.10
After a simple restart it's all right! ;)