Click to See Complete Forum and Search --> : 3 NICs, Redhat 7 - two static IPs, one DHCP assigned


njcajun
02-21-2001, 12:11 PM
Can I do this? Gimme a couple of pointers on how I set this up.

I have a machine that I just put three NICs into to make it a router. eth0 will be connected to my office's network and needs to be assigned via DHCP. The other two NICs are there to serve other much smaller, static networks.

For example, eth1 will be 192.168.2.x, and all the ip's on that subnet will be static.
eth2 will be 192.168.3.x, and that subnet's ip's will also be static...

...but both subnets need access to my office's network via eth0, which will be assigned via DHCP.

Thanks for any info on this you can provide!

triplehex
02-21-2001, 02:41 PM
okay, so eth0 is going to be a DHCP client, and eth1 and eth2 will be static IP's. Firstly, you need to make sure that each card has been detected and is working properly using: dsmeg | tail

Next, there is editing your /etc/sysconfig/network file for IP forwarding=YES and networking=YES

Then configure eth0 for DCHP by adding BOOTPROTO="dhcp". This will allow it to get an IP address from your office DHCP server. The file for redhat is under /etc/sysconfig/network-scripts/ifcfg-eth0

Next check your routing tables and add the necessary routes for your cards to communicate with each other.

Let me know if this helps, I'll pull together some more info for you. I just installed a router like this at home.

njcajun
02-21-2001, 03:50 PM
This should work. I'll let you know. Redhat hasn't even been installed yet, but everything looks good on paper :)