Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-21-2003, 11:37 PM   #1
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Dual NIC's ipforwarding?


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.

Old 09-26-2003, 02:05 AM   #2
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
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.


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.
Old 09-26-2003, 02:10 AM   #3
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30

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

Thanks again.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual NIC's on 2 different networks...possible? Groundhog1248 Linux - Networking 6 07-28-2009 01:00 PM
a good ipforwarding guide Zaius Linux - Newbie 1 01-11-2004 07:40 PM
ipforwarding ??? adavila Linux - Networking 1 10-22-2003 09:59 PM
setting up ipforwarding anwar_lpk Linux - Networking 2 05-09-2003 01:05 AM
Dual NIC's really slow hazza96 Linux - Networking 2 07-11-2001 03:39 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration