# BUN configuration file for Solos 4615 reference design


# Layer the software devices with the physical devices

device : eth_ip175    = chameleon, eth_sw, bf_ether, unieth
device : eth_lan      = chameleon, eth_sw, vmux
device : atm_turbo    = chameleon, atm_sw, turbo, utopia
device : usb_device   = chameleon, usb_sw, usb
device : voice_device = voip, chameleon
device : pppoedev     = pppoe, eth_lan

# Create the ports

# Raw ethernet port - opened by the vmux driver below

if_bun IsET0Present

if_bun syminfile //flashfs/PARTITION=1/im.conf !opmode

if_bun IsADSLPresent
cond_debug_bun 5-port ADSL is WAN (factory defaults)
# ==== 5-port ADSL is WAN (factory defaults) :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=3/PVID[4]=2/NumVlans=2/VlanMask[0]=0x020017/VlanMask[1]=0x030008
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0
port : ethernet3 = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=3/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=1
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>
else_bun # IsADSLPresent
cond_debug_bun 5-port wo ADSL: ET0 is WAN (factory defaults)
# ==== 5-port wo ADSL: ET0 is WAN (factory defaults) :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=3/PVID[4]=245/NumVlans=3/VlanMask[0]=0x020007/VlanMask[1]=0x030008/VlanMask[2]=0x050010
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0
port : ethernet3 = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=3/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=1
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>
endif_bun # IsADSLPresent

else_bun # opmode

if_bun syminfile //flashfs/PARTITION=1/im.conf opmode atabox

cond_debug_bun 5-port OBFS
# ==== 5-port OBFS :
port : raw_ethernet = eth_ip175/VLANEnabled=true/PVID[0]=245/PVID[1]=245/PVID[2]=245/PVID[3]=245/PVID[4]=245/NumVlans=1/VlanMask[0]=0x05001f
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>

else_bun # !opmode atabox

if_bun syminfile //flashfs/PARTITION=1/im.conf opmode lansiparator

cond_debug_bun 5-port OBFS
# ==== 5-port OBFS :
port : raw_ethernet = eth_ip175/VLANEnabled=true/PVID[0]=245/PVID[1]=245/PVID[2]=245/PVID[3]=245/PVID[4]=245/NumVlans=1/VlanMask[0]=0x05001f
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>

else_bun # !opmode lansiparator

if_bun syminfile //flashfs/PARTITION=1/im.conf !wanif iplan0
cond_debug_bun 5-port ADSL is WAN
# ==== 5-port ADSL is WAN (standard config) :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=3/PVID[4]=2/NumVlans=2/VlanMask[0]=0x020017/VlanMask[1]=0x030008
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0
port : ethernet3 = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=3/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=1
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>

else_bun # wanif iplan0
cond_debug_bun 5-port ET0 is WAN
# ==== 5-port ET0 is WAN :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=3/PVID[4]=245/NumVlans=3/VlanMask[0]=0x020007/VlanMask[1]=0x030008/VlanMask[2]=0x050010
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0
port : ethernet3 = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=3/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=1
port : ethernetwan = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>

endif_bun # end wanif iplan0

endif_bun # end !opmode lansiparator

endif_bun # end !opmode atabox

endif_bun #end opmode


else_bun # not IsET0Present


if_bun syminfile //flashfs/PARTITION=1/im.conf !opmode

cond_debug_bun 4-port standard config (factory defaults)
# ==== 4-port standard config (factory defaults) :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=245/NumVlans=2/VlanMask[0]=0x020007/VlanMask[1]=0x050008
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0

else_bun # opmode

if_bun syminfile //flashfs/PARTITION=1/im.conf opmode atabox
cond_debug_bun 4-port OBFS
# ==== 4-port OBFS :
port : raw_ethernet = eth_ip175/VLANEnabled=true/PVID[0]=245/PVID[1]=245/PVID[2]=245/PVID[3]=245/NumVlans=1/VlanMask[0]=0x05000f
else_bun
if_bun syminfile //flashfs/PARTITION=1/im.conf opmode lansiparator
cond_debug_bun 4-port OBFS
# ==== 4-port OBFS :
port : raw_ethernet = eth_ip175/VLANEnabled=true/PVID[0]=245/PVID[1]=245/PVID[2]=245/PVID[3]=245/NumVlans=1/VlanMask[0]=0x05000f
else_bun
cond_debug_bun 4-port standard config
# ==== 4-port standard config :
port : raw_ethernet = eth_ip175/SwtchLearnEnbl=true/VLANEnabled=true/PVID[0]=2/PVID[1]=2/PVID[2]=2/PVID[3]=245/NumVlans=2/VlanMask[0]=0x020007/VlanMask[1]=0x050008
port : ethernet0 = eth_lan/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=2/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/MapPortConnected=Connected/MapPortLinkSpeed=LinkSpeed/MapPortIndex=0
endif_bun
endif_bun

endif_bun #end opmode

port : ethernet3 = pppoedev/lowerport=<port=raw_ethernet/promiscuousenable=true>/tag=245/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true> / NewPortAttribute=<bool:PortClassATM=true>

endif_bun # end not IsET0Present


# Placeholders below, do not change
## BegXwanPorts
## EndXwanPorts

# DSL port
port : a1 = atm_turbo/PhysicalPort=0/NewAttribute=<bool:outside=true>/NewAttribute=<bool:VMI=true>/ShowtimeLed=3/NewAttribute=<S32:StatusLedConnAct=3>

# Wireless LAN port
port : wireless = eth_wireless/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/NewAttribute=<S32:StatusLedConnAct=5>

# USB device port
port : usb = usb_device/Device=0/TraceTxMonitorSize=8/TraceRxMonitorSize=8/NewAttribute=<S32:StatusLedConnAct=4>

# Voip
port : voipfxs0 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=0/portType=fxs
port : voipfxs1 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=1/portType=fxs
port : voipfxs2 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=2/portType=fxs
port : voipfxs3 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=3/portType=fxs
port : voipcmdstat = voice_device/NewAttribute=<bool:VMI=true>/portType=cmdstat/pool=control
port : slic = slic
