I'm a newbie in network stuff and haven't enough knowledge to do what I'm wanting for now, so I need your help, please.
I've two networks, a wired and another wireless.
The wired one is between two computers that acts as routers/gateways. The first one receives provider's Internet link and routes to second, which manages a wireless network and routes Internet to it's clients.
| Computer 1 | wired | Computer 2 | wireless | Client [Internet link] ======== | 192.168.45.1 | ============ | 192.168.45.2 | ============== | Client | | | 172.16.45.1 | | etc.
Currently, wired network has a /30 IP range and wireless a /24. They are distinct ranges (192.168.45.0/30 for wired and 172.16.45.0/24 for wireless). This setting doesn't allow Clients reach Computer 1 or vice versa.
What I want is to have everything within the same IP range, making possible Computer 1 reach Computer 2 and Clients, Clients reach Computer 2 and Computer 1 and Computer 2 reach Computer 1 and Clients. Ultimately, everyone be able to communicate with everyone.
I got a solution which is simply add a routing rule in Computer 1 to reach 172.16.45.0/24 through 192.168.45.2, but by this way, remain exist two distinct IP ranges.
I saw somewhere that is possible to do something like this:
Network address: 192.168.45.0
Available IPs: 192.168.45.1-2
Broadcast address: 192.168.45.3
Network address: 192.168.45.4
Available IPs: 192.168.45.5-131
Broadcast address: 192.168.45.132
It's possible, and if yes, how can I make this setting assuming Computer 1 runs Linux and Computer 2 runs Windows 7? I've searched a lot but found nothing useful, maybe I'm not searching for right term.