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 05-01-2005, 07:41 AM   #1
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Rep: Reputation: 15
2nd NIC how do I configure ?


Hi,
Just a simple network question really. Sorry but could not find the answer to any tutorial.
I've got a spare NIC which I installed on my linux system which is working fine through a LAN (gateway 192.168.0.1, eth0 192.168.0.3)
How do I configure the new NIC eth1 so I can connect an old win 98 machine through this one ? Thanks.
 
Old 05-01-2005, 07:56 AM   #2
blueCow
Member
 
Registered: Feb 2004
Location: Florida
Distribution: FreeBSD, CentOS, Debian, Mint
Posts: 111

Rep: Reputation: 17
What are you trying to accomplish?

Are you trying to share the internet connection of your linux machine with your windows 98 machine?

or

Do you just need help deciding where to setup the nic?
 
Old 05-01-2005, 08:15 AM   #3
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
I'm trying to share my internet connection from my linux with the old windows.
Not sure if I should allocate a static IP address to the windows machine or leave it as DHCP enabled. And if so how do I configure eth1 (what IP address, route etc)
Thanks in advance
 
Old 05-01-2005, 02:51 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
To bring up the 2nd (eth1 NIC):

ifconfig eth1 <ip address> netmask <netmask> broadcast <broadcast> up.

That's how you bring up the 2nd nic online. As long as the 2nd nic is in the same subnet as your win98 box, you should be able to connect to it just fine.

-twantrd
 
Old 05-01-2005, 03:35 PM   #5
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
I have done that now so ifconfig gives me this:
eth0 inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
eth1 inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
Monitoring the network now gives me the option to select eth1 but only send traffic is seen (very little)
Something is still not right
I have also noticed the lights at the back of eth1 NIC are off. Does that mean the card is not installed properly ?
Thanks
 
Old 05-01-2005, 03:45 PM   #6
darreng23
LQ Newbie
 
Registered: Feb 2004
Location: Wales
Distribution: Slackware 10/10.1
Posts: 25

Rep: Reputation: 15
If you are managing to give our NIC's IP addresses they should be installed ok. Type ifconfig -a and check that they are both in there with the correct IP addresses.
 
Old 05-01-2005, 04:00 PM   #7
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
Yeh,
both NICs are there on ifconfig -a
Now, the only thing I haven't tried is the crossover cat5
 
Old 05-01-2005, 04:09 PM   #8
darreng23
LQ Newbie
 
Registered: Feb 2004
Location: Wales
Distribution: Slackware 10/10.1
Posts: 25

Rep: Reputation: 15
give your windows machine a static ip and try pinging your linux box. you should be able to get a response at least.
 
Old 05-02-2005, 08:52 AM   #9
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
Should eth0 and eth1 be on the same subnet mask or different ?
When I tried :
eth0: 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255
eth1: 192.168.0.30 netmask 255.255.255.224 broadcast 192.168.0.255
I lost connectivity to the outside world. No DNS server IPs seen.
When I brought eth1 down, all is normal again.
I guess I will have to give some comand for DNS servers, but don't know how, and if required for both eth0 & eth1
Will get there eventually !
Thanks
 
Old 05-04-2005, 03:47 PM   #10
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
Problem solved,

Here is what I did.

eth0 192.168.0.3 mask 255.255.255.0
eth1 192.168.1.1 mask 255.255.255.0
on win 98:
static 192.168.1.2 mask 255.255.255.0
gateway 192.168.0.3
dns host 192.168.1.1
Thanks
 
  


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
can't ping on 2nd nic nbccbn Linux - Networking 6 07-06-2005 05:58 PM
2nd NIC? Cornholio Slackware 3 04-25-2005 10:17 AM
2nd NIC in an Ultra 5 plonker Solaris / OpenSolaris 1 04-29-2004 06:26 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM
2nd NIC def1014 Linux - Networking 3 10-23-2002 08:54 AM

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

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