LinuxQuestions.org
Review your favorite Linux distribution.
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 04-29-2002, 08:16 AM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
installation of second ethernet card


Sorry if this question has been asked before - I'm just finding it hard to track down the information I need. I probably just don't understand what is written in the threads!!

With the help of this forum, I got eth0 working with my cable modem and DHCP. I'm trying to set up my second card - but I'm not sure what to do with it. I understand that I need IP Masquerading but YaST2 in SuSE 7.3 freezes up when I try to set the card up. Does it need to be DHCP aswell? Or something else? I'm giving a neighbour access to the Internet via my box. I'm not looking to offer any filesharing etc.

Thanks
 
Old 04-29-2002, 11:54 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232

Eth1 will be a a nic for local network, right? So you don't need DHCP. Configure it with a static ip address (for example 192.168.1.1). I don't know YaST... From console it's
ifconfig eth0 192.168.1.1
Then make eth0 default gateway
route add default eth0
Then it's only masqerade to do. It's described many times on this site
 
Old 04-29-2002, 05:48 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Eth1 will be a a nic for local network, right? So you don't need DHCP. Configure it with a static ip address (for example 192.168.1.1). I don't know YaST... From console it's
ifconfig eth0 192.168.1.1
Then make eth0 default gateway
route add default eth0


Sorry but I don't understand this - if eth1 is to be my gateway, should I really input "ifconfig eth0 default gateway?"
 
Old 05-03-2002, 12:59 AM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
second network card

For many reasons, I am very nervous about changing anything to do with my network cards. I am a little confused. Apologies for this recap but this is what I think I have to do (from the above) - am I correct?

My system still has eth0 connected to a cable modem. eth1 will be my NIC fo one other computer. There will be no file sharing.

1) # ifconfig eth0 (static address)
2) # route add default eth0

Should that be it? I was just a little worried before about instruction (1) going to eth0 - but I'm in the dark about all of this.

Please help and thanks for your patience
 
Old 05-03-2002, 12:36 PM   #5
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
I've done as was suggested - but eth1 (NIC), though detected, is not working. The light isn't coming on. The new computer isn't able to connect yet. Is there anything I can look at? I'm not sure that I've set up IP masq correctly and I'm worried that eth1 is broken - any way to test it?
Thanks
 
Old 05-03-2002, 03:04 PM   #6
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
testing network card

I want to see whether eth1 is working. eth0 is connected to my cable modem. I want to IP Masq but I suspect that eth1 is *dead* Is there a simple way of testing whether eth1 is working on my system right now - without removing it? If I know it's working, I'll stay up for the rest of my life trying to get this network to function. If it's dead - I'll finish the bottle of wine I'm drinking and ignore my network failures for the rest of this evening. I'm using SuSE 7.3 and drinking Marques de Aragon (v. 2000)
Thanks
 
Old 05-03-2002, 03:09 PM   #7
BTseapig
Member
 
Registered: Oct 2001
Location: central texas
Distribution: redhat 7.2
Posts: 30

Rep: Reputation: 15
Actually what you need to do is have eth0 as DHCP and eth1 with a static address. I think you misunderstood the instructions. After you have done this the light on eth1 should be on, assuming that it is connected to a hub/switch.
 
Old 05-03-2002, 03:21 PM   #8
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Can't it be connected directly to another computer?
I understand what a hub is but a switch? Sorry for my stupidity - and thanks for a prompt response BTseapig!!
 
Old 05-03-2002, 03:33 PM   #9
BTseapig
Member
 
Registered: Oct 2001
Location: central texas
Distribution: redhat 7.2
Posts: 30

Rep: Reputation: 15
hub OR switch. whatever you have. ;-)
 
Old 05-03-2002, 03:59 PM   #10
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
so I guess I need to go out and buy a hub tomorrow. As a matter of interest.....but never mind!! I was going to ask why a hub is needed as opposed to a direct connection to the one computer that will use eth0 (plus the box with eth0 in it!) If I need a hub - a hub buying I will go.. hehe...spend spend
 
Old 05-03-2002, 04:07 PM   #11
BTseapig
Member
 
Registered: Oct 2001
Location: central texas
Distribution: redhat 7.2
Posts: 30

Rep: Reputation: 15
if you are only connecting one computer, you could get a crossover cable. however you can get a 5 port switch for about nothing, this would allow you to connect several computer to the network.
 
Old 05-03-2002, 04:17 PM   #12
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Ah Ha

So! At last - I think that understand. The words "crossover cable" rang a bell. I've only plugged my XP laptop into networks using a hub. I've set up three networks using W98SE - all with hubs!!!!!! ho ho - he kicked himself happily! I had no luck testing a friend's network card with my laptop (XP) and I haven't been successful setting up IP Masq etc. on my SuSE 7.3 box - my friend (we've run a cable across the rooftops between our houses - 40 metres) can't connect to the net yet - is this all because we didn't crossover or use a hub?
Wow! If so - I feel stoo-pid.
 
Old 05-03-2002, 07:51 PM   #13
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
To connect computer-to-computer, you must use a crossover cable. With a hub/switche/router, the crossover is performed by the device's internal circuitry, so all machines only need to use a regular "straight-through" cable.
 
Old 05-04-2002, 01:17 AM   #14
ucb-guy
LQ Newbie
 
Registered: May 2002
Posts: 7

Rep: Reputation: 0
Hey esteeven,
would you mind to share how did you make the first Ethernet card working on Linux SuSE 7.3 using DHCP ???
Are you using the yast2 utility, or ifconfig command??? I try to make the Ethernet card working on my system too, but somehow it messing up.
Thanks.........
 
Old 05-04-2002, 01:29 AM   #15
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Check to see whether DHCP is installed on your box - use Yast2 Software Install and search for DHCP. It wasn't on my system and that caused millions of problems because nothing would work. As soon as I installed it, I could set the card up. The option in Yast2 for DHCP seems to be there even if DHCP is not.
Good Luck!
 
  


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
after 2nd ethernet card installation the 1st doesn't work kpachopoulos *BSD 1 03-06-2005 04:38 PM
ethernet card installation duhasst0 Slackware 5 09-08-2004 05:06 PM
HELP!! ethernet pc card adapter installation tontokawalsky Linux - Laptop and Netbook 4 03-04-2004 06:58 PM
my Ethernet card was not recognized at installation ifreborn Linux - Software 15 12-14-2003 04:57 PM
Linux 9 installation cannot find ethernet card. jimzwang Linux - Hardware 3 09-10-2003 12:14 PM

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

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