DEV Community

Rafael Gimenes Leite
Rafael Gimenes Leite

Posted on

 

Linux Shell Script set fixed IP

Simple shell script to up the ethernet card on specific IP.

ifconfig eth0 down;             
ifconfig eth0 141.1.89.151  netmask  255.255.128.0 up;
route add default gw 141.1.47.142  eth0;

Enter fullscreen mode Exit fullscreen mode

eth0: the interface of ethernetcard

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git