LinuxQuestions.org
Review your favorite Linux distribution.
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 06-05-2005, 04:55 PM   #1
hell_carnage
LQ Newbie
 
Registered: Aug 2004
Distribution: Crux 2.1
Posts: 23

Rep: Reputation: 15
Smoothwall setup troubles


I am trying to replace my Linksys router with a Smoothwall box, and am having some difficulty. For some reason, the Smoothwall box is unable to pull an IP address from my ISP (Comcast). If I type `dhcpcd eth2`, it will hang for a minute or so before spitting out errors about not being able to find /etc/dhcpc/dhcpcd-eth2.info. Just for kicks, I plugged one of my Windows boxes directly into the cable modem to see what happens, and it wasn't able to pull an IP address either. When I reconnected the Linksys router, it immediately pulled an IP. Anyone have an idea what might be going on here? I don't :\
 
Old 06-13-2005, 02:12 PM   #2
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
Arp Cache / gratuitous ARP request?

Switching NIC's that are directly connected to your ISP can cause problems related to the MAC address that your ISP expects you to use to access their network (this is a unique address hardwired into each NIC). Your ISP may be caching the old address.

You can try using the linux utility "arping" to trick the ISP into updating its ARP cache by making your NIC send out a request for the MAC address for its own IP address. This is referred to as a "gratuitous" ARP request.

arping -U -I eth0 192.0.2.1 (substitute your IP address here)

For a good explanation, see:

http://www.shorewall.net/ProxyARP.htm (this site will be going off line soon so I have quoted extensively below)

Quote:
A reading of Stevens' _TCP/IP Illustrated, Vol 1_ reveals that a
"gratuitous" ARP packet should cause the ISP's router to refresh their
ARP cache (section 4.7). A gratuitous ARP is simply a host
requesting the MAC address for its own IP; in addition to ensuring
that the IP address isn't a duplicate,

"if the host sending the gratuitous ARP has just changed its
hardware address..., this packet causes any other host...that has
an entry in its cache for the old hardware address to update its
ARP cache entry accordingly."

Which is, of course, exactly what you want to do when you switch a
host from being exposed to the Internet to behind Shorewall using
proxy ARP. Happily enough, recent versions of Redhat's iputils package
include "arping", whose "-U" flag does just that:

arping -U -I <net if> <newly proxied IP>
arping -U -I eth0 66.58.99.83 # for example

Stevens goes on to mention that not all systems respond correctly to
gratuitous ARPs, but googling for "arping -U" seems to support the
idea that it works most of the time.

Last edited by rioguia; 06-13-2005 at 02:15 PM.
 
  


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
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 02:39 AM
Smoothwall setup LocoMojo Linux - Security 4 08-13-2005 09:08 PM
smoothwall? carlosinfl Linux - Security 3 06-19-2004 12:26 PM
RedHat gateway setup troubles Gorchi Linux - Networking 3 03-07-2003 04:05 AM
Smoothwall Setup with BroadBand Phantom2002 Linux - Networking 0 08-30-2002 02:53 PM

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

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