• [^] # Re: Re

    Posté par . En réponse au message configuration imprimante réseau. Évalué à 1.

    Je me base sur la doc de cups (voir ci-dessous)

    < Exactement tu pense faire quoi la ?
    une connerie, effectivement

    Rectificatif
    adresse de ma carte réseau 192.168.1.6 sur eth0
    adresse ethernet MAC de l'imprimante 00:80:77:87:01:77

    arp -s 192.168.1.5 00:80:77:87:01:77 -i eth0
    arp -a
    ? (192.168.1.1) at 00:0C:C3:31:DA:29 [ether] on ra0
    ? (192.168.1.5) at 00:80:77:87:01:77 [ether] PERM on eth0

    nmap -P0 192.168.1.5
    Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007年05月13日 23:08 CEST
    Nmap finished: 1 IP address (0 hosts up) scanned in 0.282 seconds

    Impossible de pinguer 192.168.1.5

    DOC CUPS
    Getting the IP Address
    When you first install a network printer or print server on your LAN, you need to set the Internet Protocol ("IP") address. On most higher-end "workgroup" printers, you can set the address through the printer control panel. However, in most cases you will want to assign the addresses remotely from your workstation. This makes administration a bit easier and avoids assigning duplicate addresses accidentally.
    To setup your printer or print server for remote address assignment, you'll need the Ethernet Media Access Control ("MAC") address, also sometimes called a node address, and the IP address you want to use for the device. The Ethernet MAC address can often be found on the printer test page or bottom of the print server.
    Configuring the IP Address Using ARP

    The easiest way to set the IP address of a network device is to use the arp(8) command. The arp sends an Address Resolution Protocol ("ARP") packet to the specified Ethernet MAC address, setting the network device's IP address:

    arp -s ip-address ethernet-address
    arp -s host.domain.com 08:00:69:00:12:34
    arp -s 192.0.2.2 08:00:69:00:12:34