LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-26-2011, 04:54 PM   #1
DBRalir
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Question Creating a non-transparent network bridge in Debian?


Hello,
I am trying to set up a network like this:
Internet <---> Router <---> Debian server <---> Windows PC

I want the server and PC to both have internet access, and I want to be able to forward ports from the router to the server.

I know how to configure the server to give the PC internet access, but how would I assign an IP address to the server and give it internet access? I have used a very similar setup a few years ago, but I can't remember how to do this.

Any help would be appreciated.
 
Old 04-27-2011, 07:49 AM   #2
mgai7755
Member
 
Registered: Apr 2011
Posts: 51

Rep: Reputation: 10
Hi,

Why wouldn't you configure your router to forward or block what you want/don't want on each machine on the network ?
 
Old 04-27-2011, 02:18 PM   #3
DBRalir
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
I am using the router to forward traffic, but the problem is that I can't forward traffic from the router to the server because the router cannot "see" the server, which I presume is because bridges are transparent by default. Therefore, I need a way to set up the server to act as a network bridge, but still be a client on the network.

I have the server acting as a bridge, but I need a way to make it visible to the router. Looking in the network map on the PC, it currently shows the server as a switch.

I've been trying different things, and since I'm sure that my bridge configuration is correct, I think the router may be just be finally giving up on me (it's a bit old).

If I can find another router somewhere, I'll try it out and see if that's the problem.
 
Old 04-27-2011, 04:55 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
just give your bridge an ip address:
Code:
ifconfig br0 inet ##.##.##.##
(assuming that your bridge is called br0 and the ip address you wish to assign is ##.##.##.##)
 
Old 04-27-2011, 07:51 PM   #5
DBRalir
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Ah, I forgot that you can use ifconfig with bridges. That didn't exactly solve my problem though, I had to tweak my router a bit. I had to set up the bridge and then restart the router for it to be recognized.

Thanks for the help.
 
  


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
Debian Lenny + Xen Network Bridge Problems wmrwl Linux - Networking 0 09-25-2009 12:30 PM
Debian bridge-utils via /etc/network/interfaces uhcafigdc Linux - Networking 3 12-10-2008 01:24 PM
Trouble creating network bridge amhso Linux - Networking 6 01-20-2007 08:46 PM
how to configure non transparent bridge? mehuljv Linux - Newbie 0 04-25-2005 08:30 AM
Having problems creating a network bridge. Royle Linux - Networking 1 08-16-2004 09:22 AM

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

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