[Leaf-user] Static ARP table in 2.4 linux kernel.
Hello, Have a problem with static MAC-IP mappings. I need to create the static ARP table, load it into the kernel and work only with static mappings. I'm able to create the table (/etc/ethers), load it to the kernel (arp -f /etc/ethers) and everythingworks fine but linux continues to add dynamic entries to ARP table. If I switching off arp frp eth0 interface (ifconfig eth0 -arp), IP stops works even if static arp table still exists (arp -n -a prints out the table). Any advices how to do that? Kernel version is 2.4.9. Thanks in advance, Dmitri. ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
[Leaf-user] Static ARP table in 2.4 linux kernel.
Hi again, Part II. If ARP required for operation (e.g. other host should get MAC of this linux-box) how to tell ARP to stop collecting dynammic ARP entries or what else to do to freeze the arp table? Thanks, Dmitri. ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Static ARP table in 2.4 linux kernel.
> Have a problem with static MAC-IP mappings. I need to create the static ARP > table, load it into the kernel and work only with static mappings. I'm able > to create the table (/etc/ethers), load it to the kernel (arp -f > /etc/ethers) and everythingworks fine but linux continues to add dynamic > entries to ARP table. If I switching off arp frp eth0 interface (ifconfig > eth0 -arp), IP stops works even if static arp table still exists (arp -n -a > prints out the table). > > Any advices how to do that? Kernel version is 2.4.9. I haven't had need to try this, but I think all you need to do is modify the command that brings up the link. See the iproute2 command documentation, but the "ip link set" command will take "arp off" and "dynamic off" as options, along with several other link parameters...this (maybe combined with a kernel /proc option or two) will probably do what you want. # ip link help Usage: ip link set DEVICE { up | down | arp { on | off } | dynamic { on | off } | multicast { on | off } | txqueuelen PACKETS | name NEWNAME | address LLADDR | broadcast LLADDR | mtu MTU } ip link show [ DEVICE ] Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Static ARP table in 2.4 linux kernel.
ip link set is able to switch arp off (that we don't need, because it is need to staticly add MAC address of this host in all other hosts - inpossible). and dynamic off as far as I understhood has no linked to MAC address resolution, it tells the kernel, taht interface can by up/down dynaicly (don't understand what it means) Need to tell ARP daemon (engine) to switch off the dynamic resolution. So ARP should be enabled and it should answer the queries taht asks for this host addresses (in other case need to write this host MAC/IP pair on each host on a network) but should add to ARP cache nothing, use only static entries. I'm clearly understant how it should work but don't know how to do it. Please help. Dmitri. - Original Message - From: "Charles Steinkuehler" <[EMAIL PROTECTED]> To: "Dmitri Gofmekler" <[EMAIL PROTECTED]>; "LEAF User List" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 4:38 AM Subject: Re: [Leaf-user] Static ARP table in 2.4 linux kernel. > > Have a problem with static MAC-IP mappings. I need to create the static > ARP > > table, load it into the kernel and work only with static mappings. I'm > able > > to create the table (/etc/ethers), load it to the kernel (arp -f > > /etc/ethers) and everythingworks fine but linux continues to add dynamic > > entries to ARP table. If I switching off arp frp eth0 interface (ifconfig > > eth0 -arp), IP stops works even if static arp table still exists > (arp -n -a > > prints out the table). > > > > Any advices how to do that? Kernel version is 2.4.9. > > I haven't had need to try this, but I think all you need to do is modify the > command that brings up the link. See the iproute2 command documentation, > but the "ip link set" command will take "arp off" and "dynamic off" as > options, along with several other link parameters...this (maybe combined > with a kernel /proc option or two) will probably do what you want. > > # ip link help > Usage: ip link set DEVICE { up | down | arp { on | off } | > dynamic { on | off } | > multicast { on | off } | txqueuelen PACKETS | > name NEWNAME | > address LLADDR | broadcast LLADDR | > mtu MTU } >ip link show [ DEVICE ] > > Charles Steinkuehler > http://lrp.steinkuehler.net > http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) > > > > > ___ > Leaf-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-user > > ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user