LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux newbie lost in need of guidence... if you have some time to spare please look. (https://www.linuxquestions.org/questions/linux-newbie-8/linux-newbie-lost-in-need-of-guidence-if-you-have-some-time-to-spare-please-look-194436/)

Lechium 06-16-2004 11:12 PM

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.

bruno buys 06-16-2004 11:22 PM

Hey friend! Don't give up. Count on our help!
Post more details of your problem. Where are you stuck in?

Lechium 06-16-2004 11:30 PM

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?

bruno buys 06-16-2004 11:36 PM

****
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?

Lechium 06-17-2004 12:00 AM

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?

mascdman 06-17-2004 12:44 AM

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

erik258 12-03-2006 03:56 PM

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.


All times are GMT -5. The time now is 05:04 AM.