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.

                         |            |    wired     |            |    wireless    | Client
[Internet link] ======== | Computer 1 | ============ | Computer 2 | ============== | Client
                         |            |              |            |                | etc.

Currently, wired network has a /30 IP range and wireless a /24. They are distinct ranges (i.e. for wired and 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.

How can I make this? I've searched a lot but found nothing useful, maybe I'm not searching for right term.

  • 2
    That requires bridging, and how to configure it depends on your OS. – Ben Voigt Mar 2 '14 at 1:01

For outbound traffic (going from right to left in your diagram) you just need to make sure each machine has a default gateway set which matches the next hop IP e.g. the clients will have computer2 as their default gateway, computer2 will have computer1 as its default gateway and so on. For traffic going in the other direction (from left to right) all you need is for computer1 to have a static route that tells it which next hop to use to send traffic destined for; in your case that is computer2. So the route command on computer1 would be something like

$ route add -net gw 192.168.45.x

computer2 doesn't need a static route for as it is directly connected to that network


What I want is to have everything within the same IP range,

You could use the free remaining addresses in the 192.168.45.x range, however you need to choose a subnet that does not overlap the existing subnet The best choice would be as that gives you the most usable addresses (125):

usable IPs: -
  • Thanks, this appear to solve the routing problem. But what about to have both networks under same IP range? Ex.: [Network 1 -> Network:; Netmask:; Available IPs:; Broadcast:] [Network 2 -> Network:; Netmask:; Available IPs:; Broadcast:] Can I do this? If yes, will this setting allow everyone-to-everyone communication as I'm wanting? Thanks, bye. – Tiago.SR Mar 1 '14 at 23:30
  • [Network 2 -> Network:; Netmask:; Available IPs:; Broadcast:] That is not a valid network for 2 reasons: a) it overlaps with the existing subnet and would cause a conflict b) the broadcast address is not possible with netmask – IanB Mar 2 '14 at 3:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.