Skip to content

Contents

Port control

NHX53X2-V01/V02/V03/V04

switch1

port_phyport_id
p01
p12
p23
p34

NHX53X2 port_phy

image.png

BXW1800 port_phy

image.png image.png

network default configuration

  • Phy layout order No requirement, can be redefined by network default configuration, or refer to BXW1800-V06 schematic diagram
  • uci-defaults.sh

/qsdk/package/base-files/files/lib/functions/uci-defaults.sh

set network.@switch[0]=switch
set network.@switch[0].name='switch1'
set network.@switch[0].reset='1'
set network.@switch[0].enable_vlan='1'
set network.@switch_vlan[0]=switch_vlan
set network.@switch_vlan[0].device='switch1'
set network.@switch_vlan[0].vlan='1'
set network.@switch_vlan[0].ports='0t 1 2 4'
set network.@switch_vlan[1]=switch_vlan
set network.@switch_vlan[1].device='switch1'
set network.@switch_vlan[1].vlan='2'
set network.@switch_vlan[1].ports='0t 3'
set network.lan='interface'
set network.lan.ifname='$ifname'
set network.lan.def_ifname='$ifname'
set network.lan.force_link=1
set network.lan.type='bridge'
set network.lan.proto='static'
set network.lan.ipaddr='192.168.100.1'
set network.lan.def_ipaddr='192.168.100.1'
set network.lan.netmask='255.255.255.0'
set network.lan.ip6assign='60'
set network.debug='interface'
set network.debug.force_link=1
set network.debug.type='bridge'
set network.debug.proto='static'
set network.debug.ipaddr='169.254.254.254'
set network.debug.def_ipaddr='169.254.254.254'
set network.debug.netmask='255.255.255.0'
set network.debug.ip6assign='60'
set network.debug.disabled=1