{"id":753,"date":"2019-12-06T00:07:02","date_gmt":"2019-12-06T08:07:02","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=753"},"modified":"2019-12-06T00:07:02","modified_gmt":"2019-12-06T08:07:02","slug":"freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/","title":{"rendered":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI"},"content":{"rendered":"<p>I was having issues getting this working initially. I came to find out that the Mellanox ConnectX-3 adapter I was using had a driver fault that made this not work. I got a CHELSIO CC2-N320E-SR instead and it worked fine. If this does not work, it might be a driver issue. This post is more of a PSA than a how-to, as its pretty easy.<\/p>\n<p>&nbsp;<\/p>\n<p>Save the following (but replace the adapter names and IP with what you want) to somewhere as a .sh file<\/p>\n<pre>#!\/bin\/sh\r\nifconfig bridge create\r\nsleep 1\r\nifconfig bridge0 addm nic1 addm nic2 up\r\nifconfig nic1 up\r\nifconfig nic2 up\r\nifconfig bridge0 inet ipaddress\/cidr\r\nifconfig nic1 mtu 9000\r\nifconfig nic2 mtu 9000\r\nifconfig bridge0 mtu 9000\r\nsleep 5 \r\nservice ctld stop \r\nsleep 1\r\nservice ctld reload\r\nsleep 1\r\nservice ctld start<\/pre>\n<p>On the FreeNAS web interface, go to tasks &gt; init\/shutdown scripts and click add.<\/p>\n<p>Set the type as command, the command to &#8220;sh \/path\/to\/your\/script.sh&#8221;, and when to post init.<\/p>\n<p>&nbsp;<\/p>\n<p>Now it will boot and run the script to setup the bridge and start ISCSI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was having issues getting this working initially. I came to find out that the Mellanox ConnectX-3 adapter I was using had a driver fault that made this not work. I got a CHELSIO CC2-N320E-SR instead and it worked fine. If this does not work, it might be a driver issue. This post is more <br \/><a class=\"read-more-button\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[172,173],"tags":[176,177,178,179],"coauthors":[39],"class_list":["post-753","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-freenas","tag-freebsd","tag-freenas","tag-iscsi","tag-network-bridge"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"I was having issues getting this working initially. I came to find out that the Mellanox ConnectX-3 adapter I was using had a driver fault that made this not work. I got a CHELSIO CC2-N320E-SR instead and it worked fine. If this does not work, it might be a driver issue. This post is more Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-06T08:07:02+00:00\" \/>\n<meta name=\"author\" content=\"Ryan Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/\"},\"author\":{\"name\":\"Ryan Parker\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"headline\":\"Freenas \\\/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI\",\"datePublished\":\"2019-12-06T08:07:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/\"},\"wordCount\":150,\"commentCount\":0,\"keywords\":[\"FreeBSD\",\"FreeNAS\",\"ISCSI\",\"Network Bridge\"],\"articleSection\":[\"FreeBSD\",\"FreeNAS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/\",\"name\":\"Freenas \\\/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2019-12-06T08:07:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/12\\\/grassyloki\\\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Freenas \\\/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\",\"name\":\"Ryan Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"caption\":\"Ryan Parker\"},\"description\":\"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/grassyloki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins","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":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/","og_locale":"en_US","og_type":"article","og_title":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins","og_description":"I was having issues getting this working initially. I came to find out that the Mellanox ConnectX-3 adapter I was using had a driver fault that made this not work. I got a CHELSIO CC2-N320E-SR instead and it worked fine. If this does not work, it might be a driver issue. This post is more Read More &raquo;","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/","og_site_name":"Angry Sysadmins","article_published_time":"2019-12-06T08:07:02+00:00","author":"Ryan Parker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ryan Parker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/"},"author":{"name":"Ryan Parker","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"headline":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI","datePublished":"2019-12-06T08:07:02+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/"},"wordCount":150,"commentCount":0,"keywords":["FreeBSD","FreeNAS","ISCSI","Network Bridge"],"articleSection":["FreeBSD","FreeNAS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/","name":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2019-12-06T08:07:02+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/12\/grassyloki\/freenas-freebsd-bridge-2-nics-together-with-1-ip-address-for-use-with-iscsi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"Freenas \/ FreeBSD: Bridge 2 NICs Together with 1 IP Address for Use with ISCSI"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199","name":"Ryan Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d","url":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","caption":"Ryan Parker"},"description":"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/grassyloki\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":3,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/753\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=753"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}