LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-29-2004, 08:45 PM   #1
gibcomp
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Why one nic accept packets destined for second nic


I have a linux Red Hat 7.1 machine that has 2 network cards in it.
ifconfig -a is:-
eth0 Link encap:Ethernet HWaddr 00:02:B3:65:87:F0
inet addr:192.168.3.4 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1113330 errors:0 dropped:0 overruns:0 frame:1
TX packets:1377334 errors:0 dropped:0 overruns:0 carrier:0
collisions:9049 txqueuelen:100
Interrupt:11 Base address:0xe000

eth1 Link encap:Ethernet HWaddr 00:05:5D:04:BF:BA
inet addr:192.168.251.251 Bcast:192.168.251.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:301041 errors:0 dropped:0 overruns:0 frame:0
TX packets:237226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xdc00

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:1256368 errors:0 dropped:0 overruns:0 frame:0
TX packets:1256368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

ip_forwarding is "0"

I am using ipchains & have noticed the following messages in the log file:-
Jul 30 11:32:09 msrint kernel: Packet log: input DENY eth1 PROTO=6 192.168.3.7:1200 192.168.3.4:445 L=48 S=0x00 I=6123 F=0x4000 T=128 SYN (#55)
What I don't understand is why is eth1 accepting packets from 192.168.3.7 that are destined for ipaddress 192.168.3.4

My ipchains forward chain is set to DENY with logging but I'm not seeing anything in the log file.

The interface isn't in promiscuous mode as ifconfig would show this.

can anyone explain what might be going on.

Regards
Michael
 
Old 09-04-2004, 04:29 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
are they both connected to the same hub or switch
 
Old 09-09-2004, 12:21 AM   #3
gibcomp
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Yes both are on the same switch
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Binding named to only one NIC of a dual NIC machine - possible? Paul_Randle Linux - Networking 3 08-24-2005 08:44 AM
two nics--ftp on outside nic--samba on inside nic tyler0123 Linux - Networking 2 04-15-2005 07:27 PM
troubles getting Gigabit NIC to work in slack 10 (HGA32T NIC) TheLinuxDuck Slackware 10 03-10-2005 04:37 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM

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

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