LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2007, 02:57 PM   #1
Grawp
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Arrow How to create bridge and how to create hub?


1. How to create a bridge between two connection? (Please give me an example with explanation (not only "Use brctl."))
2. How to create something similiar like hub in linux-based systems?
I have multiple LAN connections and i want to be something like router (with ability to filter routes - for example block sending packets from eth0 to eth3 on port 35274, or block sending all packets from eth1 to localhost and so on)
 
Old 04-21-2007, 04:46 PM   #3
Grawp
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
when eth0 is connected to internet and eth1 to my friend and I bridge eth0 and eth1 i won't be able to access internet nor my friend, will I?
 
Old 04-22-2007, 03:15 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there's not enough information there to say... what does "connected to internet" mean? behind an adsl router? if so it should be fine. if your own pc holds the public ip on a ppp / pppoe connectoin etc... then you can't normally bridge that, it'd need masquarading and routing instead.
 
Old 04-22-2007, 04:19 AM   #5
Grawp
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for Ok, i will now try to explain better what i want:
I have 3 computer, but i don't have a hub.
f.e.:
PC1
PC2 - PC1 and PC3 is connected to PC2
PC3

If I bridge eth0 and eth1 (on PC2) the PC2 will behave like a switch or piece of network cable and PC2 won't be able to send unicast or multicast, actually nothing, to PC1 or PC2. And i want PC1, PC2 and PC to be able communicate like they were connected to a hub.
 
Old 04-22-2007, 05:10 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you've still not said what form your internet connection takes, but yes you *could* bridge three nics if you want. but really... $10 for a cheap switch is a vastly better approach.
 
  


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
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 08:48 AM
Cannot create Network Bridge between LAN and WEB Hunza Linux - Networking 4 05-12-2004 01:58 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
access point in bridge mode, like a switch or a hub? zaphodiv Linux - Wireless Networking 1 02-16-2004 05:04 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:52 AM.

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