{"id":480,"date":"2009-12-19T19:00:31","date_gmt":"2009-12-19T17:00:31","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=480"},"modified":"2021-10-15T20:59:22","modified_gmt":"2021-10-15T18:59:22","slug":"bridge-startup-script","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html","title":{"rendered":"Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts"},"content":{"rendered":"\n<p>All systems need bridge-utils package installed either with yum or apt-get.<br>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Redhat \/ Fedora<\/h3>\n\n\n\n<p>Edit each network interface startup file that is going to be added to the bridge<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">[root@redhat ~]$ cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\nDEVICE=eth0\nHWADDR=00:C0:4F:44:41:8A\nONBOOT=yes\nBRIDGE=br0<\/code><\/pre>\n\n\n\n<p>&nbsp;<br>And create the bridge configuration file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">[root@redhat ~]$ cat \/etc\/sysconfig\/network-scripts\/ifcfg-br0\nDEVICE=br0\nTYPE=Bridge\nBOOTPROTO=static\nBROADCAST=192.168.0.255\nIPADDR=192.168.0.100\nNETMASK=255.255.255.0\nNETWORK=192.168.0.0\nONBOOT=yes\nUSERCTL=no\nIPV6INIT=no\nPEERDNS=no\nONBOOT=yes\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><br>Ubuntu<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">root@ubuntu:~$ cat \/etc\/network\/interfaces\n# The loopback network interface\nauto lo\niface lo inet loopback\n\nauto br0\niface br0 inet static\n        address 192.168.0.100\n        netmask 255.255.255.0\n        network 192.168.0.0\n        broadcast 192.168.0.255\n        pre-up ifconfig eth1 down\n        pre-up brctl addbr br0\n        pre-up brctl addif br0 eth0\n        pre-up brctl addif br0 eth1\n        pre-up ifconfig eth0 0.0.0.0\n        pre-up ifconfig eth1 0.0.0.0\n        post-down ifconfig eth0 down\n        post-down ifconfig eth1 down\n        post-down ifconfig br0 down\n        post-down brctl delif br0 eth0\n        post-down brctl delif br0 eth1\n        post-down brctl delbr br0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><br>Debian<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">root@debian:~$ cat \/etc\/network\/interfaces\niface eth0 inet manual\n\niface eth1 inet manual\n\n # Bridge setup\n iface br0 inet static\n        bridge_ports eth0 eth1\n        address 192.168.0.100\n        broadcast 192.168.0.255\n        netmask 255.255.255.0\n        gateway 192.168.0.1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>All systems need bridge-utils package installed either with yum or apt-get.&nbsp; Redhat \/ Fedora Edit each network interface startup file that is going to be added to the bridge &nbsp;And create the bridge configuration file Ubuntu Debian<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11],"tags":[169,94,386,99,76,170],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts\" \/>\n<meta property=\"og:description\" content=\"All systems need bridge-utils package installed either with yum or apt-get.&nbsp; Redhat \/ Fedora Edit each network interface startup file that is going to be added to the bridge &nbsp;And create the bridge configuration file Ubuntu Debian\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2009-12-19T17:00:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-15T18:59:22+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html\",\"name\":\"Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2009-12-19T17:00:31+00:00\",\"dateModified\":\"2021-10-15T18:59:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts","og_description":"All systems need bridge-utils package installed either with yum or apt-get.&nbsp; Redhat \/ Fedora Edit each network interface startup file that is going to be added to the bridge &nbsp;And create the bridge configuration file Ubuntu Debian","og_url":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html","og_site_name":"Netexpertise","article_published_time":"2009-12-19T17:00:31+00:00","article_modified_time":"2021-10-15T18:59:22+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html","url":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html","name":"Netexpertise - Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2009-12-19T17:00:31+00:00","dateModified":"2021-10-15T18:59:22+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/bridge-startup-script.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Redhat\/Ubuntu\/Debian Bridge Interface Startup Scripts"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/en\/#website","url":"https:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/480"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}