LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2015, 10:46 AM   #1
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian/Ubuntu, Rocky Linux
Posts: 53

Rep: Reputation: Disabled
Centos: Setting wlan0 as access point


Hello,
I`m trying to configure my wireless interface, as a access point.
Far this way I`ve configured:
Code:
[root@gunfight network-scripts]# cat ifcfg-wlan0 
TYPE="Wireless"
DEVICE="wlan0"
BOOTPROTO="static"
IPADDR=192.168.40.1
BROADCAST="192.168.0.255"
HWADDR="E0:06:E6:42:34:22"
NETMASK="255.255.255.0"
ONBOOT="yes"
USERCTL="yes"
IPV6INIT="no"
#ESSID="GunFighT"
CHANNEL="6"
MODE="Managed"
RATE="150Mb/s"
NM_CONTROLLED="yes"
Code:
[root@gunfight network-scripts]# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=19 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
Code:
[root@gunfight ~]# sudo iwlist wlan0 scan
wlan0     No scan results

Code:
== BEGIN uname -rmi ==
3.5.0 x86_64 x86_64
== END   uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
centos-release-6-6.el6.centos.12.2.x86_64
elrepo-release-6-5.el6.elrepo.noarch
epel-release-6-8.noarch
rpmforge-release-0.5.3-1.el6.rf.i686
pptp-release-4-7.rhel6.noarch
webtatic-release-6-5.noarch
== END   rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 6.6 (Final)
== END   cat /etc/redhat-release ==

== BEGIN getenforce ==
Disabled
== END   getenforce ==

== BEGIN free -m ==
             total       used       free     shared    buffers     cached
Mem:          3816       3545        270          0        249       2775
-/+ buffers/cache:        520       3295
Swap:         1023        260        763
== END   free -m ==

== BEGIN lspci -nn ==
00:00.0 Host bridge [0600]: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge [8086:a000] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller [8086:a001] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 1 [8086:27d0] (rev 01)
00:1c.1 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 2 [8086:27d2] (rev 01)
00:1c.2 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 3 [8086:27d4] (rev 01)
00:1c.3 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 4 [8086:27d6] (rev 01)
00:1d.0 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 01)
00:1d.1 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9] (rev 01)
00:1d.2 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca] (rev 01)
00:1d.3 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb] (rev 01)
00:1d.7 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc] (rev 01)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation NM10 Family LPC Controller [8086:27bc] (rev 01)
00:1f.2 IDE interface [0101]: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] [8086:27c0] (rev 01)
00:1f.3 SMBus [0c05]: Intel Corporation NM10/ICH7 Family SMBus Controller [8086:27da] (rev 01)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 03)
02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
05:00.0 Ethernet controller [0200]: SysKonnect SK-9871 V2.0 Gigabit Ethernet 1000Base-ZX Adapter, PCI64, Fiber ZX/SC [1148:4320] (rev 15)
== END   lspci -nn ==

== BEGIN lsusb ==
Bus 004 Device 002: ID 0a5c:21e3 Broadcom Corp. HP Portable Valentine
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
== END   lsusb ==

== BEGIN rpm -qa kmod\* kmdl\* ==
== END   rpm -qa kmod\* kmdl\* ==

== BEGIN ifconfig -a ==
eth0      Link encap:Ethernet  HWaddr 70:71:BC:B0:95:5D  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:71381259 errors:0 dropped:1 overruns:0 frame:0
          TX packets:62050556 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:37115161180 (34.5 GiB)  TX bytes:52998879689 (49.3 GiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:46:46:A2:11  
          inet addr:192.168.50.1  Bcast:192.168.50.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:46ff:fe46:a211/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37605978 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53052144 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:21664255781 (20.1 GiB)  TX bytes:35093213453 (32.6 GiB)
          Interrupt:21 

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:16436  Metric:1
          RX packets:18090 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18090 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1468292 (1.4 MiB)  TX bytes:1468292 (1.4 MiB)

pan0      Link encap:Ethernet  HWaddr C2:0B:34:70:B6:0D  
          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:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:123.231.213.132  P-t-P:10.0.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:2011 errors:0 dropped:0 overruns:0 frame:0
          TX packets:754 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:204415 (199.6 KiB)  TX bytes:145482 (142.0 KiB)

wlan0     Link encap:Ethernet  HWaddr E0:06:E6:42:34:22  
          inet addr:192.168.40.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP 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)

== END   ifconfig -a ==

== BEGIN route -n ==
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
10.0.0.1        0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0 wlan0
192.168.40.0    0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.50.0    0.0.0.0         255.255.255.0   U     1      0        0 eth1
== END   route -n ==

== BEGIN sysctl -a | grep .rp_filter ==
net.ipv4.conf.all.arp_filter = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.arp_filter = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.eth0.arp_filter = 0
net.ipv4.conf.eth0.rp_filter = 1
net.ipv4.conf.eth1.arp_filter = 0
net.ipv4.conf.eth1.rp_filter = 1
net.ipv4.conf.lo.arp_filter = 0
net.ipv4.conf.lo.rp_filter = 1
net.ipv4.conf.pan0.arp_filter = 0
net.ipv4.conf.pan0.rp_filter = 1
net.ipv4.conf.ppp0.arp_filter = 0
net.ipv4.conf.ppp0.rp_filter = 1
net.ipv4.conf.wlan0.arp_filter = 0
net.ipv4.conf.wlan0.rp_filter = 1
== END   sysctl -a | grep .rp_filter ==

== BEGIN ip rule show ==
0:      from all lookup local 
32766:  from all lookup main 
32767:  from all lookup default 
== END   ip rule show ==

== BEGIN ip route show ==
default dev ppp0  scope link 
10.0.0.1 dev ppp0  proto kernel  scope link  src 123.231.213.132 
169.254.0.0/16 dev eth0  scope link  metric 1002 
169.254.0.0/16 dev wlan0  scope link  metric 1004 
192.168.40.0/24 dev wlan0  proto kernel  scope link  src 192.168.40.1 
192.168.50.0/24 dev eth1  proto kernel  scope link  src 192.168.50.1  metric 1 
== END   ip route show ==

== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
search ro
nameserver 8.8.8.8
nameserver 8.8.4.4
== END   cat /etc/resolv.conf ==

== BEGIN egrep 'net|hosts' /etc/nsswitch.conf ==
#hosts:     db files nisplus nis dns
hosts:      files dns
#networks:   nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     
netmasks:   files
networks:   files
netgroup:   nisplus
== END   egrep 'net|hosts' /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager  0:off   1:off   2:on    3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
wpa_supplicant  0:off   1:off   2:off   3:off   4:off   5:off   6:off
== END   chkconfig --list | grep -Ei 'network|wpa' ==
However, when I uncomment in ifcfg-wlan0 the line:
#ESSID="GunFighT"

When I make a /etc/init.d/network restart, prints the following:
Code:
[root@gunfight network-scripts]# /etc/init.d/network restart
Shutting down interface ppp0:                              [  OK  ]
Shutting down interface eth0:                              [  OK  ]
Shutting down interface eth1:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down interface wlan0:                             [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  RTNETLINK answers: File exists
                                                           [  OK  ]
Bringing up interface eth1:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/4077
                                                           [  OK  ]
Bringing up interface wlan0:  Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/4078

** (process:12483): WARNING **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/4078: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist


state: unknown
Error: Connection activation failed.
                                                           [FAILED]
Bringing up interface ppp0:                                [  OK  ]
1st of all, I whant to config the interface as access point (AP).
2nd, I whant to resolve the problem with the following error:
Bringing up interface wlan0: Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/4078

** (process:12483): WARNING **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/4078: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist.

I`ve maked a search over internet, and didn`t got any relevant solutions.
Can someone provide some hints, suggestions?

Thank you!
 
Old 03-13-2015, 06:46 AM   #2
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian/Ubuntu, Rocky Linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
FeedBack:
Installed hostapd;
Code:
yum install hostapd -y
After configuration of hostapd.conf:
Code:
[root@gunfight hostapd]# /etc/init.d/hostapd start
Starting hostapd: /etc/hostapd/hostapd.confConfiguration file: /etc/hostapd/hostapd.conf
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
                                                           [FAILED]
Troubleshooting; I`ll get back with feedback.
If someone have`s any suggestions, hints, please reply.

Thank you!

Last edited by GunFighT; 03-13-2015 at 06:48 AM. Reason: grammatical corrections
 
Old 03-14-2015, 10:56 AM   #3
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian/Ubuntu, Rocky Linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
FeedBack:
Found out that the:
Code:
Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
have`s AP support only from kernel newer then kernel.3.10.
So is time for new task... 1st updateing kernel.

I`ll get back with feedback.
If someone have`s any suggestions, hints, please reply.

Thank you!
 
Old 03-16-2015, 05:52 PM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 700

Rep: Reputation: 212Reputation: 212Reputation: 212
Try the "iw" tool; I like it better for wireless. Make sure the card works first and can find stuff before setting up an AP.

Code:
iw phy
and see what it says under "Supported interface modes".

Code:
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
Put the interface down, like 'ip link set wlan0 down'. Then set it managed mode, like 'iw dev wlan0 set type managed'. Put the interface back up and try to see networks, like 'iw dev wlan0 scan'. You'll likely see something if you live in a city. THEN you can configure hostapd, start it, and maybe use (ISC) dhcpd to hand out IP addresses. That's the setup I have with an Atheros (ath9k) card.
 
Old 04-01-2017, 04:33 PM   #5
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian/Ubuntu, Rocky Linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
[SOLVED] with the new kernel update.

Was all about the drivers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to connect wlan0 to static access point Lieyza Linux - Networking 4 09-25-2012 12:40 PM
[CentOS 5/Bind/Apache2]Setting up subdomains to point to specified directories ThreeDFX Linux - Server 4 06-19-2011 08:12 PM
Help setting up a wireless access point. tehflash Linux - Wireless Networking 4 01-11-2009 12:14 PM
setting up an ASUS mobile access point ?? dimgr Linux - Wireless Networking 2 11-19-2004 12:02 PM
Setting UP a Access Point for Gateway extremebfn Linux - Networking 2 08-19-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration