Odgrzeje temat i opisze co robilem.
Nadal jednak mi niedziala arp.
Mam skonfigurowany NND tak :
# Plik konfiguracyjny demona dhcpd
ddns-update-style=ad-hoc;
option domain-name "bloki.konsys.pl";
option domain-name-servers 192.168.0.1, 217.97.237.1, 194.204.152.34, 217.97.237.3;
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 86400;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.4;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
#Siec bloki.konsys.pl
host CyberDuck {
hardware ethernet 00:17:E6:DA:51:CF;
fixed-address 192.168.0.210;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
# /etc/hosts
# Nie usuwaj następnej linii. Wiele programów
# wymaga takiego wpisu do poprawnej pracy.
#ipv6-localhost ipv6-loopback
#::1 Serwer.BlueLan Serwer
127.0.0.1 localhost.localdomain localhost
192.168.0.1 Serwer
192.168.0.210 CyberDuck
# /etc/oidentd_masq.conf
192.168.0.1 Serwer UNIX
192.168.0.210 CyberDuck WINDOWS
Dla skrocenia usunolem niepotrzebne wpisy, ale pozostale wygladaja
identycznie i ma sie rozumiec z innymi wartosciami.
Pozostale zostawilem.
Po wpisaniu arp mam cos takiego :
[root@Serwer ~]# arp
Address HWtype HWaddress Flags Mask Iface
Czarek ether 00:80:48:14:42:59 C eth1
Wilu ether 00:02:44:5C:04:D8 C eth1
CyberDuck (incomplete) eth1
Relains (incomplete) eth1
Angie ether 00:16:E6:DD:51:CF C eth1
RhayaderLap (incomplete) eth1
chello087206122001.chel ether 00:19:A9:EC:F0:01 C eth0
Poldek ether 00:11:09:40:3C:5A C eth1
W /etc/ethers mam tak :
# /etc/ethers
# Plik okresla jakie adresy IP i adresy MAC (adresy fizyczne kart sieciowych)
# maja byc dopuszczone do sieci.
# Nawet pisanie adresu recznie uniemozliwi dostep do sieci oraz
# podszycie sie pod innego uzytkownika
#IP MAC Adres # Nazwa uzytkownika
192.168.0.210 00:16:E6:DD:51:CF # CyberDuck
Probowalem wpisac w rc.local
arp -f
jak i
arp -f /etc/ethers.
Probowalem tez wpisac w rc.conf na koncu DEMONS={... arp} , ale
podczas startu otrzymywalem tylko komunikat o nieudanym starcie
arp zreszta chyba logicznie skoro juz dziala bo po wpisaniu dowolnej
komendy z arp wyskakuja mi komunikaty.
Po wpisaniu w linie komend arp -f otrzymuje :
Usage:
arp [-vn] [<HW>] [-i <if>] [-a] [<hostname>] <-Display ARP cache
arp [-v] [-i <if>] -d <hostname> [pub][nopub] <-Delete ARP entry
arp [-vnD] [<HW>] [-i <if>] -f [<filename>] <-Add entry from file
arp [-v] [<HW>] [-i <if>] -s <hostname> <hwaddr> [temp][nopub] <-Add entry
arp [-v] [<HW>] [-i <if>] -s <hostname> <hwaddr> [netmask <nm>] pub <-''-
arp [-v] [<HW>] [-i <if>] -Ds <hostname> <if> [netmask <nm>] pub <-''-
-a display (all) hosts in alternative (BSD) style
-s, --set set a new ARP entry
-d, --delete delete a specified entry
-v, --verbose be verbose
-n, --numeric don't resolve names
-i, --device specify network interface (e.g. eth0)
-D, --use-device read <hwaddr> from given device
-A, -p, --protocol specify protocol family
-f, --file read new entries from file or from /etc/ethers
<HW>=Use '-H <hw>' to specify hardware address type. Default: ether
List of possible hardware types (which support ARP):
strip (Metricom Starmode IP) ether (Ethernet) tr (16/4 Mbps Token Ring)
tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25) netrom (AMPR NET/ROM)
arcnet (ARCnet) dlci (Frame Relay DLCI) irda (IrLAP)
x25 (generic X.25)
[root@Serwer ~]#
Przy starcie jesli wpisze w rc.local to pokazuje mi sie to samo i nadal
moge sobie wpisac z palca adres IP do konfiguracji sieci i nadal
mam polaczenie z internetem. Co robie nie tak ?