Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat, Fedora, Yellow Dog, Debian, FreeBSD, Embedix
Posts: 106
Rep:
ARP with two interfaces
I have two interfaces in my box:
eth0 Link encap:Ethernet HWaddr 00:10:4B:9E:1F:E7
inet addr:172.16.0.8 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:50:dA:66:0d:d5
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
The second interface is used to monitor the network with tcpdump, I want it to receive any traffic sent to it, but not send any packets out.
When one of my machines on the network tried to connect to smb server running on 172.16.0.8, the first thing the client does is send arp request to learn the MAC of 172.16.0.8. Why the heck does ot get response through both interfaces? It should only hear back from 00:10:4B:9E:1F:E7
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Sure, you should be able to just
# ifconfig eth1 up
If you already configured it with an IP, and ifconfig eth1 down didn't erase it (i.e. next time you "up" it, it goes back to the previous IP), you will need to use the ifconfig man page to determine what the correct option is to delete an IP from an interface. You should also make sure that the broadcast address was removed as well (which should happen automatically when you remove the IP).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.