{"id":2932,"date":"2012-09-25T13:01:40","date_gmt":"2012-09-25T10:01:40","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2932"},"modified":"2018-11-28T14:04:59","modified_gmt":"2018-11-28T12:04:59","slug":"%d0%bc%d0%b5%d0%bd%d1%8f%d0%b5%d0%bc-%d1%81%d0%ba%d0%be%d1%80%d0%be%d1%81%d1%82%d1%8c-%d0%b8-%d0%b4%d1%83%d0%bf%d0%bb%d0%b5%d0%ba%d1%81-%d1%81%d0%b5%d1%82%d0%b5%d0%b2%d0%be%d0%b9-%d0%ba%d0%b0%d1%80","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2932","title":{"rendered":"\u041c\u0435\u043d\u044f\u0435\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u0434\u0443\u043f\u043b\u0435\u043a\u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b"},"content":{"rendered":"<h2><strong><span style=\"color: #0000ff;\">FreeBSD<\/span><\/strong><\/h2>\n<p>\u0427\u0442\u043e \u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre># ifconfig -m nfe0\r\nnfe0: flags=8943&lt;UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500\r\n        options=8210b&lt;RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE&gt;\r\n        capabilities=8210b&lt;RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE&gt;\r\n        ether fa:d5:5e:f7:db:ff\r\n        inet 192.168.1.40 netmask 0xffffff00 broadcast 192.168.1.255\r\n        inet6 fe80::f8d5:5eff:fef7:dbff%nfe0 prefixlen 64 scopeid 0x4\r\n        inet 192.168.0.11 netmask 0xffffff00 broadcast 192.168.0.255\r\n        inet 10.11.11.2 netmask 0xffffff00 broadcast 10.11.11.255\r\n        nd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt;\r\n        media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)\r\n        status: active\r\n        supported media:\r\n                media autoselect mediaopt flowcontrol\r\n                media autoselect\r\n                media 100baseTX mediaopt full-duplex\r\n                media 100baseTX\r\n                media 10baseT\/UTP mediaopt full-duplex\r\n                media 10baseT\/UTP<\/pre>\n<p><!--more--><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0443\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n<p><code># ifconfig nfe0 media 10baseT\/UTP mediaopt full-duplex<\/code><\/p>\n<p>\u0412 <strong>\/etc\/rc.conf<\/strong> \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<p><code>ifconfig_nfe0=\"inet 192.168.0.1 netmask 255.255.255.0 media 10baseT\/UTP mediaopt full-duplex\"<\/code><\/p>\n<h2><strong><span style=\"color: #0000ff;\">OpenBSD<\/span><\/strong><\/h2>\n<p>\u0412\u0441\u0451 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0435\u0439<\/p>\n<pre># ifconfig rl0 media\r\nrl0: flags=8843 mtu 1500\r\n        lladdr 00:50:ba:c0:eb:60\r\n        priority: 0\r\n        media: Ethernet autoselect (100baseTX full-duplex)\r\n        status: active\r\n        supported media:\r\n                media 10baseT\r\n                media 10baseT mediaopt full-duplex\r\n                media 100baseTX\r\n                media 100baseTX mediaopt full-duplex\r\n                media autoselect\r\n        inet 10.25.1.46 netmask 0xfffffffc broadcast 10.25.1.47<\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u0432 <strong>\/etc\/hostname.rl0<\/strong> \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c.<\/p>\n<h2><strong><span style=\"color: #0000ff;\">Linux<\/span><\/strong><\/h2>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0442, \u0437\u0430\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b <strong>ethtool, mii-diag(mii-tool)<\/strong>. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442:<\/p>\n<p><code># mii-tool -v eth0<br \/>\neth0: no autonegotiation, 1000baseT-FD flow-control, link ok<br \/>\nproduct info: Yukon 88E1011 rev 4<br \/>\nbasic mode: autonegotiation enabled<br \/>\nbasic status: autonegotiation complete, link ok<br \/>\ncapabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD<br \/>\nadvertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control<br \/>\nlink partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD<br \/>\n#mii-tool -F 10baseT-FD eth0<\/code><\/p>\n<pre># ethtool eth0\r\nSettings for eth0:\r\n        Supported ports: [ TP ]\r\n        Supported link modes:   10baseT\/Half 10baseT\/Full\r\n                                100baseT\/Half 100baseT\/Full\r\n                                1000baseT\/Full\r\n        Supports auto-negotiation: Yes\r\n        Advertised link modes:  10baseT\/Half 10baseT\/Full\r\n                                100baseT\/Half 100baseT\/Full\r\n                                1000baseT\/Full\r\n        Advertised pause frame use: No\r\n        Advertised auto-negotiation: Yes\r\n        Speed: 1000Mb\/s\r\n        Duplex: Full\r\n        Port: Twisted Pair\r\n        PHYAD: 0\r\n        Transceiver: internal\r\n        Auto-negotiation: on\r\n        MDI-X: Unknown\r\n        Supports Wake-on: umbg\r\n        Wake-on: d\r\n        Current message level: 0x00000007 (7)\r\n        Link detected: yes\r\n#ethtool -s eth0 speed 10 duplex full autoneg off<\/pre>\n<p>\u041e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0432\u044b\u0434\u0430\u043b\u043e, \u043d\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c (\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439). \u0415\u0441\u043b\u0438 2-\u043c \u0440\u0430\u0437\u043d\u044b\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0437\u043d\u0430\u0447\u0438\u0442 \u0434\u0435\u043b\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u0435.<\/p>\n<h2><strong><span style=\"color: #0000ff;\">Solaris 10<\/span><\/strong><\/h2>\n<p>\u0423\u0437\u043d\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0440\u0435\u0436\u0438\u043c\u044b:<\/p>\n<pre># ndd \/dev\/hme \\? | grep '(read and write)'\r\nadv_autoneg_cap               (read and write)\r\nadv_1000fdx_cap               (read and write)\r\nadv_1000hdx_cap               (read and write)\r\nadv_100fdx_cap                (read and write)\r\nadv_100hdx_cap                (read and write)\r\nadv_10fdx_cap                 (read and write)\r\nadv_10hdx_cap                 (read and write)\r\ntx_bcopy_threshold            (read and write)\r\ntx_interrupt_enable           (read and write)\r\ntx_intr_delay                 (read and write)\r\ntx_intr_abs_delay             (read and write)\r\nrx_bcopy_threshold            (read and write)\r\nmax_num_rcv_packets           (read and write)\r\nrx_intr_delay                 (read and write)\r\nrx_intr_abs_delay             (read and write)\r\nintr_throttling_rate          (read and write)\r\nintr_adaptive                 (read and write)<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 <strong>ndd<\/strong> \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:<\/p>\n<p><code>#ndd -get \/dev\/bge ?<br \/>\noperation failed, Invalid argument<\/code><\/p>\n<p>\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 <strong>kstat<\/strong>:<\/p>\n<pre>$ kstat -p | grep bge | grep adv_cap_10\r\nbge:0:mac:adv_cap_1000fdx       1\r\nbge:0:mac:adv_cap_1000hdx       1\r\nbge:0:mac:adv_cap_100fdx        1\r\nbge:0:mac:adv_cap_100hdx        1\r\nbge:0:mac:adv_cap_10fdx 1\r\nbge:0:mac:adv_cap_10hdx 1\r\nbge:0:mii:adv_cap_1000fdx       1\r\nbge:0:mii:adv_cap_1000hdx       1\r\nbge:0:mii:adv_cap_100fdx        1\r\nbge:0:mii:adv_cap_100hdx        1\r\nbge:0:mii:adv_cap_10fdx 1\r\nbge:0:mii:adv_cap_10hdx 1<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430:<\/p>\n<p><code>ndd \/dev\/hme link_mode<br \/>\n0 = half duplex, 1 = full duplex<\/code><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>full duplex<\/strong>:<\/p>\n<p><code>ndd -sec \/dev\/hme adv_100fdx_cap<br \/>\nndd -set \/dev\/hme adv_autoneg_cap 0<\/code><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>half duplex<\/strong>:<\/p>\n<p><code>ndd -sec \/dev\/hme adv_100hdx_cap<br \/>\nndd -set \/dev\/hme adv_autoneg_cap 0<\/code><\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0435\u0449\u0451 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<p><code># ndd \/dev\/bge0 link_duplex<br \/>\n2<br \/>\n# ndd \/dev\/bge0 link_autoneg<br \/>\n1<br \/>\n# ndd \/dev\/bge0 link_status<br \/>\n1<br \/>\n# ndd \/dev\/bge0 link_speed<br \/>\n1000<\/code><\/p>\n<h2><strong><span style=\"color: #0000ff;\">Solaris 11<\/span><\/strong><\/h2>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/p>\n<pre># dladm show-phys\r\nLINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE\r\nnet0              Ethernet             up         1000   full      e1000g0<\/pre>\n<p>\u0423\u0437\u043d\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0440\u0435\u0436\u0438\u043c\u044b:<\/p>\n<pre># ndd \/dev\/e1000g0 \\? | grep '(read and write)'\r\nadv_autoneg_cap               (read and write)\r\nadv_1000fdx_cap               (read and write)\r\nadv_1000hdx_cap               (read and write)\r\nadv_100fdx_cap                (read and write)\r\nadv_100hdx_cap                (read and write)\r\nadv_10fdx_cap                 (read and write)\r\nadv_10hdx_cap                 (read and write)\r\ntx_bcopy_threshold            (read and write)\r\ntx_interrupt_enable           (read and write)\r\ntx_intr_delay                 (read and write)\r\ntx_intr_abs_delay             (read and write)\r\nrx_bcopy_threshold            (read and write)\r\nmax_num_rcv_packets           (read and write)\r\nrx_intr_delay                 (read and write)\r\nrx_intr_abs_delay             (read and write)\r\nintr_throttling_rate          (read and write)\r\nintr_adaptive                 (read and write)<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/p>\n<p><code># ndd -set \/dev\/e1000g0 adv_autoneg_cap 0<br \/>\n# ndd -set \/dev\/e1000g0 adv_100fdx_cap 1<\/code><\/p>\n<p>\u0430 \u0442\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c 0 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432:<\/p>\n<p><code># ndd -set \/dev\/e1000g0 adv_1000fdx_cap 0<br \/>\n# ndd -set \/dev\/e1000g0 adv_100hdx_cap 0<br \/>\n# ndd -set \/dev\/e1000g0 adv_10fdx_cap 0<br \/>\n# ndd -set \/dev\/e1000g0 adv_10hdx_cap 0<\/code><\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432 <strong>\/etc\/system<\/strong><\/p>\n<p><code>set e1000g:adv_autoneg_cap=0<br \/>\nset e1000g:adv_100fdx_cap=1<br \/>\nset e1000g:adv_1000fdx_cap=0<br \/>\nset e1000g:adv_100hdx_cap=0<br \/>\nset e1000g:adv_10fdx_cap=0<br \/>\nset e1000g:adv_10hdx_cap=0<\/code><\/p>\n<p>\u041d\u043e\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<p><code># dladm set-linkprop -p mtu=9706 net0<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD \u0427\u0442\u043e \u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443: # ifconfig -m nfe0 nfe0: flags=8943&lt;UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500 options=8210b&lt;RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE&gt; capabilities=8210b&lt;RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE&gt; ether fa:d5:5e:f7:db:ff inet 192.168.1.40 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::f8d5:5eff:fef7:dbff%nfe0 prefixlen 64 scopeid 0x4 inet 192.168.0.11 netmask 0xffffff00 broadcast 192.168.0.255 inet 10.11.11.2 netmask 0xffffff00 broadcast 10.11.11.255 nd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt; media: Ethernet autoselect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,25,24],"tags":[],"class_list":["post-2932","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux","category-openbsd","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2932"}],"version-history":[{"count":10,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions"}],"predecessor-version":[{"id":5523,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions\/5523"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}