LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-09-2012, 10:49 AM   #1
slackinux
LQ Newbie
 
Registered: Sep 2009
Location: Italy
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Question Dynamic network configuration.


Hi to all !

I have a notebook with Slackware 14; I work with different LAN and different IP configuration: static IP, DHCP, bugged DHCP, WiFi, etc.

I use Network Manager, but it does not fit my needs.

I would use a dynamic setup like Debian's guessnet.

Is there any software for Slackware ?

Thank you in advance.
 
Old 11-09-2012, 01:11 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by slackinux View Post
Hi to all !

I have a notebook with Slackware 14; I work with different LAN and different IP configuration: static IP, DHCP, bugged DHCP, WiFi, etc.

I use Network Manager, but it does not fit my needs.
...
What exactly are your needs? and what exactly doesn't work?

Markus
 
Old 11-10-2012, 05:18 AM   #3
slackinux
LQ Newbie
 
Registered: Sep 2009
Location: Italy
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
What exactly are your needs? and what exactly doesn't work?

Markus
"Network Manager" works; but I have to set manually the network; all the times !

Also, until I don't apply the correct network configuration, automatic services (like qmail, fetchmail, ntp, etc.) do not work.

I need a software that selects "automagically" the network configuration (at boot time); it should choose the network configuration to apply, due to the:
- responses from a set of tests;
- mappings between test set and networks.

The tests should be based on formal rules predefined at system configuration level (i.e. ping o arping response, ESSID detection, etc.).

- Example (pseudo DSL) --------------------

test_1: ping 123.56.45.21
test_2: essid "FASTWEB-1-0dsadeYFzQK"
test_3: eth2 missing_cable

config_1:
iface eth2
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1

config_2:
iface eth2
address 10.45.1.15
netmask 255.255.0.0
broadcast 10.45.255.255
gateway 10.45.1.1
dns-nameservers 145.125.26.23

config_3:
iface wlan0
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1

map_1:
if test_1 and not test_3 then config_1

map_2:
if test_2 and test_3 then config_3

map_3:
if test_2 then config_2

map_4:
else dhcp

for m in map_[1234]: execute m
-----------------------------------------


Thanks
 
Old 11-10-2012, 06:04 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Does any of the networks provide DHCP?

Markus
 
Old 11-11-2012, 01:02 PM   #5
slackinux
LQ Newbie
 
Registered: Sep 2009
Location: Italy
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Does any of the networks provide DHCP?

Markus
Some network provides DHCP; but I need specific configuration.

For example, I need to use specific static IP and query nameserevers other than released by DHCP.
 
Old 11-11-2012, 01:10 PM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Well, when there's DHCP available, you can find out (automatically) in which network you are, so you could write a script which, depending on the dynamic configuration, creates a static one.

It would be more difficult to (automatically) find out in which network you are if there is no DHCP.

Markus
 
Old 11-11-2012, 05:53 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
With NetworkManager you can have scripts in /etc/NetworkManager/dispatcher.d/ to handle connection customisation. I use this for handling my iptables rules. e.g. http://www.linuxquestions.org/questi...1/#post4579765
 
  


Reply



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
Squid / IPTables configuration: Dynamic IP Address provided by ISP vikram_cvk Linux - Networking 2 11-06-2009 08:59 AM
ics dynamic dns and dhcp configuration problem sat2phant Linux - Server 0 02-12-2008 11:56 AM
Dynamic DNS with static IP configuration nsvora Linux - Networking 6 12-10-2006 02:06 AM
Network - dynamic ip Skaan Linux - Networking 2 05-27-2005 08:19 AM
dynamic network views bartgymnast Linux - Networking 4 02-20-2003 10:04 PM

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

All times are GMT -5. The time now is 05:11 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
Open Source Consulting | Domain Registration