OpenWRT in the role of upstream

OpenWRT in the role of upstream
Pavel Simerda
pavlix@pavlix.net
InstallFest.CZ 2014, Praha
http://data.pavlix.net/installfest/2014/


Software used in OpenWRT


System initialization

Current OpenWRT
procd, ubox
Former OpenWRT
busybox-init, hotplug2, block-mount
Classic distributions
systemd
upstart, udev
sysvinit, rc, udev


Interprocess communication service
Current OpenWRT
ubusd
Classic distributions
dbus-daemon


Common con guration database
Current OpenWRT
uci
Classic distributions
none


Network con guration service
Current OpenWRT
netifd, busybox-udhcpc, odhcp6c
Classic distributions
NetworkManager, dhclient


Client con guration provider
Current OpenWRT
odhcpd (dnsmasq is still default for IPv4)
Classic distributions
dhcp
dnsmasq (for NetworkManager and libvirt)


DNS cache
Current OpenWRT
dnsmasq
Classic distributions
none
dnsmasq
unbound (supports DNSSEC)


Remote shell access
Current OpenWRT
dropbear, telnetd
Classic distributions
openssh


Remote web access
Current OpenWRT
uhttpd, luci
Classic distributions
apache, webmin




OpenWRT software worth considering

Networking software
netifd { the network con guration daemon
odhcpd { DHCPv4, DHCPv6 and RA server
odhcp6c { RA and DHCPv6 client


Networking software: con guration example
/etc/con g/network
config interface lan
option ifname enp0s25
option type bridge
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0


Networking software: con guration example
ip address show
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP>
mtu 1500 qdisc pfifo_fast
master br-lan state DOWN qlen 1000
link/ether f0:de:f1:24:97:32
brd ff:ff:ff:ff:ff:ff
9: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP>
mtu 1500 qdisc noqueue state DOWN
link/ether f0:de:f1:24:97:32
brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255
scope global br-lan
valid_lft forever preferred_lft forever


Other software, dependencies
procd, ubox, libubox -- the base system
ubusd, libubus -- interprocess communication
uci, libuci -- common con guration access
uhttpd, luci -- web interface

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值