I found a good manual for raising the proxy on a Linux server, the only problem is that the author seems to have a different distribution, the manual says:

We take the proxy addresses that are available to us on the server. We take the very first, main address, and perform the following actions with it. First, enter the command ( nano /etc/sysconfig/network-scripts/ifcfg-eth0:1 ) and enter there:

 DEVICE=eth0:1 BOOTPROTO=static ONBOOT=yes IPADDR=ваш IP NETMASK=255.255.255.255 

I only finds such a folder in etc :

 root@194-58-122-28:/etc# cd sys sysctl.d/ systemd/ 

Where do I write these lines?
I have ubuntu 12.04

  • ps: thanks for editing - maksvolf
  • 12.04 will soon cease to be supported. If the system is installed from scratch, it is better to install 14.04 or wait 16.04, which will be released in late April. - don Rumata
  • This is all well and good, but I don’t think it’s essential to support 12.04 or not - maksvolf
  • one
    Where do I write these lines? - very much depends, firstly, on what this information will be needed for, and secondly, on how your network is configured. // in general, it is simply impossible to give a single short answer on the information you provided. // my good advice: do not use the instruction that you quoted. without an understanding of what is happening, you still will hardly be able to “translate” it into the specifics of your distribution. - aleksandr barakin

1 answer 1

Judging by the content - we are talking about configuring a static ip. In debian \ ubuntu, this is done via the /etc/network/interfaces file.

More details here .