LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-12-2005, 07:25 AM   #1
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
eth0(WAN) and eth1(LAN) getting mixed with weird results


The prblem itself:
Azureus is moving data at 50kbps/50kbps (so moving both up- and downstream) thru the dedicated WAN intrface. Or atleast it should.. (; Instead, the upstream traffic is routed thru eth1 that is a didicated LAN interface (according to both iptraf and gkrellm). I didnt notice the problem until today, possibly due to that an LTSP terminal was active, effectively hiding any excess upstream counted for the wrong interface, so it is possible that this has been going on since the firewall modifications. (See history below)

This situation doesnt cause any discomfort except making monitoring a tad paining of a task, but moreof causes extremem bewilderment as to why is the data going upstream through an interface that doesnt have a WAN ip. (only LAN, see ifconfig appendice)

_Any_ ideas or theories are welcome, this one realy caught me by surprise.. Ive got no idea of whats going on.. (:

History:
I have a rather unusual network topography at home, well atleast unusual to other solutions ive encountered. All the machines on the network have a public ip address, plus a LAN address in the 192.168.0.x address space. The simple reason is that I hate NAT, and would need a seperate unit for it due to ISP restrictions on the modem.

So, recently I upgraded my personal iptables firewall (on the machine called indigo that is the object of this abnormality) with fwbuilder, and encountered serious problems with my habit of using virtual (eth0:0) interfaces for the LAN. Fwbuilder handles virtual interfaces as a part of the main interface, and having an interface set up with a dynamic ip plus a static LAN ip was impossible, even though the virtyualization made it possible with ifconfig, but iptables didnt like this at all. So, as a remedy I hooked up the second port of the integrated NIC to the same switch the mahine was on, now with two identical connections. Thus having seperated the LAN over to eth1, fwbuilder was happy and joy ensued. Untill this weirdness arose.

versions / appendices:
Slackware Linux current (== 10.2)
Linux 2.4.31
Iptables 1.3.3

ifconfig quote (censored):
Code:
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:xxx.xxx.xxx.xxx  Bcast:xxx.xxx.xxx.xxx  Mask:255.255.240.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11063177 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11809020 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3209599625 (3060.9 Mb)  TX bytes:2443151044 (2329.9 Mb)
          Interrupt:11 Base address:0x9000 

eth1      Link encap:Ethernet  HWaddr 66:77:88:99:00:11  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23685139 errors:1 dropped:0 overruns:0 frame:1
          TX packets:35503945 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1540653708 (1469.2 Mb)  TX bytes:2596033806 (2475.7 Mb)
          Interrupt:5 Base address:0x1000 

eth1:FWB1 Link encap:Ethernet  HWaddr 66:77:88:99:00:11
          inet addr:192.168.0.5  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Base address:0x1000 

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:55365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6588298 (6.2 Mb)  TX bytes:6588298 (6.2 Mb)

vmnet1    Link encap:Ethernet  HWaddr 22:33:44:55:66:77  
          inet addr:172.16.75.1  Bcast:172.16.75.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
Old 08-12-2005, 07:34 AM   #2
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
Have you tried using 'route'.. check man route for more info..
 
Old 08-12-2005, 08:01 AM   #3
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Original Poster
Rep: Reputation: 31
routing has allways been abit of mystery to me, so I havnt myself modified them at all, but heres the output if its of any worth:
Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
172.16.75.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
xxx.xxx.xxx.0    0.0.0.0         255.255.240.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         xxx.xxx.xxx.1    0.0.0.0         UG    0      0        0 eth0
 
Old 08-12-2005, 08:23 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Original Poster
Rep: Reputation: 31
Update:
Well, all of a sudden, when I wasnt looking, everything returned to normal.. All the traffic is again going through eth0 (both gkrellm and iptraf agree on this)...

/me is even more confuzzled.

Even more now this demands for a rational explenation.. Oh yeah, I checked, there was no assigned traffic for LAN, no one else is online, and both of the ports were flashing lights (transfer) so this wasnt just an error in monitoring.. And yeah, the lan light now has gone back to sleep..

Last edited by Artanicus; 08-12-2005 at 08:27 AM.
 
  


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
Assigning eth0 / eth1 or multi-LAN motherboards? Eastside Linux - Networking 5 06-13-2005 11:34 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 03:33 PM
Mixed results with sound rkfb Slackware 3 07-02-2004 06:02 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM
It dznt matter wheter eth0 (internet) or eth1(my lan) lelski Linux - General 1 06-07-2003 09:36 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration