{"id":549,"date":"2019-12-29T16:14:11","date_gmt":"2019-12-29T16:14:11","guid":{"rendered":"http:\/\/labiol.xyz\/?p=549"},"modified":"2020-01-13T12:33:17","modified_gmt":"2020-01-13T12:33:17","slug":"stare-nowe-polecenia-sieciowe-w-linuksie","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2019\/12\/29\/stare-nowe-polecenia-sieciowe-w-linuksie\/","title":{"rendered":"Stare\/nowe polecenia sieciowe w Linuksie."},"content":{"rendered":"\n<p>Obecne dystrybuje linuksa domy\u015blnie nie obs\u0142uguj\u0105 &#8220;starych&#8221;, dobrze znanych polece\u0144 takich jak ifconfig, route, netstat czy arp. Polecenia te nale\u017cy &#8211; je\u015bli kto\u015b chce &#8211; zainstalowa\u0107 z repozytorium. <br>Pytanie, jak to zrobi\u0107, skoro nie dzia\u0142a sie\u0107 i nie opanowali\u015bmy jeszcze &#8220;nowego&#8221; podej\u015bcia do konfiguacji sieci? <br>Poni\u017cej znajdziesz kilka odpowiednik\u00f3w &#8220;starych&#8221; polece\u0144.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"\"><tbody><tr><td>LP<\/td><td>Stare polecenie<\/td><td>Nowe polecenie<\/td><\/tr><tr><td>1<\/td><td><code>route add default gw 192.168.1.1<\/code><\/td><td><code>ip route add default via 192.168.1.1 dev enp1s0<\/code><\/td><\/tr><tr><td>2<\/td><td><code>ip a<\/code><\/td><td><code>ifconfig -a<\/code><\/td><\/tr><tr><td>3<\/td><td><code>netstat<\/code><\/td><td><code>ss<\/code><\/td><\/tr><tr><td><code>3.1<\/code><\/td><td><code>netstat -anp | less<\/code><\/td><td><code>ss -4 state listening | less<\/code><\/td><\/tr><tr><td>4<\/td><td><code>route<\/code><\/td><td><code>ip route<\/code><br><\/td><\/tr><tr><td>5<\/td><td><code>ifconfig eth0 up<\/code><\/td><td><code>ip link set eth0 up<\/code><\/td><\/tr><tr><td>6<\/td><td><code>arp -a<\/code><\/td><td><code>ip -s neigh<\/code><\/td><\/tr><tr><td>7<\/td><td> <code>ifconfig eth0 mtu 9000 <\/code><\/td><td> <code>ip link set eth0 mtu 9000 <\/code><\/td><\/tr><tr><td>8<\/td><td><code>ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up<\/code><\/td><td><code>ip a add 192.168.1.2\/24 dev eth0<\/code> lub <code>ip a add 192.168.1.2\/255.255.255.0 dev eth0<\/code><\/td><\/tr><tr><td>9<\/td><td><code>brctl<\/code><\/td><td><code>ip link<\/code><\/td><\/tr><tr><td>10<\/td><td><code>tunctl<\/code><\/td><td><code>ip tuntap<\/code><\/td><\/tr><tr><td>11<\/td><td> <code>brctl addbr br0 <\/code><\/td><td> <code> ip link add br0 type bridge  <\/code><\/td><\/tr><tr><td>12<\/td><td> <code>brctl addif br0 eth0 <\/code><\/td><td> <code>ip link set eth0 master br0 <\/code><\/td><\/tr><tr><td>13<\/td><td><code>ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up<\/code><\/td><td><code>ip address add 192.168.1.1\/24 dev eth0<\/code> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/vmware.github.io\/photon\/assets\/files\/html\/3.0\/photon_admin\/use-ip-and-ss-commands.html\">https:\/\/vmware.github.io\/photon\/assets\/files\/html\/3.0\/photon_admin\/use-ip-and-ss-commands.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Obecne dystrybuje linuksa domy\u015blnie nie obs\u0142uguj\u0105 &#8220;starych&#8221;, dobrze znanych polece\u0144 takich jak ifconfig, route, netstat czy arp. Polecenia te nale\u017cy &#8211; je\u015bli kto\u015b chce &#8211; zainstalowa\u0107 z repozytorium. Pytanie, jak to zrobi\u0107, skoro nie dzia\u0142a sie\u0107 i nie opanowali\u015bmy jeszcze &#8220;nowego&#8221; podej\u015bcia do konfiguacji sieci? Poni\u017cej znajdziesz kilka odpowiednik\u00f3w &#8220;starych&#8221; &hellip; <\/p>\n","protected":false},"author":1,"featured_media":516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-vmware"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":11,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/549\/revisions\/601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media\/516"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}