How to set up a Wifi Hotspot on ubuntu14.04 and set 192.168.42.1 as wlan0 address?

Multi tool use
I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections
file is shown below.
[connection]
id=hotspott
uuid=03eb0f63-e766-41df-bc04-0f30740f6841
type=802-11-wireless
[802-11-wireless]
ssid=machCochin
mode=ap
mac-address=B0:C0:90:68:EE:73
[ipv6]
method=auto
[ipv4]
method=manual
address1=192.168.42.1/24,192.168.42.1
This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared
and at that time I can join to the network from my phone but it assigned with a dynamic address.
How to create static IP for wlan0 when working as hotspot?
14.04 networking wireless network-manager
add a comment |
I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections
file is shown below.
[connection]
id=hotspott
uuid=03eb0f63-e766-41df-bc04-0f30740f6841
type=802-11-wireless
[802-11-wireless]
ssid=machCochin
mode=ap
mac-address=B0:C0:90:68:EE:73
[ipv6]
method=auto
[ipv4]
method=manual
address1=192.168.42.1/24,192.168.42.1
This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared
and at that time I can join to the network from my phone but it assigned with a dynamic address.
How to create static IP for wlan0 when working as hotspot?
14.04 networking wireless network-manager
add a comment |
I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections
file is shown below.
[connection]
id=hotspott
uuid=03eb0f63-e766-41df-bc04-0f30740f6841
type=802-11-wireless
[802-11-wireless]
ssid=machCochin
mode=ap
mac-address=B0:C0:90:68:EE:73
[ipv6]
method=auto
[ipv4]
method=manual
address1=192.168.42.1/24,192.168.42.1
This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared
and at that time I can join to the network from my phone but it assigned with a dynamic address.
How to create static IP for wlan0 when working as hotspot?
14.04 networking wireless network-manager
I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections
file is shown below.
[connection]
id=hotspott
uuid=03eb0f63-e766-41df-bc04-0f30740f6841
type=802-11-wireless
[802-11-wireless]
ssid=machCochin
mode=ap
mac-address=B0:C0:90:68:EE:73
[ipv6]
method=auto
[ipv4]
method=manual
address1=192.168.42.1/24,192.168.42.1
This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared
and at that time I can join to the network from my phone but it assigned with a dynamic address.
How to create static IP for wlan0 when working as hotspot?
14.04 networking wireless network-manager
14.04 networking wireless network-manager
asked Feb 21 at 4:05


mcvmcv
84
84
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
May be you can't connect because, NetworkManager creates an ad-hoc AP.
I would recommend to use create_ap
. It's a simple script that simplifies the use of hostapd
and iptables and dnsmasq.
Just clone it at github with:
git clone https://github.com/oblique/create_ap.git
Then you need some dependancies, if you don't have them installed:
sudo apt-get install iptables dnsmasq hostapd
And then, you can run it from the create_ap directory:
cd create_ap
sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase
You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1
switch to create_ap
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120002%2fhow-to-set-up-a-wifi-hotspot-on-ubuntu14-04-and-set-192-168-42-1-as-wlan0-addres%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
May be you can't connect because, NetworkManager creates an ad-hoc AP.
I would recommend to use create_ap
. It's a simple script that simplifies the use of hostapd
and iptables and dnsmasq.
Just clone it at github with:
git clone https://github.com/oblique/create_ap.git
Then you need some dependancies, if you don't have them installed:
sudo apt-get install iptables dnsmasq hostapd
And then, you can run it from the create_ap directory:
cd create_ap
sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase
You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1
switch to create_ap
add a comment |
May be you can't connect because, NetworkManager creates an ad-hoc AP.
I would recommend to use create_ap
. It's a simple script that simplifies the use of hostapd
and iptables and dnsmasq.
Just clone it at github with:
git clone https://github.com/oblique/create_ap.git
Then you need some dependancies, if you don't have them installed:
sudo apt-get install iptables dnsmasq hostapd
And then, you can run it from the create_ap directory:
cd create_ap
sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase
You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1
switch to create_ap
add a comment |
May be you can't connect because, NetworkManager creates an ad-hoc AP.
I would recommend to use create_ap
. It's a simple script that simplifies the use of hostapd
and iptables and dnsmasq.
Just clone it at github with:
git clone https://github.com/oblique/create_ap.git
Then you need some dependancies, if you don't have them installed:
sudo apt-get install iptables dnsmasq hostapd
And then, you can run it from the create_ap directory:
cd create_ap
sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase
You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1
switch to create_ap
May be you can't connect because, NetworkManager creates an ad-hoc AP.
I would recommend to use create_ap
. It's a simple script that simplifies the use of hostapd
and iptables and dnsmasq.
Just clone it at github with:
git clone https://github.com/oblique/create_ap.git
Then you need some dependancies, if you don't have them installed:
sudo apt-get install iptables dnsmasq hostapd
And then, you can run it from the create_ap directory:
cd create_ap
sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase
You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1
switch to create_ap
answered Feb 21 at 10:05
solsTiCesolsTiCe
6,31632050
6,31632050
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120002%2fhow-to-set-up-a-wifi-hotspot-on-ubuntu14-04-and-set-192-168-42-1-as-wlan0-addres%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
eOq c7IgxhNLXsrWF4Hcof,gG5Ih