LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 30
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
 
Old 09-26-2003, 01:05 AM   #2
tyler0123
Member
 
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.

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

Original Poster
Rep: Reputation: 30
Hi,

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

Thanks again.

Regards
Craig
 
  


Reply


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 12:00 PM
a good ipforwarding guide Zaius Linux - Newbie 1 01-11-2004 06:40 PM
ipforwarding ??? adavila Linux - Networking 1 10-22-2003 08:59 PM
setting up ipforwarding anwar_lpk Linux - Networking 2 05-09-2003 12:05 AM
Dual NIC's really slow hazza96 Linux - Networking 2 07-11-2001 02:39 AM


All times are GMT -5. The time now is 11:45 PM.

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