Skip to content

Instantly share code, notes, and snippets.

@nlienard
Created February 3, 2016 10:32
Show Gist options
  • Save nlienard/1a6d215f1d5673d9fc88 to your computer and use it in GitHub Desktop.
Save nlienard/1a6d215f1d5673d9fc88 to your computer and use it in GitHub Desktop.
cloned_interfaces="tap1 tap2 tap3 tap4 bridge0 bridge1 bridge2"
ifconfig_tap2="mtu 1496"
autobridge_interfaces="bridge0 bridge1 bridge2"
autobridge_bridge0="tap1 ix0"
autobridge_bridge1="tap2 vlan10"
autobridge_bridge2="tap3 tap0"
ifconfig_bridge1="mtu 1496"
#ifconfig_bridge0="addm tap1 addm ix0"
#ifconfig_bridge1="addm tap2 addm vlan10"
#ifconfig_bridge2="addm tap3 addm tap0"
ifconfig_sw_public="addm tap1 addm ix0"
ifconfig_sw_lan10="addm tap2 addm vlan10"
ifconfig_sw_lan11="addm tap3 addm tap0"
#ifconfig_bridge0="up"
#ifconfig_bridge1="up"
#ifconfig_bridge2="up"
ifconfig_sw_public="up"
ifconfig_sw_lan10="up"
ifconfig_sw_lan11="up"
ifconfig_bridge0_name="sw_public"
ifconfig_bridge1_name="sw_lan10"
ifconfig_bridge2_name="sw_lan11"
iohyve_enable="YES"
iohyve_flags="kmod=1 net=ix0"
result
root@dnxovh-hy001:~ # ifconfig
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO>
ether 0c:c4:7a:79:db:24
inet 149.202.85.153 netmask 0xffffff00 broadcast 149.202.85.255
inet6 fe80::ec4:7aff:fe79:db24%ix0 prefixlen 64 scopeid 0x1
inet6 2001:41d0:1004:999:: prefixlen 64
nd6 options=8023<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL,DEFAULTIF>
media: Ethernet autoselect (1000baseT <full-duplex,rxpause>)
status: active
ix1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO>
ether 0c:c4:7a:79:db:25
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tap1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:09:18:00:01
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
Opened by PID 1657
tap2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1496
options=80000<LINKSTATE>
ether 00:bd:11:18:00:02
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
Opened by PID 1657
tap3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:18:18:00:03
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
Opened by PID 1657
tap4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:20:18:00:04
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
Opened by PID 1657
sw_public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:f1:ae:42:eb:00
nd6 options=9<PERFORMNUD,IFDISABLED>
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
sw_lan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:f1:ae:42:eb:01
nd6 options=9<PERFORMNUD,IFDISABLED>
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
sw_lan11: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:f1:ae:42:eb:02
nd6 options=9<PERFORMNUD,IFDISABLED>
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:0a:4a:00:00
inet 192.168.11.101 netmask 0xffffff00 broadcast 192.168.11.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
Opened by PID 1343
vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1496
ether 00:bd:0a:4a:00:00
inet 192.168.10.101 netmask 0xffffff00 broadcast 192.168.10.255
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: active
vlan: 10 parent interface: tap0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment