hugo daily push 2018-11-30 22:00:01

master
Eric Chang 7 years ago
parent 4dfc86a448
commit 72c301acf3

@ -0,0 +1,182 @@
---
title: "[筆記] 用 proxmox & Mellanox SFP 網卡土炮 10G LAB "
date: 2018-11-30T16:05:14+08:00
noSummary: false
featuredImage: "https://h.cowbay.org/images/post-default-03.jpg"
categories: ['筆記']
tags: ['10G','筆記','mellanox']
author: "Eric Chang"
---
想做一個 10G 的 LAB 環境出來已經很久了。
只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜
如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)
所以一直沒有付諸行動。
硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)
聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位
就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線
就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到
今天就花了點時間測試一下
<!--more-->
先上個圖!
![10G LAB](https://i.imgur.com/34MNFkW.png)
簡單說,就是有兩台機器,分別安裝 proxmox (一台是新裝的另一台是本來就在線上的LAB用機器)以及光纖網卡
Mellanox 這張 X2 的卡, proxmox 5.1 / 5.2 可以直接抓到,所以不必另外安裝驅動程式
硬體安裝很順利,不過軟體的設定就碰到點麻煩了,所以才想說作個筆記..
### <strong>必須作 vmbridge 才能指定這個網卡給VM用 </strong>
安裝好網卡開機透過proxmox的WEB界面設定好網卡的資料後原本以為可以直接使用了
但是proxmox 會提示需要重新開機才能變更設定
可是重新開機後我兩台怎麼都ping不到對方
在這之前,我已經用兩台 ubuntu 18.04 client 測試過了只要設定好IP就可以直接通
所以在這邊碰到這個問題,我滿訝異的
可是看網卡的燈號,明明就有亮起來,應該是正常的呀
原來在proxmox 中,新增了網卡,並不是直接就可以拿來用
要先設定好 bridge 然後才能起新的VM、指定新設定的 vmbridge 給這個新起的機器使用
### <strong>Disk Cache type 要改</strong>
設定了新的 vmbridge 之後就可以在新VM的設定畫面中指定網卡走這個界面出去
可是這樣做出來的VM ,一直無法開機
錯誤訊息如下
```
kvm: -drive file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on: file system may not support O_DIRECT
kvm: -drive file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on: Could not open '/zp/images/100/vm-100-disk-1.qcow2': Invalid argument
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -name 123123 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=da27a9ea-fd55-4542-b2a7-8d5b09bf7611' -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/100.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 2048 -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:b972d1ad783' -drive 'file=/zp/template/iso/ubuntu-18.04.1-live-server-amd64.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=A2:EA:45:EE:17:25,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
```
當然先去拜google果然就看到了提示需要把 磁碟的 Cache 從預設的 Default(No Cache) 改成 write through
![proxmox dish cache mode](https://i.imgur.com/cmClmGd.png)
為什麼?我也不知道..不知道是不是因為我把磁碟種類選成用 Virtio Block 的關係
總之呢,改完之後就可以了 ...
### 必須手動設定路由
設定好新的VM開機、設定IP、重開機之後會發現還是ping 不到另一台機器..(翻桌!)
只好又去拜google ,就看到了底下這篇
https://forum.proxmox.com/threads/how-to-add-second-nic.40905/
大概點出了方向,必須要手動增加路由(感覺有點蠢)
像我的光纖網卡走的是 192.168.50.0/24 就要去把原有的192.168.50.0/24的路由給砍掉然後再新增(是不是很蠢?)
```
root@ssd:/etc/network# ip route del 192.168.50.0/24
root@ssd:/etc/network# ip route add 192.168.50.0/24 dev vmbr1
root@ssd:/etc/network# ip route
default via 192.168.11.253 dev vmbr0 onlink
192.168.11.0/24 dev vmbr0 proto kernel scope link src 192.168.11.215
192.168.50.0/24 dev vmbr1 scope link
root@ssd:/etc/network#
```
OK ping 一下對面看能不能過
```
root@ssd:/etc/network# ping 192.168.50.10
PING 192.168.50.10 (192.168.50.10) 56(84) bytes of data.
64 bytes from 192.168.50.10: icmp_seq=1 ttl=64 time=0.083 ms
64 bytes from 192.168.50.10: icmp_seq=2 ttl=64 time=0.067 ms
64 bytes from 192.168.50.10: icmp_seq=3 ttl=64 time=0.080 ms
64 bytes from 192.168.50.10: icmp_seq=4 ttl=64 time=0.126 ms
^C
--- 192.168.50.10 ping statistics ---
```
GOOD !很好!通了一邊,另外一邊就照辦,兩邊都通了,就可以開始來測試速度了
p.s 這個路由不知道需不需要每次都手動增加或者是有哪個config可以在開機時載入
沒記錯的話,應該是在 /etc/network/if-up.d/ 新增一個 route 檔案
不過這部份我不是很確定就是了
所以自己寫了一個 script 來用..
### <strong>iperf 測試速度</strong>
在linux 上,我習慣用 iperf 來測試兩台主機的連接速度
兩邊都用 apt install iperf 裝好套件
然後找一台作為 server ,執行
```
iperf -s
```
然後到另一台,去執行
```
2018-11-30 15:36:58 [minion@ubuntu ~]$ iperf -d -t 600 -P 10 -c 192.168.50.200
WARNING: option -d is not valid for server mode
------------------------------------------------------------
Client connecting to 192.168.50.200, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.50.199 port 40980 connected with 192.168.50.200 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-600.0 sec 641 GBytes 9.18 Gbits/sec
```
哈哈哈,有目有!測試速度來到了 9.18 Gbits 啊! 就是一個爽啊!
記得那個 server IP 是你 VM 裡面設定的 IP不是 proxmox 上面的
同場加映走 1Gb 網路的測試結果
```
2018-11-30 16:39:37 [minion@ubuntu ~]$ iperf -d -t 600 -P 10 -c 192.168.11.171
WARNING: option -d is not valid for server mode
------------------------------------------------------------
Client connecting to 192.168.11.171, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.11.55 port 38582 connected with 192.168.11.171 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-600.0 sec 65.8 GBytes 941 Mbits/sec
```
192.168.11.171 跟 192.168.50.200 是同一台機器只是一個是10G網卡一個是onboard的 1Gb 網卡
速度果然是提高了十倍呀,果然就是一個爽啊!!
![](https://www.clipartmax.com/png/small/217-2175589_oh-yeah.png)

@ -79,13 +79,13 @@ update: 2018/11/19
兩台都ping不到對方
![ping不到](http://i.imgur.com/gSD086o.png)
![ping不到](https://i.imgur.com/gSD086o.png)
什麼事也沒做就是把ping中斷然後再ping 一次,居然就可以了
![又ping到了](http://i.imgur.com/rvtw0hh.png)
![又ping到了](https://i.imgur.com/rvtw0hh.png)
##真他X的詭異啊

@ -115,6 +115,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -139,10 +143,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -153,7 +153,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -90,6 +90,99 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/">
@ -886,6 +979,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -910,10 +1007,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -924,7 +1017,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -5,11 +5,38 @@
<link>https://h.cowbay.org/author/eric-chang/</link>
<description>Recent content in Eric Chang on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 29 Nov 2018 11:22:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/author/eric-chang/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 還是 Ansible Selectattr </title>
<link>https://h.cowbay.org/post/ansible-selectattr-filter/</link>

@ -101,7 +101,7 @@
<hr>
<ul id="all-categories">
<li><a href="/author/eric-chang">Eric chang (9)</a></li>
<li><a href="/author/eric-chang">Eric chang (10)</a></li>
</ul>
</div>
@ -120,6 +120,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -144,10 +148,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -158,7 +158,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -12,7 +12,7 @@
<item>
<title>Eric Chang</title>
<link>https://h.cowbay.org/author/eric-chang/</link>
<pubDate>Thu, 29 Nov 2018 11:22:28 +0800</pubDate>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/author/eric-chang/</guid>
<description></description>

@ -103,7 +103,7 @@
<li><a href="/categories/ps">Ps (1)</a></li>
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a></li>
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a></li>
</ul>
</div>
@ -122,6 +122,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -146,10 +150,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -160,7 +160,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -21,7 +21,7 @@
<item>
<title>筆記</title>
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<pubDate>Thu, 29 Nov 2018 11:22:28 +0800</pubDate>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</guid>
<description></description>

@ -179,6 +179,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -203,10 +207,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -90,6 +90,99 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/">
@ -818,6 +911,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -842,10 +939,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -856,7 +949,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -5,11 +5,38 @@
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<description>Recent content in 筆記 on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 29 Nov 2018 11:22:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 還是 Ansible Selectattr </title>
<link>https://h.cowbay.org/post/ansible-selectattr-filter/</link>

@ -2,6 +2,11 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</loc>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
</url>
<url>
<loc>https://h.cowbay.org/post/ansible-selectattr-filter/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
@ -47,6 +52,12 @@
<lastmod>2018-11-05T07:46:53+08:00</lastmod>
</url>
<url>
<loc>https://h.cowbay.org/tags/10g/</loc>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://h.cowbay.org/tags/ansible/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
@ -103,7 +114,7 @@
<url>
<loc>https://h.cowbay.org/author/eric-chang/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>
@ -127,7 +138,7 @@
<url>
<loc>https://h.cowbay.org/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
<xhtml:link
rel="alternate"
@ -141,6 +152,12 @@
/>
</url>
<url>
<loc>https://h.cowbay.org/tags/mellanox/</loc>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://h.cowbay.org/tags/metabase/</loc>
<lastmod>2018-11-15T11:06:28+08:00</lastmod>
@ -155,7 +172,7 @@
<url>
<loc>https://h.cowbay.org/post/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>
@ -191,7 +208,7 @@
<url>
<loc>https://h.cowbay.org/tags/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
<xhtml:link
rel="alternate"
@ -219,13 +236,13 @@
<url>
<loc>https://h.cowbay.org/tags/%E7%AD%86%E8%A8%98/</loc>
<lastmod>2018-11-15T11:06:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
<priority>0</priority>
</url>

@ -179,6 +179,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -203,10 +207,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -191,6 +191,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -215,10 +219,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -229,7 +229,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -95,6 +95,101 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/">
@ -908,6 +1003,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -932,10 +1031,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -946,7 +1041,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -20,6 +20,13 @@
"type": "author",
"url": "https://h.cowbay.org/author/eric-chang"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/10g",
"title": "10g",
"type": "tag",
"url": "https://h.cowbay.org/tags/10g"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/ansible",
@ -62,6 +69,13 @@
"type": "tag",
"url": "https://h.cowbay.org/tags/linux"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/mellanox",
"title": "Mellanox",
"type": "tag",
"url": "https://h.cowbay.org/tags/mellanox"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/metabase",

@ -5,11 +5,38 @@
<link>https://h.cowbay.org/</link>
<description>Recent content on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 29 Nov 2018 11:22:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 還是 Ansible Selectattr </title>
<link>https://h.cowbay.org/post/ansible-selectattr-filter/</link>

@ -0,0 +1,542 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Bilberry Premium Theme for Hugo.">
<meta name="keywords" content="blog,personal,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB | MC部落</title>
<meta name="description" content="[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB - Bilberry Premium Theme for Hugo.">
<meta itemprop="name" content="[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB ">
<meta itemprop="description" content="[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB - Bilberry Premium Theme for Hugo.">
<meta property="og:title" content="[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB ">
<meta property="og:description" content="[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB - Bilberry Premium Theme for Hugo.">
<meta property="og:image" content="https://h.cowbay.org/images/post-default-03.jpg">
<meta property="og:url" content="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/">
<meta property="og:site_name" content="MC部落">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.717098cb5503581e75f12e486a847ca410bf8367d4d8713f4c37affc868c5a1d.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="Search ...">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MC部落</a></h3>
<span class="subtitle">這是MC的HUGO部落格採用bilberry theme</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<p>先上個圖!</p>
<p><img src="https://i.imgur.com/34MNFkW.png" alt="10G LAB" /></p>
<p>簡單說,就是有兩台機器,分別安裝 proxmox (一台是新裝的另一台是本來就在線上的LAB用機器)以及光纖網卡</p>
<p>Mellanox 這張 X2 的卡, proxmox 5.1 / 5.2 可以直接抓到,所以不必另外安裝驅動程式</p>
<p>硬體安裝很順利,不過軟體的設定就碰到點麻煩了,所以才想說作個筆記..</p>
<h3 id="strong-必須作-vmbridge-才能指定這個網卡給vm用-strong"><strong>必須作 vmbridge 才能指定這個網卡給VM用 </strong></h3>
<p>安裝好網卡開機透過proxmox的WEB界面設定好網卡的資料後原本以為可以直接使用了</p>
<p>但是proxmox 會提示需要重新開機才能變更設定</p>
<p>可是重新開機後我兩台怎麼都ping不到對方</p>
<p>在這之前,我已經用兩台 ubuntu 18.04 client 測試過了只要設定好IP就可以直接通</p>
<p>所以在這邊碰到這個問題,我滿訝異的</p>
<p>可是看網卡的燈號,明明就有亮起來,應該是正常的呀</p>
<p>原來在proxmox 中,新增了網卡,並不是直接就可以拿來用</p>
<p>要先設定好 bridge 然後才能起新的VM、指定新設定的 vmbridge 給這個新起的機器使用</p>
<h3 id="strong-disk-cache-type-要改-strong"><strong>Disk Cache type 要改</strong></h3>
<p>設定了新的 vmbridge 之後就可以在新VM的設定畫面中指定網卡走這個界面出去</p>
<p>可是這樣做出來的VM ,一直無法開機</p>
<p>錯誤訊息如下</p>
<pre><code>kvm: -drive file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on: file system may not support O_DIRECT
kvm: -drive file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on: Could not open '/zp/images/100/vm-100-disk-1.qcow2': Invalid argument
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -name 123123 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=da27a9ea-fd55-4542-b2a7-8d5b09bf7611' -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/100.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 2048 -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:b972d1ad783' -drive 'file=/zp/template/iso/ubuntu-18.04.1-live-server-amd64.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/zp/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=A2:EA:45:EE:17:25,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
</code></pre>
<p>當然先去拜google果然就看到了提示需要把 磁碟的 Cache 從預設的 Default(No Cache) 改成 write through</p>
<p><img src="https://i.imgur.com/cmClmGd.png" alt="proxmox dish cache mode" /></p>
<p>為什麼?我也不知道..不知道是不是因為我把磁碟種類選成用 Virtio Block 的關係</p>
<p>總之呢,改完之後就可以了 &hellip;</p>
<h3 id="必須手動設定路由">必須手動設定路由</h3>
<p>設定好新的VM開機、設定IP、重開機之後會發現還是ping 不到另一台機器..(翻桌!)</p>
<p>只好又去拜google ,就看到了底下這篇</p>
<p><a href="https://forum.proxmox.com/threads/how-to-add-second-nic.40905/">https://forum.proxmox.com/threads/how-to-add-second-nic.40905/</a></p>
<p>大概點出了方向,必須要手動增加路由(感覺有點蠢)</p>
<p>像我的光纖網卡走的是 192.168.50.0/24 就要去把原有的192.168.50.0/24的路由給砍掉然後再新增(是不是很蠢?)</p>
<pre><code>root@ssd:/etc/network# ip route del 192.168.50.0/24
root@ssd:/etc/network# ip route add 192.168.50.0/24 dev vmbr1
root@ssd:/etc/network# ip route
default via 192.168.11.253 dev vmbr0 onlink
192.168.11.0/24 dev vmbr0 proto kernel scope link src 192.168.11.215
192.168.50.0/24 dev vmbr1 scope link
root@ssd:/etc/network#
</code></pre>
<p>OK ping 一下對面看能不能過</p>
<pre><code>root@ssd:/etc/network# ping 192.168.50.10
PING 192.168.50.10 (192.168.50.10) 56(84) bytes of data.
64 bytes from 192.168.50.10: icmp_seq=1 ttl=64 time=0.083 ms
64 bytes from 192.168.50.10: icmp_seq=2 ttl=64 time=0.067 ms
64 bytes from 192.168.50.10: icmp_seq=3 ttl=64 time=0.080 ms
64 bytes from 192.168.50.10: icmp_seq=4 ttl=64 time=0.126 ms
^C
--- 192.168.50.10 ping statistics ---
</code></pre>
<p>GOOD !很好!通了一邊,另外一邊就照辦,兩邊都通了,就可以開始來測試速度了</p>
<p>p.s 這個路由不知道需不需要每次都手動增加或者是有哪個config可以在開機時載入</p>
<p>沒記錯的話,應該是在 /etc/network/if-up.d/ 新增一個 route 檔案</p>
<p>不過這部份我不是很確定就是了</p>
<p>所以自己寫了一個 script 來用..</p>
<h3 id="strong-iperf-測試速度-strong"><strong>iperf 測試速度</strong></h3>
<p>在linux 上,我習慣用 iperf 來測試兩台主機的連接速度</p>
<p>兩邊都用 apt install iperf 裝好套件</p>
<p>然後找一台作為 server ,執行</p>
<pre><code>iperf -s
</code></pre>
<p>然後到另一台,去執行</p>
<pre><code>2018-11-30 15:36:58 [minion@ubuntu ~]$ iperf -d -t 600 -P 10 -c 192.168.50.200
WARNING: option -d is not valid for server mode
------------------------------------------------------------
Client connecting to 192.168.50.200, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.50.199 port 40980 connected with 192.168.50.200 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-600.0 sec 641 GBytes 9.18 Gbits/sec
</code></pre>
<p>哈哈哈,有目有!測試速度來到了 9.18 Gbits 啊! 就是一個爽啊!</p>
<p>記得那個 server IP 是你 VM 裡面設定的 IP不是 proxmox 上面的</p>
<p>同場加映走 1Gb 網路的測試結果</p>
<pre><code>2018-11-30 16:39:37 [minion@ubuntu ~]$ iperf -d -t 600 -P 10 -c 192.168.11.171
WARNING: option -d is not valid for server mode
------------------------------------------------------------
Client connecting to 192.168.11.171, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.11.55 port 38582 connected with 192.168.11.171 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-600.0 sec 65.8 GBytes 941 Mbits/sec
</code></pre>
<p>192.168.11.171 跟 192.168.50.200 是同一台機器只是一個是10G網卡一個是onboard的 1Gb 網卡</p>
<p>速度果然是提高了十倍呀,果然就是一個爽啊!!</p>
<p><img src="https://www.clipartmax.com/png/small/217-2175589_oh-yeah.png" alt="" /></p>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
<li>
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a>
</li>
<li>
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
</li>
<li>
<a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a>
</li>
<li>
<a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a>
</li>
<li>
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong>Categories</strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong>Social media</strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-128770427-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "en" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'>Nothing found.</span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -218,6 +218,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -242,10 +246,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -256,7 +256,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -329,6 +329,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -353,10 +357,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -367,7 +367,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -284,6 +284,10 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -308,10 +312,6 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -322,7 +322,7 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -258,6 +258,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -282,10 +286,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -296,7 +296,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -216,6 +216,10 @@ GRANT a TO b;
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -240,10 +244,6 @@ GRANT a TO b;
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -254,7 +254,7 @@ GRANT a TO b;
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -302,6 +302,10 @@ admin@storage:~$
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -326,10 +330,6 @@ admin@storage:~$
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -340,7 +340,7 @@ admin@storage:~$
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -90,6 +90,99 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/">
@ -818,6 +911,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -842,10 +939,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -856,7 +949,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -5,11 +5,38 @@
<link>https://h.cowbay.org/post/</link>
<description>Recent content in Posts on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 29 Nov 2018 11:22:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/post/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 還是 Ansible Selectattr </title>
<link>https://h.cowbay.org/post/ansible-selectattr-filter/</link>

@ -251,6 +251,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -275,10 +279,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -289,7 +289,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -196,11 +196,11 @@ acl CONNECT method CONNECT
<p>兩台都ping不到對方</p>
<p><img src="http://i.imgur.com/gSD086o.png" alt="ping不到" /></p>
<p><img src="https://i.imgur.com/gSD086o.png" alt="ping不到" /></p>
<p>什麼事也沒做就是把ping中斷然後再ping 一次,居然就可以了</p>
<p><img src="http://i.imgur.com/rvtw0hh.png" alt="又ping到了" /></p>
<p><img src="https://i.imgur.com/rvtw0hh.png" alt="又ping到了" /></p>
<p>##真他X的詭異啊</p>
@ -295,6 +295,10 @@ acl CONNECT method CONNECT
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -319,10 +323,6 @@ acl CONNECT method CONNECT
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -333,7 +333,7 @@ acl CONNECT method CONNECT
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -4,7 +4,7 @@
<sitemap>
<loc>https://h.cowbay.org/en/sitemap.xml</loc>
<lastmod>2018-11-29T11:22:28+08:00</lastmod>
<lastmod>2018-11-30T16:05:14+08:00</lastmod>
</sitemap>

@ -0,0 +1,392 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Bilberry Premium Theme for Hugo.">
<meta name="keywords" content="blog,personal,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> 10g | MC部落</title>
<meta name="description" content="10g - Bilberry Premium Theme for Hugo.">
<meta itemprop="name" content="10g">
<meta itemprop="description" content="10g - Bilberry Premium Theme for Hugo.">
<meta property="og:title" content="10g">
<meta property="og:description" content="10g - Bilberry Premium Theme for Hugo.">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/10g/">
<meta property="og:site_name" content="MC部落"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/10g/index.xml" rel="alternate" type="application/rss+xml" title="MC部落" />
<link href="https://h.cowbay.org/tags/10g/index.xml" rel="feed" type="application/rss+xml" title="MC部落" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.717098cb5503581e75f12e486a847ca410bf8367d4d8713f4c37affc868c5a1d.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="Search ...">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MC部落</a></h3>
<span class="subtitle">這是MC的HUGO部落格採用bilberry theme</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
<li>
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a>
</li>
<li>
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
</li>
<li>
<a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a>
</li>
<li>
<a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a>
</li>
<li>
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong>Categories</strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong>Social media</strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/10g/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-128770427-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "en" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'>Nothing found.</span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>10g on MC部落</title>
<link>https://h.cowbay.org/tags/10g/</link>
<description>Recent content in 10g on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/10g/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://h.cowbay.org/tags/10g/</title><link rel="canonical" href="https://h.cowbay.org/tags/10g/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://h.cowbay.org/tags/10g/" /></head></html>

@ -306,6 +306,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -330,10 +334,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -344,7 +344,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -202,6 +202,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -226,10 +230,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -240,7 +240,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -202,6 +202,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -226,10 +230,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -240,7 +240,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -189,6 +189,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -213,10 +217,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -227,7 +227,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -194,6 +194,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -218,10 +222,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -232,7 +232,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -101,6 +101,8 @@
<hr>
<ul id="all-categories">
<li><a href="/tags/10g">10g (1)</a></li>
<li><a href="/tags/ansible">Ansible (2)</a></li>
<li><a href="/tags/bookstack">Bookstack (1)</a></li>
@ -113,6 +115,8 @@
<li><a href="/tags/linux">Linux (2)</a></li>
<li><a href="/tags/mellanox">Mellanox (1)</a></li>
<li><a href="/tags/metabase">Metabase (1)</a></li>
<li><a href="/tags/nas">Nas (1)</a></li>
@ -129,7 +133,7 @@
<li><a href="/tags/%E7%9F%AD%E4%BB%8A">短今 (1)</a></li>
<li><a href="/tags/%E7%AD%86%E8%A8%98">筆記 (4)</a></li>
<li><a href="/tags/%E7%AD%86%E8%A8%98">筆記 (5)</a></li>
</ul>
</div>
@ -148,6 +152,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -172,10 +180,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -186,7 +190,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -5,11 +5,20 @@
<link>https://h.cowbay.org/tags/</link>
<description>Recent content in Tags on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 29 Nov 2018 11:22:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>10g</title>
<link>https://h.cowbay.org/tags/10g/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/tags/10g/</guid>
<description></description>
</item>
<item>
<title>Ansible</title>
<link>https://h.cowbay.org/tags/ansible/</link>
@ -64,6 +73,15 @@
<description></description>
</item>
<item>
<title>Mellanox</title>
<link>https://h.cowbay.org/tags/mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/tags/mellanox/</guid>
<description></description>
</item>
<item>
<title>Metabase</title>
<link>https://h.cowbay.org/tags/metabase/</link>
@ -139,7 +157,7 @@
<item>
<title>筆記</title>
<link>https://h.cowbay.org/tags/%E7%AD%86%E8%A8%98/</link>
<pubDate>Thu, 15 Nov 2018 11:06:28 +0800</pubDate>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/tags/%E7%AD%86%E8%A8%98/</guid>
<description></description>

@ -307,6 +307,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -331,10 +335,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -345,7 +345,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -0,0 +1,392 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Bilberry Premium Theme for Hugo.">
<meta name="keywords" content="blog,personal,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> Mellanox | MC部落</title>
<meta name="description" content="Mellanox - Bilberry Premium Theme for Hugo.">
<meta itemprop="name" content="Mellanox">
<meta itemprop="description" content="Mellanox - Bilberry Premium Theme for Hugo.">
<meta property="og:title" content="Mellanox">
<meta property="og:description" content="Mellanox - Bilberry Premium Theme for Hugo.">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/mellanox/">
<meta property="og:site_name" content="MC部落"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/mellanox/index.xml" rel="alternate" type="application/rss+xml" title="MC部落" />
<link href="https://h.cowbay.org/tags/mellanox/index.xml" rel="feed" type="application/rss+xml" title="MC部落" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.717098cb5503581e75f12e486a847ca410bf8367d4d8713f4c37affc868c5a1d.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="Search ...">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MC部落</a></h3>
<span class="subtitle">這是MC的HUGO部落格採用bilberry theme</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
<li>
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a>
</li>
<li>
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
</li>
<li>
<a href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a>
</li>
<li>
<a href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題或許跟KVM有關係</a>
</li>
<li>
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong>Categories</strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong>Social media</strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/mellanox/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-128770427-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "en" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'>Nothing found.</span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Mellanox on MC部落</title>
<link>https://h.cowbay.org/tags/mellanox/</link>
<description>Recent content in Mellanox on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/mellanox/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://h.cowbay.org/tags/mellanox/</title><link rel="canonical" href="https://h.cowbay.org/tags/mellanox/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://h.cowbay.org/tags/mellanox/" /></head></html>

@ -194,6 +194,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -218,10 +222,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -232,7 +232,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -203,6 +203,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -227,10 +231,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -241,7 +241,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -203,10 +207,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -192,6 +192,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -216,10 +220,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -230,7 +230,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -203,6 +203,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -227,10 +231,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -241,7 +241,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -203,6 +203,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -227,10 +231,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -241,7 +241,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -198,6 +198,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -222,10 +226,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -236,7 +236,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -203,10 +207,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -90,6 +90,99 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more">Continue reading</a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-preferred-language-in-firefox/">
@ -454,6 +547,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a>
</li>
<li>
<a href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a>
</li>
@ -478,10 +575,6 @@
<a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a>
</li>
<li>
<a href="/post/bookstack-docker/">Bookstack Docker</a>
</li>
</ul>
</div>
@ -492,7 +585,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (8)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (9)</a>
</li>
<li>

@ -5,11 +5,38 @@
<link>https://h.cowbay.org/tags/%E7%AD%86%E8%A8%98/</link>
<description>Recent content in 筆記 on MC部落</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Thu, 15 Nov 2018 11:06:28 +0800</lastBuildDate>
<lastBuildDate>Fri, 30 Nov 2018 16:05:14 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </title>
<link>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</link>
<pubDate>Fri, 30 Nov 2018 16:05:14 +0800</pubDate>
<guid>https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/</guid>
<description>&lt;p&gt;想做一個 10G 的 LAB 環境出來已經很久了。&lt;/p&gt;
&lt;p&gt;只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜&lt;/p&gt;
&lt;p&gt;如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)&lt;/p&gt;
&lt;p&gt;所以一直沒有付諸行動。&lt;/p&gt;
&lt;p&gt;硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)&lt;/p&gt;
&lt;p&gt;聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位&lt;/p&gt;
&lt;p&gt;就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線&lt;/p&gt;
&lt;p&gt;就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到&lt;/p&gt;
&lt;p&gt;今天就花了點時間測試一下&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</title>
<link>https://h.cowbay.org/post/change-preferred-language-in-firefox/</link>

Loading…
Cancel
Save