Categories
Linux Mastering Development

How to use two network range in single network?

I have a single private network 10.51.8.0/23 (say networkA). in my network A, I have single host (say HostA) with IP 172.16.0.24.

My intention is to reach Host A from anywhere in the network A.

test@test:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.51.8.1       0.0.0.0         UG    100    0        0 eno1
10.51.8.0       0.0.0.0         255.255.254.0   U     100    0        0 eno1

Is it possible to create a new interface mylocal with Destination 172.16.0.0, Gateway 0.0.0.0, Genmask 255.251.0.0, Iface eno1?

Is the above approach valid and satisfy my use-case? If no kindly propose your opinion on this.

Leave an answer

Your email address will not be published. Required fields are marked *