#!/bin/sh /etc/rc.common

START=10

boot() {
	brctl addbr inf
	brctl addif inf lan2
	brctl addif inf lan3
	brctl addif inf lan4
	brctl addif inf lan5
	brctl addif inf lan6
	brctl addif inf lan7
	brctl addif inf lan8
	brctl addif inf lan9
	brctl addif inf lan10
	brctl addif inf lan11
	ifconfig kern0 up
	ifconfig lan2 up
	ifconfig lan3 up
	ifconfig lan4 up
	ifconfig lan5 up
	ifconfig lan6 up
	ifconfig lan7 up
	ifconfig lan8 up
	ifconfig lan9 up
	ifconfig lan10 up
	ifconfig lan11 up
	ifconfig inf up
	ip link set inf type bridge vlan_filtering 1
	sysctl -w /sys/devices/virtual/net/inf/bridge/bridge_isolated=1
	#Solve the problem that igmp snooping causes report packet loss
	echo 0 > /sys/devices/virtual/net/inf/bridge/multicast_snooping
	#fix bug 722261 Enable the ignore_routes_with_linkdown switch to disable linkdown routes
	#Note If the phy port is changed, the corresponding NIC parameters must be modified
	echo 1 > /proc/sys/net/ipv4/conf/default/ignore_routes_with_linkdown
	echo 1 > /proc/sys/net/ipv4/conf/kern1/ignore_routes_with_linkdown
}
