2015年8月24日 星期一

LEAF bonding,VLAN 設定筆記

bonding 範例
編輯 /etc/network/interfaces
auto bond0
    iface bond0 inet static
    address 10.31.1.5
    netmask 255.255.255.0

    gateway 10.31.1.254
    slaves eth0 eth1

編輯 /etc/modules 加入
bonding mode=6 downplay=200 updelay=200 miimon=100

VLAN範例
編輯 /etc/network/interfaces
auto bond0
   iface bond0 inet manual
   up ifconfig bond0 0.0.0.0 up
  slaves eth0 eth1

auto vlan20
    iface vlan20 inet static
    address 10.20.1.5
    netmask 255.255.255.0
    vlan-raw-device bond0

編輯 /etc/modules 加入
8021q




沒有留言: