Roland0 wrote: 
> Not sure what you mean by "virtual device" in this context. Waht you'are
> trying to archive is usually called 'IP aliasing'
> (https://wiki.archlinux.org/index.php/Network_configuration#IP_address_aliasing)
> You should use the iproute2 tools (ip specifically) instead if the
> (obsolete) ifconfig for a manual setup. 
> For an automated solution, see 'here'
> (http://osmanov-dev-notes.blogspot.com/2017/05/systemd-service-for-ip-aliasing.html)

I have no doubt my knowledge is antiquated.  I've been dabbling in linux
since perhaps the late 90s, and university unix mainframes long before
that, but purely dabbling.  I'm sure much of what I "know" I probably
should unlearn.  Mentally crossing out ifconfig and circling iproute2...


By "virtual device", I had run the command:

sudo ifconfig eno1:0 NewIP

This created a new fixed IP (within my home network) for the server box
that I could address remotely.  Hitting the server on NewIP brought me
to the same pages I would have seen had I used OldIP.  So from outside
the server, NewIP and OldIP are mirrors of each other.  I have 2 IP
addresses, but they both reach the same box identically, like I had 2
boxes running the same software.

Using iproute2, I used:

sudo ip address add NewIP/24 dev eno1 label eno1:1

As far as I can tell, the result appears identical to the ifconfig
result, but glad to know and use the new and shiny tools.  The NewIP is
present and accessible from other machines within my local network,
however it serves pages and acts indentically to OldIP.  Because NewIP
is bound to the same ports as OldIP, I couldn't run the reverse proxy
from NewIP:80 to OldIP:9000.

I THINK what I want to do is create a NewIP that looks, feels and acts
to outside machines as completely separate from the OldIP.  NewIP should
not be bound to any ports initially.  Then I could bind a new reverse
proxy server and map port 80 from NewIP to port 9000 in OldIP.  I have
done exactly this using independent servers so NewIP is fully
disassociated with the OldIP NIC.  I'm just trying to find a lighter
weight manner of achieving this.  

My suspicion is this is extremely easy once I know how, and if I knew
how to ask the question better, it would be easier to get the answer,
too.


------------------------------------------------------------------------
wactuary's Profile: http://forums.slimdevices.com/member.php?userid=233
View this thread: http://forums.slimdevices.com/showthread.php?t=113639

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to