E
E
Evgeny2017-07-01 18:19:03
linux
Evgeny, 2017-07-01 18:19:03

Another IP for the lo interface?

How to correctly set one more IP for the lo interface in ArchLinux (outside 127.х.х.х)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny, 2017-07-01
Lubyanoy @arswarog

Wrote a service file for systemd
ipforlo.service

[Unit]
Description=168.192.215.x net for host
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/ip addr add 192.168.215.1/24 broadcast 192.168.215.255 dev lo
ExecStop=/usr/bin/ip addr del 192.168.215.1/24 broadcast 192.168.215.255 dev lo

[Install]
WantedBy=default.target

T
TyzhSysAdmin, 2017-07-01
@POS_troi

If you decide to do this, then you have done something wrong before.
So the question is why?

V
Vladimir Zhurkin, 2017-07-01
@icCE

Reading:
It is advisable to study the RFC in general to understand why this cannot be done.
Well, if the screenshots are completely incomprehensible:
This applies not only to Windows, but to any OS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question