[linux] MAC to IP add

Matus UHLAR - fantomas uhlar na fantomas.sk
Středa Leden 28 00:47:43 CET 2004


On 27.01 23:31, M.F. PSIkappa wrote:
> Zdravim, ak vies MAC a si na jednom ethernetovom segmente, tak
> nepotrebujes zistovat IP, spravis si staticky ARP zaznam a dokomunikujes
> sa...
> 
> Cize nieco ako:
> arp -s 192.168.1.100 00:00:00:00:00:00 dev eth0
> 
> alebo v zapise iproute2:
> ip neigh add 192.168.0.100 lladdr 00:00:00:00:00:00 dev eth0
> 
> a potom uz len telnet 192.168.0.100 a je to...

to zalezi od IP stacku danej masiny. Ak porovnava iba ethernet cislo, tak
to zvladne. Ale kazdy slusny IP stack sa este pozrie ci aj IP patri
jemu...

-- 
Matus UHLAR - fantomas, uhlar na fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Have you got anything without Spam in it?
- Well, there's Spam egg sausage and Spam, that's not got much Spam in it.



Další informace o konferenci linux