L2 connection
--- connections
nic1 vlan2 boxslot1-p1 mm-vlan2
nic2 vlan3 boxslot1-p2 mm-vlan3
---
each port
---
nic1 vlan2
nic2 vlan3
boxs1p1 vlan2
boxs1p2 vlan3
mm vlan2
---
enable
config
vlan 2,3
interface x
switchport mode access
switchport access vlan 2
exit
他ポート繰り返し。
nic-boxを1:1
save
--- mm port
interface x
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,2,3
exit
save
---
mm用ポートをどうするか?
とりあえず、vlan2に設定。
案としては、hostにタグvlan ifを作成し、2つのif をmmに見せる。
switch側はtrunk port とし、複数のvlanを通す。
vlan types
port vlan
protocol
mac
port types
access
trunk
tunnel
mac
protcol
trunk tag & native
tunnel 特殊
box status check
linux nmcli vlan
con-name 指定
$ nmcli con add type vlan con-name VLAN12 dev eth0 id 12
Connection 'VLAN12' (b796c16a-9f5f-441c-835c-f594d40e6533) successfully added.
ifname 指定
$ nmcli con add type vlan ifname VLAN10 dev eth0 id 10
Connection 'vlan-VLAN10' (37750b4a-8ef5-40e6-be9b-4fb21a4b6d17) successfully added.
pci device removal
lspci
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09) 00:01.1 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09) ...