Communications and Wireless
1833772 Members
2285 Online
110063 Solutions
New Discussion

gateway

 
SOLVED
Go to solution
Piotr Kirklewski
Super Advisor

gateway

Hi there.
I have 4 hosts, network 192.168.75.0 .
I need to connect them to a gateway which has a different IP range (192.168.1.1).
I have no idea how to do this.
Can you please help ?
Thanks
Peter
Jesus is the King
5 REPLIES 5
cenk sasmaztin
Honored Contributor

Re: gateway

hi Piotr

if you want ip routing between two network
you have routing device (routing switch or router) and default gateway address must be router lan address for network

please attach file
cenk

Pieter 't Hart
Honored Contributor
Solution

Re: gateway

In addition to Cenk's diagram :
Without a router or adresses in the same network the hosts cannot communicate with the gateway.

to connect two networks (192.168.75.0 and 192.168.1.0), you need a router, wich is basically a device that has two network interfaces, one in each network/subnet running some software to connect the networks.
The router can be a dedicated network device, or a host running windows or linux that is configured for routing.

It may be an option is to renumber the 192.168.75.0 hosts and give them an adress in the 192.168.1.0 network (or renumber the gateway to 192.168.75.x).

For a better advice you must specify more information about your situation.
For instance if the gateway is a (soho)internet router it most likely runs a DHCP server. if so, you may simply change your hosts from fixed adresses to dhcp-adresses and it wil work.

Pieter
cenk sasmaztin
Honored Contributor

Re: gateway

if I understand you

you want same broadcast domain ,same pc connection two network

so you want use one pc same time two network

is this true ?
cenk

Piotr Kirklewski
Super Advisor

Re: gateway

Hi There
I have those hosts on VmWARE so when I'm at work they are fine because the ip range fits.
At home I have different IP range and different gateway. I want my hosts to be able to connect to my work gateway 192.168.1.1 as well as home gateway 192.168.0.1.
The system is Redhat Linux and I was plaing with commands ip route, route etc.
Regads
Peter
Jesus is the King
Pieter 't Hart
Honored Contributor

Re: gateway

for all vm's create a second virtual adapter and assign these adapters a home-adress.
technically this may be attached to the same physical adapter.

But better would be adding a second physical NIC to the vmware host and create a second vm-network connected to this NIC.
At work you connect NIC1 at home NIC2.
Then vmware and the hosts can detect wich network is up or down depending on wich cable is connected.