LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2004, 11:12 PM   #1
Lechium
Member
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 102

Rep: Reputation: 16
Linux newbie lost in need of guidence... if you have some time to spare please look.


Hi,

I am trying to set up a network witrh linuxbox being a router for windows box, but as anything else since I started using linux, I end up spending hours looking online for some things that anyone with at least some linux expericne knows off top of his/her head. Really frustarting. Sometimes I feel like giving up, but I need to know that stuff. I got some good detailed HOWTO's but small things get in my way and are killing me... if someone expericned in linus is willing to mentor me for couple days I would grealty appriciate it.
My (G)AIM screename is speedofpain121.
 
Old 06-16-2004, 11:22 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Hey friend! Don't give up. Count on our help!
Post more details of your problem. Where are you stuck in?
 
Old 06-16-2004, 11:30 PM   #3
Lechium
Member
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 102

Original Poster
Rep: Reputation: 16
so many things...
I had just installed (physically) 2nd ethernet card onto my linuxbox. According to howtos setup should be: internet -> eth card 1 -> linuxbox -> eth card 2 -> eth card windows -> windowsbox

Now my eth card 1 works just fine, since it was automatically configured, however now I need to configure eth card two... if it was window's I'd be done long time ago but not here apparently....
first off: how do I know that computer recognizes new eth card? is there a command that shows all hardwarre computer recognises and where theyare represented in /dev? kinda like fidks -l shows stuff about hard drives?
 
Old 06-16-2004, 11:36 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
****
internet -> eth card 1 -> linuxbox -> eth card 2 -> eth card windows -> windowsbox
****

This is exactly how my setup is configured here on my suse box. Do you use a crossover cable to the win box or a hub?


*****
first off: how do I know that computer recognizes new eth card? is there a command that shows all hardwarre computer recognises and where theyare represented in /dev? kinda like fidks -l shows stuff about hard drives?
*****

Yes, try lspci at the console, as root. lspci stands for "list pci", for listing pci devices. It will show you some info on your hardware.
But this is not what you are looking for, I guess. You want to know if knoppix knows you have two cards and if it can forward internet to the win box, right?

Last edited by bruno buys; 06-16-2004 at 11:39 PM.
 
Old 06-17-2004, 12:00 AM   #5
Lechium
Member
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 102

Original Poster
Rep: Reputation: 16
Cool, that's a useful command... results startle me a bit thou...

0000:00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Hmmm they are from diff vendors, yet it seems them as likes... that's cool thou -- as long as it works heh

However... /etc/sysconfig/netcard sees only 1 card...

so here's a question -- how can I access setting on the new (or any for that matter) card directly?
 
Old 06-17-2004, 12:44 AM   #6
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
You can run /sbin/ifconfig to show a bunch of information about how your network cards are configured. To configure the second network card, try using /usr/sbin/netcardconfig

--mascdman
 
Old 12-03-2006, 03:56 PM   #7
erik258
LQ Newbie
 
Registered: Jan 2006
Location: Twin Cities, Minnesota, USA
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
you can do this all quite easily.

you can do this all quite easily.

at least, i found it easy in gentoo.
gentoo.org/doc/en/home-router-howto.xml
paste that into address field & it'll work.
since this is my first post i couldn't link to it; sorry.

you could probably adapt it to your needs.

basic steps are
  1. get network card drivers and network options into kernel
  2. connect to outside world
  3. start/configure network and services for inside world
  4. NAT ( gateway to the internet for your computers)
  5. port forwarding (forward required ports to windows)

you could simplify it (at the expense of security) by setting up the firewall to accept anything. that would remove the need for thinking almost entirely.
or you could just follow the howto which is pretty simple.

you don't really need dns or dhcp service - for help replacing w/ static configuration, just ask here! it's easy.
 
  


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
Linux distro?????? need guidence Igor007 Linux - Newbie 13 09-16-2004 11:29 AM
PPTP connection lost after certain time bagira Linux - Networking 0 09-08-2004 09:37 AM
Any idle website designers/programmers with spare time? henrikanttonen General 0 08-12-2004 08:12 AM
Dumb Newbie - lost linux partition + BIOS problem? BlendedRacer Linux - Newbie 2 06-28-2004 09:23 PM
if someone has some spare time and knows how to work WINE well citrus Linux - Software 4 05-12-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 AM.

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