LinuxQuestions.org
Help answer threads with 0 replies.
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 03-06-2003, 08:20 AM   #1
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Rep: Reputation: 30
multiple network cards in router


Help!

I have a linux (RH7.3) router wich i wish to use with 2 network cards connecting to the internet via modem.

eth0 is a 10mbs card
eth1 is a wireless card

I currently can ping the router etc via eth0
I can't ping the router via eth1

when I block the ip address of the machine attempting to access the router via eth1, using iptables, my logs show that it is being blocked (and therefore attempting to connect!)
when I unblock the ip address logs show nothing, but I cannot ping the router.

ifconfig on router shows:
eth0 Link encap:Ethernet HWaddr 00:E0:63:82B:F2
inet addr:192.168.42.1 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15024 errors:0 dropped:0 overruns:0 frame:0
TX packets:12014 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1657475 (1.5 Mb) TX bytes:6359319 (6.0 Mb)
Interrupt:3 Base address:0x100

eth1 Link encap:Ethernet HWaddr 00:00:21:12:8A:6A
inet addr:192.168.42.2 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:662 errors:0 dropped:0 overruns:0 frame:2
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:60051 (58.6 Kb) TX bytes:3600 (3.5 Kb)
Interrupt:9 Base address:0x300

any ideas as to why I can't access the router on eth1 anyone??

would anymore information help?

finegan??

anyone???
 
Old 03-06-2003, 08:39 AM   #2
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
you can't have two NIC's running on the same netmask, it doesn't make sense as far as ethernet protocols go. however convenient it might seem to you ethernet protocols have to be fully scalable and can't be allowed to be broken, so you need to change the subnet, annd then i assume you will want to look at ip masquarading, for which i'd just recommend an app called firestarter to let it sort it all out for you.
 
Old 03-06-2003, 08:50 AM   #3
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
cheers chris,

actually had different netmasks before, didn't seem to make much difference..

will give it a whirl but..

better do some reading on ip-masq..
 
Old 03-06-2003, 10:45 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Its not so much that the netmask is the same its the fact that the IP addresses are in the same network. A router routes BETWEEN networks therefore, by definition, can't have two interfaces in the same IP network.

192.168.42.1 mask 255.255.255.0 = IP network 192.168.42.0
192.168.42.2 mask 255.255.255.0 = IP network 192.168.42.0

See? The same network.

Use 192.168.43.0 network on eth1 and it will work. Don't forget to change any other devices on the ethernet connected to eth1 as well!
 
Old 03-06-2003, 06:40 PM   #5
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
thanks for replying!

all systems seem to be running ok now, ended up changing netmask to 255.255.255.240 & ip to 192.168.43.0(etc)

now I just gotta figure out why me damn winxp can't access the net through router...

Is that a samba thing? I didn't think I'ld need that coz I'm just trying to access router webpages & internet (via ppp0 not ethernet)
 
  


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
Multiple Network Cards ryanroler Slackware 11 01-14-2005 07:18 AM
Unable to forward with multiple network cards dcgva Linux - Networking 2 06-22-2004 01:38 PM
Setting up Slackware 9.1 to use multiple network cards? Lynx2112 Slackware 7 06-10-2004 05:52 PM
multiple network cards, wireless fell over and died Smerk Linux - Wireless Networking 13 04-08-2003 07:05 PM
VMWare and multiple network cards Syd Nicholson Linux - Networking 0 06-26-2001 06:23 PM

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

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