Routing network to intranet gateway
Hi,
I am kind of a newbie and have the following query.
Basically I have this CentOS machine (LinPC) connected to the internet router (192.168.0.254 netmask 255.255.255.0) via eth1 (192.168.0.20 netmask 255.255.255.0) and have an ethernet switch connected to eth0 (192.168.3.250 netmask 255.255.255.0).
LinPC runs a dhcp daemon so as to provide IP addresses 192.168.3.x to devices on the ethernet switch.
This means that both networks are separate. However I'd like to have machines on the ethernet switch to use the router gateway without having access to the other PCs connected with the router switch ports i.e. 192.168.0.x.
Any ideas?
Do I have to set up DNS on 192.168.3.250? Any ideas?
Following is the routing table.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.0.254 0.0.0.0 UG 0 0 0 eth1
192.168.0.254 is a router connected to a modem connected to the internet. It has dhcp and dns services running as well. So far I don't sense it is conflicting with the CentOS dhcpd.
Pls help.
John
|