I am very new to linux routing. Although I understand it conceptually, the actual route commands escape me. I have tried ip route and ip rule on my own, but they didn't work. Hence posting a question here.
Here's my current setup. Centos server with two NICs
eth0 (external and open to the internet)
- static IP: 192.168.13.10
- GW: 192.168.13.1
eth1 (internal private)
- static IP: 192.168.15.10
- GW: Not defined yet. (as I would imagine 192.168.13.1 to be catch all)
Centos client with one NIC
eth0
- Static IP: 192.168.15.200
- GW: 192.168.15.10
Firstly, I would like the Centos client to be able to connect to the internet only via the Centos Server. I know I am missing some form of routing table entry for the above to work. Could someone point that out for me?
Secondly, I would like the Centos client to acquire the IP address from the Centos server. I have dhcpd installed on the Centos server. So just changing the booproto in the ifcfg-eth0 script (from static to dhcp) be enough or is there any routing changes required on the centos client?