Link to home
Start Free TrialLog in
Avatar of tabush
tabush

asked on

Bridge network adapters on Linux (ET)

I installed a dual nic card into my Fedora Linux box. I am trying to bridge the two network adapters but i cannot get it working properly. So far it tried the following commands:

su -
brctl addbr br0
brctl addif br0 p1p1 p2p1
    (p1p1 and p2p1 are the names of my network adapters)

I also tried the commands on this page but not working either: http://tdistler.com/2011/06/10/netem-wan-emulation-how-to-setup-a-netem-box 

I did this a few months back and got it working but cannot remember what i did (should have wrote it down). I think i had to use the dhclient command but dont remember exactly how i used it. Can anyone lend a hand?
Avatar of gheist
gheist
Flag of Belgium image

ifconfig up is missing.
Avatar of tabush
tabush

ASKER

The linux computer is connected to the internet but my windows pc (the bridged computer) cannot connect. When i do an 'ipconfig' its has an IP address however it cannot connect to the outside internet. Any idea why?
Because your internet provides supplies you with single IP address?
Avatar of tabush

ASKER

Can you explain further? Is there something else i need to do so this will work?
How do you assign IPs to your computers?
Avatar of tabush

ASKER

DHCP
provider's dhcp or your own dhcp server?
Avatar of tabush

ASKER

our own DHCP server.
So you connect it to internet directly? and your provider has other dhcp server in same wire?
Avatar of tabush

ASKER

Not sure if i understand your question.
Linux box connects to internet through our firewall (DHCP is provided by a local server in our office). My windows PC is connected to 2nd nic on the linux box. Id like to bridge the connection from nic1 (connected to internet) to nic2 (connected to my windows pc).

Reason i'm doing this is i need to run some tests with limited bandwidth and increated latency. Once i setup that bridge i can simulate this.
only missing thing is
ifconfig p1p1 up
ifconfig p2p1 up
Avatar of tabush

ASKER

nope that didnt help. When i run the dhclient command, should i run it for br0, p1p1(linux to internet), or p2p1 (linux to windows)?
Where you have DHCP server?
To my understanding - you have one at providers, other in your network and now you bridge network.
If you run dhclient on br0 it will get IP from one or from other.
Avatar of tabush

ASKER

Our network has a static WAN IP (not dynamic IP). Then we have a DHCP server in our network giving out LAN IPs to all the computers in the network.
The linux computer is in my network, geting dhcp from the server. If we run dhclient it would get an IP from our DHCP server.
network bridge does not need IP.
if at all br0 should be the right interface after bridge is configured.
ASKER CERTIFIED SOLUTION
Avatar of tabush
tabush

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tabush

ASKER

in the end we never solved it.