LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-31-2002, 12:07 PM   #1
hermitape
LQ Newbie
 
Registered: May 2002
Posts: 1

Rep: Reputation: 0
2 NIC help


hi,

i have a linux cluster with the master node having 2 ethernet interfaces(eth0 and eth1) and connected to the external network thru eth0. these two interfaces lie on different subnets. eth0 lies on the external subnet(A.B.C) and eth1 lies on the internal private network(192.168.1). i dont want the traffic inside the cluster(i.e. the nameserver requests) to go out to the external network. i also have a name server and a DHCP server inside the cluster but not on the master node. can i configure eth0 and eth1 on master to use different name servers so that eth0 uses the external network nameserver and eth1 uses the internal(inside the cluster) nameserver? all the machines run slackware 8.0. also, can master node have different hostname for the different subnets and if yes, then how?
Code:
    | External Network |
    --------------------
             |
             |eth0(A.B.C.123)
         ---------
         |master |
         ---------
             |eth1(192.168.1.20)
             |
   ---------------------------------192.168.1
     |	             |           |
 ----------          --------    --------
 |DNS/DHCP|          |node1 |    |node2 |
 ----------          --------    --------
 192.168.1.23     192.168.1.24   192.168.1.25
 
Old 05-31-2002, 04:01 PM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
damn, I lost my entire post by pressing tab + backspace
i'll try again, but I'll be shorter
1. goto web and do some studiying if you want your network working well and secure. (ie http://www.yolinux.com/TUTORIALS/Lin...g.html#ICMPOFF )
2. dns: I'm not aware of being able to defineseperate dns's on each NIC, but I don't see the need for these anyway.
You can set your bind to work well within your net, and solve both problems. If you have some funy dns in mind like myweb.home, it's no problem set it up on your internal dns and use it or I would even put it on gateway, to have as much services on one machine.
but be sure to make a good firewall

3.) hostname can be only one, but you can setup many aliases for each eth in /etc/resolv.conf ie
1.2.3.123 gw gateway.outside joescomputer
192.168.1.20 localnic gatway.myweb ...

and you can ping it by any name
then you can setup dns to reslove your ips and names to a fake domain like ns.myweb with zone in dns ...


lots of options to play around with
 
  


Reply



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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
two nics--ftp on outside nic--samba on inside nic tyler0123 Linux - Networking 2 04-15-2005 07:27 PM
troubles getting Gigabit NIC to work in slack 10 (HGA32T NIC) TheLinuxDuck Slackware 10 03-10-2005 04:37 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration