LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2019, 09:09 AM   #16
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,296

Rep: Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206

No, just giving an IP address is not aq good idea. Please just take a little time to read about IP.
 
Old 07-06-2019, 10:27 AM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,388
Blog Entries: 31

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
Member Response

Hi,

When you are using networkmanager then the '/etc/rc.d/rc.inet1.conf' should be in the default state (original install state). Plus be sure to change '/etc/rc.d/rc.networkmanager' to executable state.

For /etc/rc.d/rc.inet1.conf' option 'USE_DHCP[0]=""' instead of USE_DHCP[0]="no" the null will not set anything for the device[0];
Quote:
From /etc/rc.d/rc.inet1.conf;

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================
Personally, I prefer to not use networkmanager but setup my systems statically. My Laptops do not move much except when I leave for Florida for the winter. Then I will setup a small netbook for when I need to link for mobile use.

If you want to interchange Ethernet use then you can look at;
Quote:
ifplugd <- 'ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. ifplugd interfaces with your distribution's native network configuration utilities.'
Hope this helps.
Have fun & enjoy Slackware!
 
Old 07-06-2019, 10:31 AM   #18
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 223

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by 273 View Post
No, just giving an IP address is not aq good idea. Please just take a little time to read about IP.
I'm well aware of Internet Protocol addressing. Of the 32 internet connected devices in my home 26 have static addresses. Of the 6 with dynamic addresses, 3 have address reservations based on MAC address.
One of my Windows laptops has a static ethernet address and a dynamic wireless address, it works fine. This is the second laptop I've installed Slackware on, the first one had 13.37 and I don't recall having this issue, but that was several years ago.
 
Old 07-06-2019, 10:36 AM   #19
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 223

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by GazL View Post
I replaced rc.inet1 with this:
Code:
#!/bin/sh

case "${1:-start}" in
	start)  echo "Starting Network Interfaces..."
		ip -batch - <<-EOF
			address flush dev lo
			address add 127.0.0.1 dev lo
			link set lo up
		EOF

		if  [ ! -e /var/run/wpa_supplicant/wlan0 ]; then
			iw reg set GB
			wpa_supplicant -B -c /etc/wpa_supplicant/wlan0.conf -i wlan0 >/dev/null
		fi
		dhcpcd -q -b -L -M wlan0 eth0
		;;
	stop)   echo "Stopping Network Interfaces..."
		dhcpcd -q -k
		sleep 2
		ip -batch - <<-EOF
			link set eth0 down
			link set wlan0 down
		EOF
		if [ -e /var/run/wpa_supplicant/wlan0 ]; then 
			wpa_cli -i wlan0 terminate >/dev/null
		fi
		;;
esac
I tried this solution, it didn't work on this machine, WIFI would connect/disconnect randomly.
 
Old 07-06-2019, 10:46 AM   #20
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 223

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by onebuck View Post

If you want to interchange Ethernet use then you can look at;
Quote:
ifplugd <- 'ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. ifplugd interfaces with your distribution's native network configuration utilities.'
Hope this helps.
Have fun & enjoy Slackware!
This does look interesting, it is rather old. Will it work with 14.2?
 
Old 07-06-2019, 02:22 PM   #21
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,036
Blog Entries: 16

Rep: Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667
Quote:
Originally Posted by ceh383 View Post
I tried this solution, it didn't work on this machine, WIFI would connect/disconnect randomly.
The modified rc.inet1 script shouldn't have any bearing on the wifi dropping out as that's all internal to wpa_supplicant. All I can say is that it's been rock solid here. Oh well, was worth a go.
 
Old 07-06-2019, 03:34 PM   #22
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,082

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Quote:
Originally Posted by ceh383 View Post
I tried this solution, it didn't work on this machine, WIFI would connect/disconnect randomly.
This issue happens sometimes with Network Manager as well, and the solution there is to use dhclient instead of dhcpcd. You could try that here.
 
1 members found this post helpful.
Old 07-06-2019, 04:34 PM   #23
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 223

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by bassmadrigal View Post
This issue happens sometimes with Network Manager as well, and the solution there is to use dhclient instead of dhcpcd. You could try that here.
Just implemented this change, so far it looks stable. I'll give it some time before I mark this as solved, only time will tell.

Thank you and thank all who pitched in.
 
1 members found this post helpful.
  


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 fix:UDP packet send through vlan(eth0.4092), reaching at both eth0 and eth0.4092 arjuncr Linux - Networking 1 02-19-2019 02:37 PM
eth0 and wlan0 vs wlan0 problem player107 Linux - Wireless Networking 3 02-25-2013 09:54 AM
vnStat - if pointed to eth0 will it aggregate eth0 and eth0:1 alias stardotstar Linux - Networking 0 07-20-2010 07:49 PM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration