Beaglebone Debian/Wheezy. Static IP address some times is changedDebian Squeeze as a routerAccess Point offers itself IP if used as DHCP Server?isc-dhcp-server conflicting with /etc/network/interfaces - Multiple instances match the same subnetHow to configure raspberry to get a static IP without auto assigning a DHCP IP?Cannot configure wlan0 with static ip?Getting “no IPv4 addresses” With isc-dhcp-server And SubinterfacesRaspberry Pi 3 B as VPN Hotspot - No Internet on Client Side - Two Wi-Fi AdaptersDhclient not updating /etc/resolv.confCan't start isc-dhcp-server because of the Error : Not configured to listen on any interfaces!Cubietruck not receiving DHCP address from server
Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads
Best way to store options for panels
Hide Select Output from T-SQL
Why "be dealt cards" rather than "be dealing cards"?
What to do with wrong results in talks?
How can I replace every global instance of "x[2]" with "x_2"
Why Were Madagascar and New Zealand Discovered So Late?
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Your magic is very sketchy
Star/Wye electrical connection math symbol
Finding all intervals that match predicate in vector
What's the purpose of "true" in bash "if sudo true; then"
How does a character multiclassing into warlock get a focus?
How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?
The baby cries all morning
Products and sum of cubes in Fibonacci
apt-get update is failing in debian
Displaying the order of the columns of a table
Was Spock the First Vulcan in Starfleet?
Can criminal fraud exist without damages?
Can I Retrieve Email Addresses from BCC?
How can I use the arrow sign in my bash prompt?
Valid Badminton Score?
Using parameter substitution on a Bash array
Beaglebone Debian/Wheezy. Static IP address some times is changed
Debian Squeeze as a routerAccess Point offers itself IP if used as DHCP Server?isc-dhcp-server conflicting with /etc/network/interfaces - Multiple instances match the same subnetHow to configure raspberry to get a static IP without auto assigning a DHCP IP?Cannot configure wlan0 with static ip?Getting “no IPv4 addresses” With isc-dhcp-server And SubinterfacesRaspberry Pi 3 B as VPN Hotspot - No Internet on Client Side - Two Wi-Fi AdaptersDhclient not updating /etc/resolv.confCan't start isc-dhcp-server because of the Error : Not configured to listen on any interfaces!Cubietruck not receiving DHCP address from server
I have Beaglebone Black with installation of Debian 7.11 Wheezy
I have network which is created from Beaglebone and the Beaglebone IP address is set to be static: 192.168.20.1
This is my /etc/network/interfaces file:
# The wireless network interface
#allow-hotplug wlan0
auto wlan0
#iface wlan0 inet dhcp
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet static
address 192.168.20.1
netmask 255.255.255.0
When I use static IP 192.168.20.1 I also run hostapd and isc-dhcpd-server services, for can create network with which users can connect to beaglebone:
My isc-dhcp-server is set to put IP address from 192.168.20.3-254
This is my dhcpd.conf file:
subnet 192.168.20.0 netmask 255.255.255.0
range 192.168.20.3 192.168.20.254;
option broadcast-address 192.168.20.255;
default-lease-time 600;
max-lease-time 7200;
I found on deamon.log file for some reason dhclient is probably change the beaglebone IP address
Mar 20 11:36:01 smartgrow dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Mar 20 11:36:01 smartgrow rc.local[717]: sudo: unable to resolve host smartgrow
Mar 20 11:36:02 smartgrow dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Mar 20 11:36:02 smartgrow dhclient: DHCPOFFER from 192.168.20.1
Mar 20 11:36:02 smartgrow dhclient: DHCPACK from 192.168.20.1
Mar 20 11:36:02 smartgrow samba[2929]: Reloading /etc/samba/smb.conf: smbd only.
Mar 20 11:36:02 smartgrow dhclient: bound to 192.168.20.5 -- renewal in 281 seconds.
Mar 20 11:36:04 smartgrow ntpd[864]: Listen normally on 7 wlan0 192.168.20.5 UDP 123
EDIT: The thing which dhclient make something on /etc/rc.local is run on that script
#!/bin/sh
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ] # If file exist
then
version=$(sudo /bin/cat /home/network/option.gse)
if [ "$version" = "static" ]
then
sudo cp /home/scripts/user /etc/network/interfaces
else
sudo cp /home/scripts/dynamic /etc/network/interfaces
fi
else
sudo cp /home/scripts/static /etc/network/interfaces
fi
/etc/init.d/isc-dhcp-server stop
/etc/init.d/hostapd stop
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1') # Get IP address for wlan0
case "$ip" in
192.168.20.* | "")
sudo cp /home/scripts/static /etc/network/interfaces
/etc/init.d/hostapd stop
ifconfig wlan0 192.168.20.1/24
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
sleep 10
wifis=$(iwlist wlan0 scann ;;
*)
grep ESSID ;;
esac
/etc/init.d/samba restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1')
mask=$(/sbin/ifconfig wlan0 | awk '/Mask:/ print $4; ')
gateway=$(ip route show default | awk '/default/ print $3')
My questions is:
Why is something (dhcp) change my static IP address? And how to resolve that, when I put static IP address to not be changed?
debian dhcp beagleboneblack isc-dhcpd dhclient
add a comment |
I have Beaglebone Black with installation of Debian 7.11 Wheezy
I have network which is created from Beaglebone and the Beaglebone IP address is set to be static: 192.168.20.1
This is my /etc/network/interfaces file:
# The wireless network interface
#allow-hotplug wlan0
auto wlan0
#iface wlan0 inet dhcp
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet static
address 192.168.20.1
netmask 255.255.255.0
When I use static IP 192.168.20.1 I also run hostapd and isc-dhcpd-server services, for can create network with which users can connect to beaglebone:
My isc-dhcp-server is set to put IP address from 192.168.20.3-254
This is my dhcpd.conf file:
subnet 192.168.20.0 netmask 255.255.255.0
range 192.168.20.3 192.168.20.254;
option broadcast-address 192.168.20.255;
default-lease-time 600;
max-lease-time 7200;
I found on deamon.log file for some reason dhclient is probably change the beaglebone IP address
Mar 20 11:36:01 smartgrow dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Mar 20 11:36:01 smartgrow rc.local[717]: sudo: unable to resolve host smartgrow
Mar 20 11:36:02 smartgrow dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Mar 20 11:36:02 smartgrow dhclient: DHCPOFFER from 192.168.20.1
Mar 20 11:36:02 smartgrow dhclient: DHCPACK from 192.168.20.1
Mar 20 11:36:02 smartgrow samba[2929]: Reloading /etc/samba/smb.conf: smbd only.
Mar 20 11:36:02 smartgrow dhclient: bound to 192.168.20.5 -- renewal in 281 seconds.
Mar 20 11:36:04 smartgrow ntpd[864]: Listen normally on 7 wlan0 192.168.20.5 UDP 123
EDIT: The thing which dhclient make something on /etc/rc.local is run on that script
#!/bin/sh
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ] # If file exist
then
version=$(sudo /bin/cat /home/network/option.gse)
if [ "$version" = "static" ]
then
sudo cp /home/scripts/user /etc/network/interfaces
else
sudo cp /home/scripts/dynamic /etc/network/interfaces
fi
else
sudo cp /home/scripts/static /etc/network/interfaces
fi
/etc/init.d/isc-dhcp-server stop
/etc/init.d/hostapd stop
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1') # Get IP address for wlan0
case "$ip" in
192.168.20.* | "")
sudo cp /home/scripts/static /etc/network/interfaces
/etc/init.d/hostapd stop
ifconfig wlan0 192.168.20.1/24
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
sleep 10
wifis=$(iwlist wlan0 scann ;;
*)
grep ESSID ;;
esac
/etc/init.d/samba restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1')
mask=$(/sbin/ifconfig wlan0 | awk '/Mask:/ print $4; ')
gateway=$(ip route show default | awk '/default/ print $3')
My questions is:
Why is something (dhcp) change my static IP address? And how to resolve that, when I put static IP address to not be changed?
debian dhcp beagleboneblack isc-dhcpd dhclient
As a first step, find out whydhclientis started at all. Check/etc/rc.localor the position of its startup logs for hints.
– Ferenc Wágner
Mar 22 at 8:40
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
Your/etc/rc.localoverwrites your/etc/network/interfaces, so it's hard to say anything, but why do you think it startsdhclient?
– Ferenc Wágner
yesterday
add a comment |
I have Beaglebone Black with installation of Debian 7.11 Wheezy
I have network which is created from Beaglebone and the Beaglebone IP address is set to be static: 192.168.20.1
This is my /etc/network/interfaces file:
# The wireless network interface
#allow-hotplug wlan0
auto wlan0
#iface wlan0 inet dhcp
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet static
address 192.168.20.1
netmask 255.255.255.0
When I use static IP 192.168.20.1 I also run hostapd and isc-dhcpd-server services, for can create network with which users can connect to beaglebone:
My isc-dhcp-server is set to put IP address from 192.168.20.3-254
This is my dhcpd.conf file:
subnet 192.168.20.0 netmask 255.255.255.0
range 192.168.20.3 192.168.20.254;
option broadcast-address 192.168.20.255;
default-lease-time 600;
max-lease-time 7200;
I found on deamon.log file for some reason dhclient is probably change the beaglebone IP address
Mar 20 11:36:01 smartgrow dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Mar 20 11:36:01 smartgrow rc.local[717]: sudo: unable to resolve host smartgrow
Mar 20 11:36:02 smartgrow dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Mar 20 11:36:02 smartgrow dhclient: DHCPOFFER from 192.168.20.1
Mar 20 11:36:02 smartgrow dhclient: DHCPACK from 192.168.20.1
Mar 20 11:36:02 smartgrow samba[2929]: Reloading /etc/samba/smb.conf: smbd only.
Mar 20 11:36:02 smartgrow dhclient: bound to 192.168.20.5 -- renewal in 281 seconds.
Mar 20 11:36:04 smartgrow ntpd[864]: Listen normally on 7 wlan0 192.168.20.5 UDP 123
EDIT: The thing which dhclient make something on /etc/rc.local is run on that script
#!/bin/sh
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ] # If file exist
then
version=$(sudo /bin/cat /home/network/option.gse)
if [ "$version" = "static" ]
then
sudo cp /home/scripts/user /etc/network/interfaces
else
sudo cp /home/scripts/dynamic /etc/network/interfaces
fi
else
sudo cp /home/scripts/static /etc/network/interfaces
fi
/etc/init.d/isc-dhcp-server stop
/etc/init.d/hostapd stop
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1') # Get IP address for wlan0
case "$ip" in
192.168.20.* | "")
sudo cp /home/scripts/static /etc/network/interfaces
/etc/init.d/hostapd stop
ifconfig wlan0 192.168.20.1/24
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
sleep 10
wifis=$(iwlist wlan0 scann ;;
*)
grep ESSID ;;
esac
/etc/init.d/samba restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1')
mask=$(/sbin/ifconfig wlan0 | awk '/Mask:/ print $4; ')
gateway=$(ip route show default | awk '/default/ print $3')
My questions is:
Why is something (dhcp) change my static IP address? And how to resolve that, when I put static IP address to not be changed?
debian dhcp beagleboneblack isc-dhcpd dhclient
I have Beaglebone Black with installation of Debian 7.11 Wheezy
I have network which is created from Beaglebone and the Beaglebone IP address is set to be static: 192.168.20.1
This is my /etc/network/interfaces file:
# The wireless network interface
#allow-hotplug wlan0
auto wlan0
#iface wlan0 inet dhcp
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet static
address 192.168.20.1
netmask 255.255.255.0
When I use static IP 192.168.20.1 I also run hostapd and isc-dhcpd-server services, for can create network with which users can connect to beaglebone:
My isc-dhcp-server is set to put IP address from 192.168.20.3-254
This is my dhcpd.conf file:
subnet 192.168.20.0 netmask 255.255.255.0
range 192.168.20.3 192.168.20.254;
option broadcast-address 192.168.20.255;
default-lease-time 600;
max-lease-time 7200;
I found on deamon.log file for some reason dhclient is probably change the beaglebone IP address
Mar 20 11:36:01 smartgrow dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Mar 20 11:36:01 smartgrow rc.local[717]: sudo: unable to resolve host smartgrow
Mar 20 11:36:02 smartgrow dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Mar 20 11:36:02 smartgrow dhclient: DHCPOFFER from 192.168.20.1
Mar 20 11:36:02 smartgrow dhclient: DHCPACK from 192.168.20.1
Mar 20 11:36:02 smartgrow samba[2929]: Reloading /etc/samba/smb.conf: smbd only.
Mar 20 11:36:02 smartgrow dhclient: bound to 192.168.20.5 -- renewal in 281 seconds.
Mar 20 11:36:04 smartgrow ntpd[864]: Listen normally on 7 wlan0 192.168.20.5 UDP 123
EDIT: The thing which dhclient make something on /etc/rc.local is run on that script
#!/bin/sh
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ] # If file exist
then
version=$(sudo /bin/cat /home/network/option.gse)
if [ "$version" = "static" ]
then
sudo cp /home/scripts/user /etc/network/interfaces
else
sudo cp /home/scripts/dynamic /etc/network/interfaces
fi
else
sudo cp /home/scripts/static /etc/network/interfaces
fi
/etc/init.d/isc-dhcp-server stop
/etc/init.d/hostapd stop
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1') # Get IP address for wlan0
case "$ip" in
192.168.20.* | "")
sudo cp /home/scripts/static /etc/network/interfaces
/etc/init.d/hostapd stop
ifconfig wlan0 192.168.20.1/24
ip addr flush dev wlan0
ip link set wlan0 up
/etc/init.d/networking restart
sleep 10
wifis=$(iwlist wlan0 scann ;;
*)
grep ESSID ;;
esac
/etc/init.d/samba restart
ip=$(/sbin/ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk 'print $1')
mask=$(/sbin/ifconfig wlan0 | awk '/Mask:/ print $4; ')
gateway=$(ip route show default | awk '/default/ print $3')
My questions is:
Why is something (dhcp) change my static IP address? And how to resolve that, when I put static IP address to not be changed?
debian dhcp beagleboneblack isc-dhcpd dhclient
debian dhcp beagleboneblack isc-dhcpd dhclient
edited yesterday
evelikov92
asked Mar 21 at 8:08
evelikov92evelikov92
1005
1005
As a first step, find out whydhclientis started at all. Check/etc/rc.localor the position of its startup logs for hints.
– Ferenc Wágner
Mar 22 at 8:40
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
Your/etc/rc.localoverwrites your/etc/network/interfaces, so it's hard to say anything, but why do you think it startsdhclient?
– Ferenc Wágner
yesterday
add a comment |
As a first step, find out whydhclientis started at all. Check/etc/rc.localor the position of its startup logs for hints.
– Ferenc Wágner
Mar 22 at 8:40
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
Your/etc/rc.localoverwrites your/etc/network/interfaces, so it's hard to say anything, but why do you think it startsdhclient?
– Ferenc Wágner
yesterday
As a first step, find out why
dhclient is started at all. Check /etc/rc.local or the position of its startup logs for hints.– Ferenc Wágner
Mar 22 at 8:40
As a first step, find out why
dhclient is started at all. Check /etc/rc.local or the position of its startup logs for hints.– Ferenc Wágner
Mar 22 at 8:40
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
Your
/etc/rc.local overwrites your /etc/network/interfaces, so it's hard to say anything, but why do you think it starts dhclient?– Ferenc Wágner
yesterday
Your
/etc/rc.local overwrites your /etc/network/interfaces, so it's hard to say anything, but why do you think it starts dhclient?– Ferenc Wágner
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f507647%2fbeaglebone-debian-wheezy-static-ip-address-some-times-is-changed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f507647%2fbeaglebone-debian-wheezy-static-ip-address-some-times-is-changed%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
-beagleboneblack, debian, dhclient, dhcp, isc-dhcpd
As a first step, find out why
dhclientis started at all. Check/etc/rc.localor the position of its startup logs for hints.– Ferenc Wágner
Mar 22 at 8:40
@FerencWágner Actually the dhclient is doing something in /etc/rc.local, but the change of IP address from static to dynamic is happen few minutes/hours later, after /etc/rc.local was executed. I edit my question what I doing on /etc/rc.local
– evelikov92
yesterday
Your
/etc/rc.localoverwrites your/etc/network/interfaces, so it's hard to say anything, but why do you think it startsdhclient?– Ferenc Wágner
yesterday