Based on this question can the following be done:
- Router with DHCP connected to NIC A on Box 1 - Machine B connected to NIC B on Box 1
I need Machine B to get a DHCP IP address from the Router on NIC A. Currently the setup and configuration is as follows:
- NIC A DHCP Assigned IP: 10.0.x.x (255.255.255.224) - NIC B Static IP: 10.1.x.x (255.255.255.252)
I have ipv4_forwarding on however I can't assign a static IP to the Machine B. What do I need to do to get all traffic from NIC A to flow through NIC B. Or more specifically how can I get Machine B to get an IP address from the DHCP on the router.
- Do I need to setup IPTables? If so where do I start?
- Do I need to setup a route on the linux box? How?
- It can't be done?
This box is NOT the router. There is already a router in place. This is a linux box used for Samba Shares and Virtual Machines. There is however some machines that can't be connect to the main switch, however they can be connected through another hub to this machine.
In Short This machine is sitting in the middle.