{"id":112,"date":"2022-05-03T10:28:00","date_gmt":"2022-05-03T08:28:00","guid":{"rendered":"http:\/\/www.tomnem.cz\/wordpress\/?p=112"},"modified":"2022-05-03T10:28:00","modified_gmt":"2022-05-03T08:28:00","slug":"nastaveni-bridge-karty-linux-ubuntu-2","status":"publish","type":"post","link":"https:\/\/tomnem.cz\/wordpress\/index.php\/2022\/05\/03\/nastaveni-bridge-karty-linux-ubuntu-2\/","title":{"rendered":"Nastaven\u00ed bridge karty Linux Ubuntu"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Ve verz\u00edch Ubuntu od 18.04 se pou\u017e\u00edv\u00e1 pro nastaven\u00ed s\u00ed\u0165ov\u00e9ho bridge n\u00e1stroj NetPlan. Pro pou\u017eit\u00ed uprav\u00edme soubor.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/netplan\/00-installer-config.yaml<\/pre>\n\n\n\n<p>P\u0159id\u00e1me novou sekci bridges a nastav\u00edme podle vzoru. Vzor plat\u00ed pro verze 18.04 a 20,04.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">network:\n&nbsp;ethernets:\n&nbsp;&nbsp;&nbsp;enp0s3:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dhcp4: no\n&nbsp;bridges:\n&nbsp;&nbsp;&nbsp;br0:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- 192.168.0.41\/24\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gateway4: 192.168.0.1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nameservers:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- 192.168.0.50\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;search:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- domov.test\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interfaces:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- enp0s3\n&nbsp;version: 2\n<\/pre>\n\n\n\n<p>Pro ubuntu 22.04 p\u0159i\u0161lo n\u011bkolik zm\u011bn v konfigurac\u00ed s\u00ed\u0165ov\u00e9ho rozhran\u00ed. Nov\u00e1 definice rozhran\u00ed odstra\u0148uje polo\u017eku gateway4 a p\u0159id\u00e1v\u00e1 sekci routes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># This is the network config written by 'subiquity'\nnetwork:\n  ethernets:\n    enp0s3:\n      dhcp4: no\n  bridges:\n    br0:\n      addresses:\n      - 192.168.0.30\/24\n      nameservers:\n        addresses:\n        - 192.168.0.50\n        search:\n        - domov.local\n      routes:\n        - to: default\n          via: 192.168.0.1\n      interfaces:\n        - enp0s3\n  version: 2\n<\/pre>\n\n\n\n<p>Pro aktivaci zm\u011bn pou\u017eijeme p\u0159\u00edkaz s kontrolou lad\u011bn\u00ed .<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">netplan --debug apply<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ve verz\u00edch Ubuntu od 18.04 se pou\u017e\u00edv\u00e1 pro nastaven\u00ed s\u00ed\u0165ov\u00e9ho bridge n\u00e1stroj NetPlan. Pro pou\u017eit\u00ed uprav\u00edme soubor. \/etc\/netplan\/00-installer-config.yaml P\u0159id\u00e1me novou sekci bridges a nastav\u00edme podle vzoru. Vzor plat\u00ed pro verze 18.04 a 20,04. network: &nbsp;ethernets: &nbsp;&nbsp;&nbsp;enp0s3: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dhcp4: no &nbsp;bridges: &nbsp;&nbsp;&nbsp;br0: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211; 192.168.0.41\/24 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gateway4: 192.168.0.1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nameservers: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211; 192.168.0.50 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;search: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211; domov.test &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interfaces: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211; enp0s3 &hellip;<br \/><a href=\"https:\/\/tomnem.cz\/wordpress\/index.php\/2022\/05\/03\/nastaveni-bridge-karty-linux-ubuntu-2\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Pokra\u010dovat ve\u00a0\u010dten\u00ed <span class=\"screen-reader-text\">Nastaven\u00ed bridge karty Linux Ubuntu<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/112"}],"collection":[{"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomnem.cz\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}