Howto openwrt: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
Line 18: Line 18:
edit /etc/config/network:
edit /etc/config/network:
  config interface 'loopback'
  config interface 'loopback'
option device 'lo'
option device 'lo'
option proto 'static'
option proto 'static'
option ipaddr '127.0.0.1'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
option netmask '255.0.0.0'
  config globals 'globals'
  config globals 'globals'
option ula_prefix 'fd5c:aa60:b3ab::/48'
option ula_prefix 'fd5c:aa60:b3ab::/48'
config device
option name 'br-lan'
config device
option type 'bridge'
    option name 'br-lan'
list ports 'eth0'
    option type 'bridge'
config interface 'lan'
    list ports 'eth0'
option device 'br-lan'
option proto 'static'
config interface 'lan'
option ipaddr '192.168.1.1'
    option device 'br-lan'
option netmask '255.255.255.0'
    option proto 'static'
option ip6assign '60'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

Revision as of 20:33, 27 March 2024

download image

download openwrt image for x86:

https://downloads.openwrt.org/releases/22.03.0/targets/x86/legacy/openwrt-22.03.0-x86-legacy-generic-squashfs-combined.img.gz

decompress image:

gzip -d openwrt-22.03.0-x86-legacy-generic-squashfs-combined.img.gz

copy image to pendrive:

dd if=openwrt-22.03.0-x86-legacy-generic-squashfs-combined.img of=/dev/sdd status=progress

soekris net6501

install e1000e driver for intel 82574L:

mkdir openwtr/23.05.3 -p
cd openwtr/23.05.3
wget https://downloads.openwrt.org/releases/23.05.3/targets/x86/legacy/packages/kmod-e1000e_5.15.150-1_i386_pentium-mmx.ipk
wget https://downloads.openwrt.org/releases/23.05.3/targets/x86/legacy/packages/kmod-ptp_5.15.150-1_i386_pentium-mmx.ipk
opkg install *.ipk

load kernel module:

modprobe e1000e

configure network

edit /etc/config/network:

config interface 'loopback'
	 option device 'lo'
	 option proto 'static'
	 option ipaddr '127.0.0.1'
	 option netmask '255.0.0.0'
config globals 'globals'

option ula_prefix 'fd5c:aa60:b3ab::/48'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'eth0'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'