Sorry for my bad english
openSUSE Leap 42.2
There are three interfaces: net, lan, wlan0
net - internet (External Zone)
lan - Internal Zone
wlan0 - Internal Zone (WiFi Soft AP)
Created bridge (net, wlan0) - br0 (Internal Zone)
Configs
/etc/sysconfig/network/ifcfg-br0
BOOTPROTO='static'
BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_PORTS='wlan0 lan'
BRIDGE_STP='off'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.1.254/24'
MTU=''
NAME=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
/etc/sysconfig/network/ifcfg-lan
BOOTPROTO='none'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='RTL-8100/8101L/8139 PCI Fast Ethernet Adapter'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
NETMASK=''
PREFIXLEN=''
/etc/sysconfig/network/ifcfg-wlan0
BOOTPROTO='none'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='RT2800 802.11n PCI'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
WIRELESS_AP=''
WIRELESS_AP_SCANMODE='1'
WIRELESS_AUTH_MODE='no-encryption'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_CLIENT_KEY=''
WIRELESS_CLIENT_KEY_PASSWORD=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_EAP_AUTH=''
WIRELESS_EAP_MODE=''
WIRELESS_ESSID='Leap422'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0=''
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Master'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_PEAP_VERSION=''
WIRELESS_POWER='no'
WIRELESS_WPA_ANONID=''
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK=''
NETMASK=''
PREFIXLEN=''
Installed packages
# zypper se -i dhcp iw hostap
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+-----------------------------------+----------------------------------------------------------+--------
i | dhcp | Common Files Used by ISC DHCP Software | package
i | dhcp-client | ISC DHCP Client | package
i | dhcp-relay | ISC DHCP Relay Agent | package
i | dhcp-server | ISC DHCP Server | package
i | dhcp-tools | DHCP Tools | package
i | dhcp_dns_server | DHCP and DNS Server | pattern
i | hostapd | Turns Your WLAN Card into a WPA capable Access Point | package
i | iw | Configuration utility for nl80211 based wireless drivers | package
i | libKF5AkonadiWidgets5 | Akonadi Agent base library | package
i | libiw30 | Tools for a wireless LAN | package
i | patterns-openSUSE-dhcp_dns_server | DHCP and DNS Server | package
i | yast2-dhcp-server | YaST2 - DHCP Server Configuration | package
/etc/dhcpd.conf
option domain-name-servers 194.50.85.2, 194.50.85.1;
option routers 192.168.1.254;
option netbios-name-servers 194.50.85.5;
ddns-update-style none;
default-lease-time 14400;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.137 192.168.1.159;
default-lease-time 86400;
max-lease-time 172800;
}
/etc/hostapd.conf
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=Leap422
country_code=PH
hw_mode=g
channel=11
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ap_max_inactivity=300
ieee80211n=1
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=3
wpa_passphrase=myrandompassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
SuseFirewall2 - Masquerade enable
YaST2 - Network Services - DHCP Server - Start-Up - push Start now
https://i.imgur.com/30ZSm7V.jpg
Nothing:(
Go to YaST2 - System - Services Manager
See dhcp, dhcp-server - Enabled, Inactive
When try to activate I see error
https://i.imgur.com/iJeRtet.jpg
/var/log/rc.dhcpd.log
Internet Systems Consortium DHCP Server 4.3.3-P1
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Config file: /etc/dhcpd.conf
Database file: /var/lib/dhcp/db/dhcpd.leases
PID file: /var/lib/dhcp/var/run/dhcpd.pid
Wrote 3 leases to leases file.
No subnet declaration for br0 (no IPv4 addresses).
** Ignoring requests on br0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface br0 is attached. **
Not configured to listen on any interfaces!
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Then
# ifconfig -a
br0 Link encap:Ethernet HWaddr 00:0E:2E:E3:BA:A9
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lan Link encap:Ethernet HWaddr 00:0E:2E:E3:BA:A9
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25239 errors:0 dropped:42 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1814531 (1.7 Mb) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1821 errors:0 dropped:0 overruns:0 frame:0
TX packets:1821 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:135884 (132.6 Kb) TX bytes:135884 (132.6 Kb)
net Link encap:Ethernet HWaddr 90:E6:BA:74:E4:A9
inet addr:176.36.80.252 Bcast:176.39.255.255 Mask:255.252.0.0
inet6 addr: fe80::92e6:baff:fe74:e4a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5042170 errors:0 dropped:0 overruns:0 frame:0
TX packets:1538045 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6200568981 (5913.3 Mb) TX bytes:1453916808 (1386.5 Mb)
Interrupt:18
wlan0 Link encap:Ethernet HWaddr 80:1F:02:0F:72:8D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3695 errors:0 dropped:0 overruns:0 frame:0
TX packets:3698 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:418544 (408.7 Kb) TX bytes:489977 (478.4 Kb)
br0 dont have address
But /etc/sysconfig/network/ifcfg-br0
BOOTPROTO='static'
BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_PORTS='wlan0 lan'
BRIDGE_STP='off'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.1.254/24'
MTU=''
NAME=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
Then
# ifconfig br0 192.168.1.254 netmask 255.255.255.0
# ifconfig -a
br0 Link encap:Ethernet HWaddr 00:0E:2E:E3:BA:A9
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fee3:baa9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6200 errors:0 dropped:0 overruns:0 frame:0
TX packets:4424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:704526 (688.0 Kb) TX bytes:2445028 (2.3 Mb)
lan Link encap:Ethernet HWaddr 00:0E:2E:E3:BA:A9
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34522 errors:0 dropped:47 overruns:0 frame:0
TX packets:4475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2805353 (2.6 Mb) TX bytes:2454243 (2.3 Mb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1936 errors:0 dropped:0 overruns:0 frame:0
TX packets:1936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:142956 (139.6 Kb) TX bytes:142956 (139.6 Kb)
net Link encap:Ethernet HWaddr 90:E6:BA:74:E4:A9
inet addr:176.36.80.252 Bcast:176.39.255.255 Mask:255.252.0.0
inet6 addr: fe80::92e6:baff:fe74:e4a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5364622 errors:0 dropped:0 overruns:0 frame:0
TX packets:1929419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6229984094 (5941.3 Mb) TX bytes:2088359285 (1991.6 Mb)
Interrupt:18
wlan0 Link encap:Ethernet HWaddr 80:1F:02:0F:72:8D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4129 errors:0 dropped:0 overruns:0 frame:0
TX packets:4132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:464066 (453.1 Kb) TX bytes:543847 (531.1 Kb)
br0 have address
Then I start DHCP. But DHCP works only on cable (lan). On WiFi dont work. WiFi clients can not connect
After I restart my PC I have same error and zero address br0. Always after restart!
# ifconfig br0 192.168.1.254 netmask 255.255.255.0
And start DHCP
Work only on lan
How to setup br0 (LAN+WiFi Access Point) and DHCP for sharing internet?
Thanks!