LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-19-2002, 11:58 AM   #1
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Rep: Reputation: 30
2 nics on same box works only if they are both 192.168...HELP


eth0=192.168.1.2
eth1=192.168.4.2
This works great.
I i change eth1 to 10.0.0.4, nothing works. Its like it disables eth0 and eth1.

Any ideas?????????
 
Old 01-19-2002, 12:07 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: 2 nics on same box works only if they are both 192.168...HELP

Quote:
Originally posted by ForumKid
eth0=192.168.1.2
eth1=192.168.4.2
This works great.
I i change eth1 to 10.0.0.4, nothing works. Its like it disables eth0 and eth1.

Any ideas?????????
What if the output of /sbin/ifconfig ?

And,. what is the output of /sbin/route -n ?
 
Old 01-19-2002, 12:20 PM   #3
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
eth0 Link encap:Ethernet HWaddr 00:B00:78:92:07
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:16 Base address:0xe8c0

eth1 Link encap:Ethernet HWaddr 00:02:B3:0A:0B:EE
inet addr:10.0.0.4 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:28 Base address:0xdcc0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.200 0.0.0.0 UG 0 0 0 eth0
 
Old 01-19-2002, 12:27 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Okay, that looks good at first glance.

When you try to ping the IP address of eth0 and eth1, what is the output of ping?

Before you run ping, run ifconfig first. Every interface has a "RX packets" and "TX packets" field. As well as "errors" and some more.

Note those numbers down, then run ping and wait a few seconds unitl it exists with an error (or if it keeps waiting for something, ctrl+c it). Now run ifconfig again. Has anything changed in the RX/TX packets, or errors fields?
 
Old 01-19-2002, 12:32 PM   #5
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Hi,
FYI,
gateway for 10.0.0.4 should be 10.0.0.1
gateway for 192.168.2.2 is 192.168.2.200

I noticed there was only one gw in the route -n under eth0. Should eth1 have an entry with the gateway,

Im runningping test now
 
Old 01-19-2002, 12:36 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by ForumKid
Hi,
FYI,
gateway for 10.0.0.4 should be 10.0.0.1
gateway for 192.168.2.2 is 192.168.2.200

I noticed there was only one gw in the route -n under eth0. Should eth1 have an entry with the gateway,

Im runningping test now
route's shouldn't matter if you try to ping the IP address of a network card in your computer. Routes come into play when you try to connect to other computers.
 
Old 01-19-2002, 12:38 PM   #7
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
This changed on the eth1

RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
 
Old 01-19-2002, 12:48 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Linux disables an NIC if more than one are on the same subnet. Windows doesn't do thi.. but then windows is wrong... It's because of the ethernet protocol and standards, it doesn't make sense to have two cards connected to the same piece of wire, as it'd cause absolute havoc. you can use bridging to connect the two subnets tho.

p.s. RAHHHHHHHHHHHHHH good to be back!
 
Old 01-19-2002, 12:52 PM   #9
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by ForumKid
This changed on the eth1

RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
and what did ping say? was it able to ping?
 
Old 01-19-2002, 12:53 PM   #10
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
The thing is..........i dont want them connected. I want one card for internal lan stuff, the other card is for the internet stuff, like email coming in. THere is no sense of having ssh/pop3 running on eth0. I want it all to run on eth1. And it does if there both on the same mask. But since eth1 is part of my internal lan, i want the ip to be 10.0.0.x.

Thanks
 
Old 01-19-2002, 12:54 PM   #11
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
Linux disables an NIC if more than one are on the same subnet. Windows doesn't do thi.. but then windows is wrong... It's because of the ethernet protocol and standards, it doesn't make sense to have two cards connected to the same piece of wire, as it'd cause absolute havoc. you can use bridging to connect the two subnets tho.
True, but with a netmask of 255.255.0 his original eth0 and eth1 weren't on the same piece of wire (192.168.1.0 and 192.168.4.0 would be different networks). Unless of course the netmask was set to 255.255.0.0 but that didn't seem to be the case looking at ForumKid's ifconfig output
 
Old 01-19-2002, 12:58 PM   #12
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Yes i can ping it.......
 
Old 01-19-2002, 01:03 PM   #13
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by ForumKid
Yes i can ping it.......
so now i'm confused. What is the problem then? From your original post I took it that you couldn't do anything including not pinging. Since that works, I'm not sure what is not working (since we didn't change any configuration).
 
Old 01-19-2002, 01:05 PM   #14
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
I rebooted and the first connection that i tried to make was to 10.0.0.4. NOw i cannot connect to eth0. Its like whatever card i connect to first takes precedence and thats it.
 
Old 01-19-2002, 01:33 PM   #15
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
So now i can ping 10.0.0.4 and 192.168.2.2
If i unplug 192.168.2.2 i can still ping 10.0.0.4
If i unplug 10.0.0.4, i cannot ping 192.168.2.2

Doesnt make much sense to me. Something is getting confused.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is someone on my network?! ::ffff:192.168.0.10:ssh ::ffff:192.168.0.:38201 ESTABLISHE ming0 Linux - Security 4 04-12-2005 01:04 AM
192.168.2.1 network with 192.168.0.1? Micro420 Linux - Networking 2 02-27-2005 06:59 AM
Iptables is converting -s 192.168.1.0/8 into 192.0.0.0/8 why !? qwijibow Linux - Security 2 01-26-2005 09:57 AM
\\192.168.23.21 works but \\logicbomb does not johnnyde Linux - Networking 2 09-11-2004 11:35 AM
192.168.0.0/25 ? Firew Linux - Networking 1 04-12-2001 01:02 PM

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

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