Date: Tue, 05 Aug 2008 00:01:25 -0700 From: perryh@pluto.rain.com To: nvass@teledomenet.gr Cc: keramida@ceid.upatras.gr, freebsd-questions@freebsd.org, derek@computinginnovations.com Subject: Re: setting the other end's TCP segment size Message-ID: <4897fac5.ydNhtLCstlaV4ICe%perryh@pluto.rain.com> In-Reply-To: <200808041620.37610.nvass@teledomenet.gr> References: <488fe865.x7NyNic2A5pcZPCL%perryh@pluto.rain.com> <200807311027.37878.nvass@teledomenet.gr> <48962046.334w0KWDk7nStfQ/%perryh@pluto.rain.com> <200808041620.37610.nvass@teledomenet.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
> 1) create a static ARP entry, this will create an entry to > the routing table i.e. arp -S IPADDR MACADDR > 2) modify the mtu for that destination > i.e. route change IPADDR -mtu MTU Seems to work fine :) One problem with this approach is that a hard-coded MAC address would break if the destination's MAC address changed :( but this can be scripted around by pinging the destination (to ensure that it's up, and get an arp entry "the usual way"), then reading the MAC address from the arp table. d=192.168.200.3 ping -c 1 $d && \ arp -S $d ` arp -n $d | sed -e 's/^.* at //' -e 's/ on .*$//' ` && \ route change $d -mtu 640
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4897fac5.ydNhtLCstlaV4ICe%perryh>