User Tools

Site Tools


toh:mikrotik:rb951ui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

toh:mikrotik:rb951ui [2014/02/23 02:07]
toh:mikrotik:rb951ui [2015/03/27 09:27] (current)
julianjm
Line 58: Line 58:
   root@OpenWrt:/#​ cd /   root@OpenWrt:/#​ cd /
   root@OpenWrt:/#​ umount /mnt/rootfs   root@OpenWrt:/#​ umount /mnt/rootfs
 +
 +=== Initial setup ===
 +
 +== Leds ==
 +
 +Add these lines to /​etc/​config/​system
 +
 +  config led '​act'​
 +        option trigger '​netdev'​
 +        option mode 'link tx rx'
 +        option sysfs '​rb:​green:​act'​
 +        option name '​ACT'​
 +        option dev '​eth1'​
 +        option brightness '​0'​
 +        option default '​0'​
 +  config led '​p1'​
 +        option trigger '​netdev'​
 +        option name '​Port_1'​
 +        option sysfs '​rb:​green:​port1'​
 +        option dev '​eth0'​
 +        option mode 'link tx rx'
 +        option default '​0'​
 +  config led '​p2'​
 +        option trigger '​switch0'​
 +        option name '​Port_2'​
 +        option sysfs '​rb:​green:​port2'​
 +        option port_mask '​0x10'​
 +        option default '​0'​
 +  config led '​p3'​
 +        option name '​Port_3'​
 +        option sysfs '​rb:​green:​port3'​
 +        option trigger '​switch0'​
 +        option port_mask '​0x8'​
 +        option default '​0'​
 +  config led '​p4'​
 +        option name '​Port_4'​
 +        option trigger '​switch0'​
 +        option sysfs '​rb:​green:​port4'​
 +        option port_mask '​0x4'​
 +        option default '​0'​
 +  config led '​p5'​
 +        option name '​Port_5'​
 +        option sysfs '​rb:​green:​port5'​
 +        option trigger '​switch0'​
 +        option port_mask '​0x2'​
 +        option default '​0'​
 +  config led '​wlan'​
 +        option sysfs '​rb:​green:​wlan'​
 +        option name '​WLAN'​
 +        option trigger '​phy0tpt'​
 +        option default '​0'​
 +
 +There'​s a red led on port 5, which seems to be some indication of PoE (or lack of, not sure). By default it's always on. You can turn it off with the following command. You can put it in /​etc/​rc.local
 +
 +  echo 0 > /​sys/​devices/​virtual/​gpio/​gpio2/​value
 +
 +
 +== Serial console ==
 +
 +If you solder the UART pins on the board, you can enable the serial console, adding this line to /​etc/​inittab:​
 +
 +  ttyS0::​askfirst:/​bin/​ash --login
 +
 +== Switch ==
 +
 +In /​etc/​config/​network,​ add these lines to enable the switch, and create 2 vlan interfaces (eth1.11 and eth1.12). The first for ports 5 and 4, and the later for ports 3 and 2. Port 1 on the router is eth0.
 +
 +  config switch '​eth1'​
 +        option enable '​1'​
 +        option enable_vlan '​1'​
 +  config switch_vlan
 +        option device '​eth1'​
 +        option vlan '​11'​
 +        option vid '​11'​
 +        option ports '0t 1 2'
 +  config switch_vlan
 +        option device '​eth1'​
 +        option vlan '​12'​
 +        option vid '​12'​
 +        option ports '0t 3 4'
 +
 +== WIFI ==
 +
 +Install kmod-ath9k
  
 ''​About:​ ''​About:​
toh/mikrotik/rb951ui.1393117629.txt.bz2 · Last modified: 2014/02/23 02:07 (external edit)