LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Dual NIC's ipforwarding? (https://www.linuxquestions.org/questions/linux-networking-3/dual-nics-ipforwarding-95349/)

TheRealDeal 09-21-2003 10:37 PM

Dual NIC's ipforwarding?
 
Hello.

I have a server with two network cards. And 2 seperate networks.

Would I be correct in saying that if I configure the first network card to connect to the first network, and the second network card to connect to the second network, nothing will leak across networks?

Basically the server is a dhcp / dns / samba server for the 2nd network, which is seperate to our main backbone network. I don't want this server to be sending dhcp ip's out to the wrong side, and also don't want the users of the main network to be able to access our seperated network.

IP Forwarding will be disabled.

Thanks for any help.

Regs
Craig

tyler0123 09-26-2003 01:05 AM

if ip forwarding is disabled, then forwarding can't happen. users won't know other network is even there.

may want to manually start dhcpd with the nic as switch.

ie...

in /etc/rc.d/rc.local file, add at end:

dhcpd ethx

with x being the number of the card to serve dhcp.

to find dhcpd, if not started by above added to rc.local, type locate dhcpd, once found put whole path in the rc.local file.

will have to stop the dhcpd service from starting automatically to see if this works.

ntsysv command from prompt will let you select which programs start automatically. uncheck dhcpd. and in smb.conf, under hosts allow=, leave the 127. entry and put x.x.x. following the example, replacing x's with your networks first numbers, like 192.168.0.

then only hosts on that network will be able to see the shares.

TheRealDeal 09-26-2003 01:10 AM

Hi,

Thanks alot for your reply!!!! That will help me out alot.

Thanks again.

Regards
Craig :)


All times are GMT -5. The time now is 10:41 PM.