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 01-31-2022, 01:19 PM   #1
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Rep: Reputation: 10
Network bridge confusion


Hello, so my "idea" is;

eth0 - static IP for "the system"
eth1 - bridge br0 (static ip)
eth2 - bridge br1 (static ip)

I am assigning 1 Static IP on eth0 and then assigning a static ip to each br0 associated to it's ethx.
My /etc/rc.d/rc.inte1.conf looks;

# Config information for eth0:
IPADDR[0]="192.168.4.177"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.4.1"

IFNAME[0]="br0"
BRNICS[0]="eth1"
IPADDR[0]="192.168.4.179"
NETMASK[0]="255.255.255.0"
#USE_DHCP[0]=""
#DHCP_HOSTNAME[0]=""


IFNAME[0]="br1"
BRNICS[0]="eth2"
IPADDR[0]="192.168.4.180"
NETMASK[0]="255.255.255.0"
#USE_DHCP[0]=""
#DHCP_HOSTNAME[0]=""

But my ifconfig output is;

br1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.180 netmask 255.255.255.0 broadcast 192.168.4.255
inet6 fe80::1e98:ecff:fe17:1f4a prefixlen 64 scopeid 0x20<link>
ether 1c:98:ec:17:1f:4a txqueuelen 1000 (Ethernet)
RX packets 3526 bytes 1777809 (1.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3186 bytes 556815 (543.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth2: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet6 fe80::1e98:ecff:fe17:1f4a prefixlen 64 scopeid 0x20<link>
ether 1c:98:ec:17:1f:4a txqueuelen 1000 (Ethernet)
RX packets 3647 bytes 1850081 (1.7 MiB)
RX errors 0 dropped 28 overruns 0 frame 0
TX packets 3260 bytes 577187 (563.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 5 bytes 289 (289.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 289 (289.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

WEIRD thing is, if I just have eth0 and then eth1 (br0) it works fine but when I add the second br1 it all goes to hell.But right now it eliminates br0 and eth0 and uses br1!(for system)

Last edited by BAcidEvil; 01-31-2022 at 01:21 PM.
 
Old 01-31-2022, 01:53 PM   #2
tadgy
Member
 
Registered: May 2018
Location: UK
Distribution: Slackware (servers), Void (desktop/laptop)
Posts: 304

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
What version of Slackware are you using?

There's a new configuration syntax for -currnent/15.0.

But your problem is that you are defining every interface with a [0] indices to the arrays. That number needs to increase for each set of parameters you define for each interface.

Eg, first interface (eth0) with [0], second (br0) with [1], and third (br1) with [2] - comment out all other interface specifications, including the ones you're not using.
 
Old 01-31-2022, 02:23 PM   #3
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by tadgy View Post
What version of Slackware are you using?

There's a new configuration syntax for -currnent/15.0.

But your problem is that you are defining every interface with a [0] indices to the arrays. That number needs to increase for each set of parameters you define for each interface.

Eg, first interface (eth0) with [0], second (br0) with [1], and third (br1) with [2] - comment out all other interface specifications, including the ones you're not using.

Hello..

Slack 14.2 (latest updates)

OHHHH My Gosh. You are right I had the increases wrong I was copy/paste and did not even notice!

Lemme retry it ty
 
Old 01-31-2022, 02:28 PM   #4
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by tadgy View Post
What version of Slackware are you using?

There's a new configuration syntax for -currnent/15.0.

But your problem is that you are defining every interface with a [0] indices to the arrays. That number needs to increase for each set of parameters you define for each interface.

Eg, first interface (eth0) with [0], second (br0) with [1], and third (br1) with [2] - comment out all other interface specifications, including the ones you're not using.
Holy cow it works!

MY main IP on the box is as should, my email1 vm is as should and 2nd email vm works as should.
Thank you so much you made my day.
 
  


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
LXer: Intel SNA Performance Of Sandy Bridge, Ivy Bridge, Haswell LXer Syndicated Linux News 0 10-13-2013 11:02 PM
Bridge Networking: Access VM behind bridge from outside lin_user2004 Linux - Networking 9 07-26-2013 04:30 AM
bridge / qemu - bridge is natting multicast traffic eantoranz Linux - Networking 1 12-31-2012 06:46 PM
[SOLVED] To bridge or not to bridge (network) Adol Linux - Newbie 2 02-03-2012 09:03 AM
LXer: RC6 To Be Flipped On For Sandy Bridge, Ivy Bridge LXer Syndicated Linux News 0 12-11-2011 06:12 AM

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

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