///////////////////////
прописываю вручную адреса. мой машрутизатор как я понял по адресу 192.168.0.102, его узнал когда подключил кабель ethernet и ввел ifconfig, вот он:
Код: Выделить всё
$ ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether bc:5f:f4:68:4a:e6
inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
$
Код: Выделить всё
wlans_rsu0="wlan0"
ifconfig_wlan0="WPA inet 192.168.0.102 netmask 255.255.255.255 broadcast
192.168.0.255"
Код: Выделить всё
$ arp -n -i wlan0 192.168.0.102
? (192.168.0.102) at 00:14:d1:d6:28:33 on wlan0 permanent [ethernet]
route default маршрут задан:
Код: Выделить всё
root@localhost:/usr/home/minimatronik # netstat -r -n
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.0.1 UGS re0
127.0.0.1 link#2 UH lo0
192.168.0.0/24 link#1 U re0
192.168.0.102 link#4 UHS lo0
192.168.0.102/32 link#4 U wlan0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#2 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#2 U lo0
fe80::1%lo0 link#2 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
root@localhost:/usr/home/minimatronik #
Код: Выделить всё
root@localhost:/usr/home/minimatronik # netstat -i
Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll
re0 1500 <Link#1> bc:5f:f4:68:4a:e6 945 0 0 741 0 0
re0 - 192.168.0.0 192.168.0.102 487 - - 374 - -
lo0 16384 <Link#2> 196 0 0 196 0 0
lo0 - localhost ::1 94 - - 94 - -
lo0 - fe80::1%lo0 fe80::1%lo0 0 - - 0 - -
lo0 - your-net localhost 64 - - 68 - -
rsu0 2290 <Link#3> 00:14:d1:d6:28:33 0 0 0 283 0 0
wlan0 1500 <Link#4> 00:14:d1:d6:28:33 3 0 0 2 0 0
wlan0 - 192.168.0.102 192.168.0.102 0 - - 0 - -
root@localhost:/usr/home/minimatronik #
Код: Выделить всё
root@localhost:/usr/home/minimatronik # cat /var/db/dhclient.leases.wlan0
lease {
interface "wlan0";
fixed-address 192.168.0.62;
next-server 192.168.0.1;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name-servers 8.8.8.8,8.8.4.4;
option host-name "localhost";
option domain-name "Dlink";
option broadcast-address 192.168.0.255;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.0.1;
option dhcp-renewal-time 43200;
option dhcp-rebinding-time 75600;
renew 4 2014/11/20 11:00:46;
rebind 4 2014/11/20 20:00:46;
expire 4 2014/11/20 23:00:46;
}
lease {
interface "wlan0";
fixed-address 192.168.0.63;
next-server 192.168.0.1;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name-servers 8.8.8.8,8.8.4.4;
option host-name "localhost";
option domain-name "Dlink";
option broadcast-address 192.168.0.255;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.0.1;
option dhcp-renewal-time 43200;
option dhcp-rebinding-time 75600;
renew 5 2014/11/21 08:17:31;
rebind 5 2014/11/21 17:17:31;
expire 5 2014/11/21 20:17:31;
}
lease {
interface "wlan0";
fixed-address 192.168.0.105;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option dhcp-lease-time 7200;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.0.1;
renew 4 2014/11/20 21:38:15;
rebind 4 2014/11/20 22:23:15;
expire 4 2014/11/20 22:38:15;
}
root@localhost:/usr/home/minimatronik #