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 08-14-2003, 03:21 AM   #1
Kent Emia
Member
 
Registered: Aug 2003
Location: Philippines, Davao City
Distribution: redhat / fedora /
Posts: 65

Rep: Reputation: 15
network cards


hi to all....

im wondering ... as the browse and read some of the mails in this forum i noticed most of the people here are using 2 lan cards..
1 for the internet and the other 1 is for the local network..

is this really a "necessary" especially if we will be hooking up to a dsl connection, because as of the moment we are only having one network card per workstations even in our servers...
 
Old 08-14-2003, 03:25 AM   #2
mule
Member
 
Registered: Aug 2003
Posts: 81

Rep: Reputation: 15
its just if you use this pc as a router for the internet and want to have configured out your security. means, you can configure 1 nic for internet with a configured firewall and still leaving 1 nic for the internal lan to connect without lan. Even nat, you can only start with 2 nics in your pc. But you only need it on the machine connecting to internet

hopes this helops
 
Old 08-14-2003, 10:22 PM   #3
Kent Emia
Member
 
Registered: Aug 2003
Location: Philippines, Davao City
Distribution: redhat / fedora /
Posts: 65

Original Poster
Rep: Reputation: 15
"1 nic for the internal lan to connect without lan. "

what do u mean by this? to connect without lan? i dont get it.

kent
 
Old 08-15-2003, 01:37 AM   #4
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by mule
its just if you use this pc as a router for the internet and want to have configured out your security. means, you can configure 1 nic for internet with a configured firewall and still leaving 1 nic for the internal lan to connect without lan. Even nat, you can only start with 2 nics in your pc. But you only need it on the machine connecting to internet

hopes this helops
can you expalin to me what do you mean by saying 1 nic for the internal lan to connect without lan
 
Old 08-15-2003, 01:43 AM   #5
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Dear Kent,
I think it doesn't matter using whether 1 or 2 NIC card, we are using 2 nic card because regarding security problem, 1 for public and 1 for local area.
But if u using 1 NIC and you act like we are, i think there is no problem too, you can always use ip aliases.

would it be help
 
Old 08-15-2003, 02:38 AM   #6
Kent Emia
Member
 
Registered: Aug 2003
Location: Philippines, Davao City
Distribution: redhat / fedora /
Posts: 65

Original Poster
Rep: Reputation: 15
ahhh i see.... ur using 2 lan cards so that they can connect to the internet separately... isn't it? like making them a server? isn't it?
 
Old 08-15-2003, 02:51 AM   #7
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
no, we cannot put it that way, i mean the LAN's one were used to connect to other boxes such as windows in your LAN, because in your LAN you will use the virtual ip. And the public's one will be assigned by public ip, it will need when you own your webserver, etc.
 
Old 08-15-2003, 02:58 AM   #8
mule
Member
 
Registered: Aug 2003
Posts: 81

Rep: Reputation: 15
sorry, i think it was because of the heat...of course it shouldn't mean "without lan.... the goal is that you can connect with your own lan to a nic within your range. this is the "unprotected" one. the 2nd connects to internet. of course, here should the firewall be configured to be secure. -> a configuration with 2 nics is also what is called a router
 
Old 08-15-2003, 04:16 PM   #9
JimTheta
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
What everyone's saying here is that one computer is acting as a go-between. It stands a gateway between the wild internet (connected to card A) and your internal network (connected to card B). This computer would normally not be a web-surfing machine (though it can be); usually it's just a dedicated firewall to protect the internal network.

Technically, this would be a "star" network topology, where the gateway machine is central and all other internal network computers are connected to it. If the gateway only has two ethernet cards, then there can only be one other computer on the internal network. For a bigger network, give the gateway machine more cards. Each internal network machine only needs one card, as it only connects to the gateway.

Obviously, there are other ways to do this; this is just a simple way to do it on a small network.

(Am I the only one who uses proper grammar in here?)

Hope that cleared stuff up.
 
Old 08-21-2003, 10:01 PM   #10
cprovolt
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
How about this

Is this scenario possible? My goal is to have linux box with 2 nics act as a firewall/router like this:
CABLE ISP --> Eth0(DHCP FROM CABLE ISP (?.?.?.?)) --> IP FORWARD/FIREWALL --> eth1 (192.168.1.1) ---> HUB --> NETWORK (192.168.1.0)
 
Old 08-21-2003, 10:24 PM   #11
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
Yes, absolutely, that is exactly what JimTheta is describing. (Note that the "CABLE ISP" in your diagram is actually *your* cable modem.)

It doesn't take much horespower either. I'm in the process of doing exactly that using an old Compaq Presario 5153 P133, a 133 mHz Pentium I.

There's a great book called Linux Firewalls, 2nd Ed., by Robert Ziegler, on how to configure iptables to build such a firewall.
 
Old 08-22-2003, 12:16 PM   #12
cprovolt
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Thanks

Thanks for quick reply. Yeah I probably should have worded that better but is what I meant by CABLE ISP. Im just having a little trouble with DHCP and eth0 pulling an IP from isp. Will work on this over weekend and will be documenting everything I do and compile a good walkthrough for this.
 
Old 08-22-2003, 04:48 PM   #13
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
Excellent. I'm looking forward to your documentation. As mentioned, I am about to embark on the same project -- probably *next* weekend.

I believe configuring eth0 for dhcp should be relatively straight forward -- just the appropriate entry in the ifcfg-eth0 script. I think getting the linux box to grab the DNS server addresses from your ISP is going to be tricky if not impossible. My current Linksys router automatically gets my ISP's DNS server addresses, but I'm not aware of that being possible with a Linux box.

My intended workaround is to set up a caching DNS server, using a *different* Linux box from the firewall, inside the firewall. Alternatively, I may keep the Linksys router in place as a bastion firewall and use a Linux box as a choke firewall inside of that.

Looking forward to reading how everything works out.
 
Old 08-22-2003, 05:45 PM   #14
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Can't see any particular reason why you shouldn't manage to DHCP your ISP's dns servers other than bad luck.
 
Old 08-22-2003, 05:56 PM   #15
mastereq
LQ Newbie
 
Registered: Aug 2003
Location: Poland
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
By the way.. I'm using one lan card but i have three IP adress on it It's realy good idea Lan card is in server and is connected to local network and internet
 
  


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
network cards kyd Linux - Networking 4 07-27-2005 09:07 PM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 02:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Two network cards = network problem filch Linux - Networking 3 01-04-2005 02:06 AM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 03:26 PM

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

All times are GMT -5. The time now is 12:29 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