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 08-12-2017, 04:24 PM   #1
eyeheartpi
LQ Newbie
 
Registered: Aug 2007
Location: Bucharest, Romania
Distribution: Slackware 14.2
Posts: 2

Rep: Reputation: 1
Slackware VLAN support in rc.inet1


Hello,

I'm working on a project to use a raspberry Pi 3 as a secondary (failover) gateway in my home network.
I installed SArPI (thanks guys for your awesome work) and proceeded to work.

Anyway, I'm currently using VLANs on my main Debian router and needed the rPi to use them as well.
I quickly found out there's no support in Slackware for VLANs - not in rc.inet1 at least - with people suggesting all kinds of useful (but unusable for me) workarounds.

Point is, I've added support for VLANs in rc.inet1 for my project and thought of sharing it with you guys as well; maybe somebody finds it useful.

As my rPi is running -current but my desktop 14.2, I saw there are some small differences between the two; I'll attach both as soon as I find out how to upload files...

Cheers
 
Old 08-13-2017, 06:19 PM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Compose a post in Advanced mode (it has a "Preview Post" button associated with it. Now from "Manage ATtachments" button further down on the left a popup widget will allow you to browse for the file(s) you want to attach. It/they need to be in an approved format (probably .txt in your case, so ensure (if necessary) you're renamed the target file(s) appropriately. When selected, press Upload button. Then send post.

chris
 
Old 08-14-2017, 05:54 AM   #3
eyeheartpi
LQ Newbie
 
Registered: Aug 2007
Location: Bucharest, Romania
Distribution: Slackware 14.2
Posts: 2

Original Poster
Rep: Reputation: 1
Cool, thanks for the info.
I've attached two files, one for each version.

How to use this:
The interfaces should be configured as usual, in rc.inet1.conf; for configuring a VLAN 50 (ex under eth0, you would add the following in rc.inet1.conf:
IFNAME[0]="eth0.50"

with the rest being the same as before.

The 8021q module should also be loaded before rc.inet1 gets executed.
I've dug around for the correct place to add this but ended up executing /etc/rc.d/rc.modules.local from within /etc/rc.d/rc.modules.

Maybe there are other, better ways of doing this.
Attached Files
File Type: txt rc.inet1.current.txt (13.0 KB, 163 views)
File Type: txt rc.inet1.14.2.txt (12.7 KB, 145 views)
 
1 members found this post helpful.
  


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
[SOLVED] Slackware 14.2RC2 - rc.inet1 linuxxer Slackware 9 05-13-2016 12:53 PM
rc.inet1 patch for bonding support Celyr Slackware 0 08-10-2012 11:17 AM
VLAN support for kernel 2.6.9 ?? realmccoy Linux - Networking 1 03-13-2006 01:59 PM
Copy of Slackware 9.1 rc.inet1 Looking_Lost Slackware 3 10-30-2003 08:57 AM
Slackware 9.1 Rc.inet1 help Psyman014 Slackware 3 10-03-2003 08:10 AM

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

All times are GMT -5. The time now is 11:53 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