Networking :: Configuring Ethernet Bridge?
Nov 3, 2010
I am using 3 machines in a LAN connected through a hub. My intention is to have a end-to-end connection between 2 machines so that I can control delay/loss rate. For that purpose, I am using a 3rd machine with 2 NIC and intend to use a bridge and installing Dummynet in this machine to control the traffic between the other 2 machines.I have successfully installed Dummynet in the bridge machine. Now I require to configure Ethernet bridge in the machine. What is the process? Do I need a kernel compilation or can be done without it? read somewhere that recent kernels can be configured without recompilation.I am using Mandriva 2010 with 2.6.31.5-desktop-1mnb kernel.
View 1 Replies
ADVERTISEMENT
Apr 28, 2010
I have installed a Xen with 2 VM's inside. They are all under the same subnet. The Xen machine can see the outside network but both machines in it cannot.
How do I create the bridge correctly (to xenbr0 i guess) so it fixes this?
Here's what I tried: It's RHEL5.3
1. '/etc/sysconfig/network-scripts/ifcfg-eth0' is ok on both VM's
2. iptables service is disabled, system-config-network shows IP,DNS, GW are correct.
3. On the VM's the route -n shows the gw ip though I cannot ping it.
4. checked hosts.allow, hosts.
5. In '/etc/xen/xend-config.sxp' unmarked:
(network-script network-bridge)
(vif-script vif-bridge)
6. in xen/<images_location>/ I modified vm.cfg so vif = [ 'ip=10.2.0.54' ] for one of my virtual machines.
7. I cannot however find '/etc/network/interfaces', can anyone advise if actually in my case it's the ifcfg-eth0?
8. I basically followed the Bridged Networking scenario in Xen Networking: [URL]
Ifconfig on the Xen Parent:
[root@XEN_PARENT]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:8B:3A:E4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:130021 errors:0 dropped:0 overruns:0 frame:0
TX packets:75097 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10315149 (9.8 MiB) TX bytes:12038346 (11.4 MiB)
Interrupt:17 Base address:0x2000 .....
View 4 Replies
View Related
Feb 26, 2010
I'm trying to share my ethernet via my wireless card. It doesn't work. Here is some info:
lspci
04:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
lsmod
b43, mac80211, cfg80211, ssb
I've tried everything listed in these forums but every time I run
sudo iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
I tried the STA drivers and get the same thing except the kernel module loaded is wl instead of b43. Is it even possible to set this card to master mode? I can't find jack on the net.
uname -r
2.6.31-19-generic
View 3 Replies
View Related
Apr 16, 2010
I have a system with one (sometimes two) ethernet ports, that works happily in an old Fedora 5 build. But I can't get it to work on a new Centos 5.4 build. Original system: One dedicated ethernet port on card always connected to the systems dedicated equipment and no external access (the system is the DHCP master for that network). An optional second USB dongle that is a second ethernet port, used for debugging and development. (This is a DHCP client with full conectivity. In /etc/sysconfig/network-scripts I have ifcfg-eth0, ifcfg-eth1 and a route-eth0. Neither of the ifcfg files needs an explicit HWADDR, which means the same ones work for all boxes. And when one needs to be connected to the network all is fine.
The system is being moved to Centos 5.4, most is working with minimal change, but I am having problems with the ethernet ports. If it only has the on board ethernet connected, all is fine. If you have the USB dongle connected things go wrong: This system brings up the USB ethernet first, and tries to assign it to eth0 (which fails), and then brings up the on board ethernet as eth1 (which also fails). I have tried forcing the behaviour of the network by setting the HWADDR(s), but this does not result in the on board coming up as eth0, it comes up as __tmpxxxx as follows:
ifconfig -a
__tmp226406138 Link encap:Ethernet HWaddr 00:80:66:07:A8:63
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
[Code]...
Currently the only solution is to unplug the USB dongle through restart and plug in afterwards, and this wont work when the unit is remote and in the field.
View 14 Replies
View Related
Sep 27, 2010
I am would like to configure postfix to send and receive email across Ethernet (just for now). I have two machines with postfix installed both using Ubuntu 10.04 directly connected with an ethernet cable. I have successfully configured a machine to send email to gmail, however i have been unsuccessful in having these machines send email back and forth. I have been interested in setting up a little mail server at home and have just been trying some simple projects with postfix to start with. At this moment i am using ip addresses and am not concerned with using a dns server
machine A: has a fixed ip of 10.137.202.1, hostname = mail.me.com,
machine B: has a fixed ip of 10.137.202.20, hostname = mail.ubuntu.com
in the /etc/hosts file I map each hostname to ip address receptively (not sure if a good idea, but at this point I have been trying everything)
So I will execute from Machine B
echo "Here is a message" | mail -s 'Hello' cmd@[10.137.202.1]
I currently get from mail.log timed out while receiving the initial server greeting. I get from mail.err valid hostname or network address required in server description #[10.137.202.1]. Obviously when I run the mail command from cmd user i do not receive anything. I can receive mail from myself if from machine A, I sent an email using the command above. I would just like to send email from machine B and receive it on machine A via direct Ethernet connection. I have been through postfix documentation and have also read the postfix definitive guide and have had no luck.
Here is a recent main.cf as I have tried getting this to work (this is for machine A however, similar for B)
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = /etc/mailname .....
View 2 Replies
View Related
Dec 8, 2008
I want to set up a bridge using bridge-utils within /etc/network/interfaces like is shown here in this guide: [URL] The problem is that, at the same time, I want eth0 to have a specific static IP address. Right now I have a configuration for eth0. This guide tells me that I should not configure eth0 outside of the br0 configuration.
View 3 Replies
View Related
Jan 4, 2010
I'm interested in configuring two Netcomm NB504 WiFi routers to work in a Bridge configuration. ie. Local PCs ---> Router <----//----> Router <--- local PCs
The NB504 router doesn't appear to have a native "bridge" mode. However, it does run Linux according to the documentation. I'm interested to hear from anyone who has actually got two of these routers to work in a bridge configuration. I'm not interested in general theoretical comments - only solid advice. I am also not interested in using other hardware for this exercise - I have two of these devices available for use in this project.
View 4 Replies
View Related
Nov 5, 2010
before i used Ubuntu(i was hiding under a rock) i had my wireless network and Ethernet bridged so that i would be able to broad cast my network printer to the home network. i switched to Ubuntu and it is rather annoying to have to shutdown Ubuntu and boot windows just to print a document
View 2 Replies
View Related
Feb 27, 2016
I'm trying to connect my computer to an ethernet cable and having no luck, I looked up the problem and was told to put
Code: Select allauto eth0
iface eth0 inet dhcp
But after a restart the computer I still did not have access to the internet (aslo, dhcp is enabled on my modem, I checked)...
View 14 Replies
View Related
Aug 9, 2010
I have installed Unbuntu 10.4 Cloud Server. I have two servers:
Front End Server (clound-fe):
2 Dual Core 32 bit Xeon processors (They do not support Virtualization)
2 Ethernet Ports
[code]....
View 1 Replies
View Related
Feb 25, 2011
I'm on opensuse 11.4 (11.3 won't work with my monitor).
My computer gets internet through wireless and I want to share that internet through its ethernet port. So far I've tried using Knetworkmanager to create a network bridge between my wireless and wired connections. I created a new wired connection and shared it using the ip address settings. I was able to get both connections active, but the device hooked up via ethernet had no internet connectivity.
I also tried this command:
echo 1 > /proc/sys/net/ipv4/ip_forward
but another test resulted in the same fashion (no internet on wired). I believe anything I add to /proc should have an immediate effect, correct?
View 9 Replies
View Related
Sep 1, 2011
My laptop was working fine on wireless till the userinterface changed and it defaulted to ethernet and now it won't let me go back on wireless How do i disable ethernet?
View 4 Replies
View Related
Mar 30, 2011
i have two ISP, and i want to bridge each IP. Here my example;
ISP one : 10.10.10.1/29
ISP two : 172.16.100.1/28
can we setup for two ISP with different gateway ??
View 5 Replies
View Related
Aug 9, 2009
I have 2 NIC's in a box. One of them is external and doesn't matter for this question I don't think.
The other NIC is 192.168.100.3. It hosts an iSCSI Target and SMB Share on my LAN. It's works great.
I have another PC that has NIC at 192.168.100.101 and it hosts my DHCP (Scope: 192.168.100.5-25) server for my LAN.
I have a hardware firewall at 192.168.100.1 and it serves inet to the LAN on a different external connection.
So...
I currently have a WAP (cheap p.o.s. netgear router in WAP mode that keeps overheating). I want to eliminate the WAP device and add a WiFi NIC to the Top PC above.
So, on the first system I would have:
NIC 1: External IP and External Gateway
NIC 2: Static IP 192.168.100.3
Proposed WiFi NIC 3: Static 192.168.100.4
Question:
If I bridge NIC 2 and NIC 3 like this:
# brctl addbr br0
# brctl addif br0 eth0
# brctl addif br0 eth1
Then I simply put the WiFi in Ad Hoc, will another WiFi in Ad Hoc (for example my laptop) be able to "see" 192.168.100.101 (DHCP) & 192.168.100.1 (Gateway) (via WiFI 192.168.100.4 through the bridge to 192.168.100.3 and on to the LAN)?
Also, can the two NIC's be bridge together even though they are the SAME subnet?
View 1 Replies
View Related
Oct 4, 2009
I tried google but without success. I have a small home network and one computer has to work as a bridge (comp1), it connects to the internet through wlan and is connected with cable to other computer (comp2), I would like to to make that second computer member of a local network with internet access.I was trying this:
Code:
ifconfig wlan0 0.0.0.0
ifconfig eth0 0.0.0.0
brctl addbr br0
brctl addif br0 wlan0
brctl addif br0 eth0
[Code]...
View 8 Replies
View Related
Jul 19, 2010
I have a Gateway laptop running ubuntu 10.04, and just now have a compaq desktop running windows 7, my laptop has wireless internet connection, it's the only way that i can get it in my room. my desktop has only ethernet plugin. My question is, If i plug my laptop up to my desktop using an ethernet cable, can i bridge that connection to get internet from my laptop(using the wireless) to my desktop(using the cable)
View 1 Replies
View Related
Dec 13, 2010
My first, followed a couple of Ubuntu how tos and used LinuxFoundation bridge doc. I still have managed to mess it up! Here's the simple test network, First -- ALL hardware is fine, I have verified everything, to the last cable. In fact this is being written from the test network without the bridge running.
OK, I have a firewall that has dhcp server on board, I have a client workstation with dhcp enabled network card(eth1) (the one I current typing from). There are 2 switches between the firewall and the workstation (eliminate xover issues when testing) That's it. All is well. Now I want to place a computer in line between the firewall and the workstation. It is a 10.04 server install, no gui, minimal install. It has 3 network cards, One of these ports was used to set up the server. It is set up dhcp and it works just fine, I spent all kinds of time ssh'ing into the box, so the dhcp client is good to go.
I disconnected the cable to that interface and ran a cable from the firewall's switch to one free port(eth0) and a cable from the workstation switch to the other free port(eth2). From the console I do ifconfig -a and there are all 3 eth's, 0,1, and 2 I then open /etc/network/interfaces and to lo and eth1 I add this:
[Code]...
View 1 Replies
View Related
Jul 30, 2011
I am trying to connect networks connected via locked down wireless routers. Here is the setup:
Internet <-> eth0 - server - eth1 providing DHCP <-> hub <-> wired clients & to WiFi router with NAT & DHCP <-> WiFi clients.
I want the wired clients and the WiFi clients to be able to talk to each other directly, but the locked down WiFi router (meraki) is in the way. the wired clients get their IP address from the server, the wireless clients get theirs from the meraki WiFi router. I can't reconfigure the WiFi router to bridged mode without paying meraki a sizeable annual license fee. What options are out there to get through the WiFi router? I came across OpenVPN and ethernet bridging, but broke networking on the server when trying to configure the br0 interface. I followed these instructions: [URL]
View 2 Replies
View Related
Jun 30, 2010
I have a hub with some VoIP phones attached as well as a machine that is used to record the calls. This all works fine as all packets coming to/from the voip phones are also seen by the recorder so it can process them as necessary.
What i want to do is put another machine between the hub and recorder and have it act as a transparent firewall. So far i've managed to successfully set up a bridge on ports eth1 and eth2 and all the packets destined for the recorder go through the bridge fine. The problem is that the bridge is acting as a switch so the packets from the phones are received on eth2 but don't get retransmitted on eth1. Is there any way to configure the bridge so that all packets received on eth2 are transmitted on eth1, i.e. have it act as a hub instead?
View 2 Replies
View Related
Feb 5, 2011
I have a LAN (2 PC !) wire connected and I use a Huawei e182e to join the internet (If you have problem to install the Huawei on Linux, don't install drivers proposed on forums or don't try to unlock it. It's not necessary, simply install a kernel > 2.6.34 and it will install itself as a perfect plug and play). On the unconnected machine, the Internet is accessible normally from the broadband dongle, but the connection stops when I plug the LAN cable. It's normal since the PC cannot use both network connections simultaneously without a previous configuration, and the question is precisely there !
Bridging could be a solution but mobile broadband uses ppp protocol that is not on the same layer as wired LAN. brctl refuses to add the key into the bridge configuration. Vtun seems a better approach since it works more independently from the protocols, but it must be installed on both sides and the broadband dongles does not accept software installation in it. Documentation from Huawei is quite inexistent. Actually the story could be the same for a computer connected to a wired LAN and using a wireless dongle, but here bridging is feasible (not tested by me) because they work on the same layer. I tried to deactivate LAN switching in the BIOS: no result static address with gateway pointing on the other device (I tried everything) no result. How to bridge a ppp dongle with a wired LAN?
View 6 Replies
View Related
Feb 27, 2010
I have a Windows 7 machine which is having issues with a Linksys Rangeplus wireless card, specifically kernel dumps every couple of hours. I have an old (really old) tower sitting in my room which I would like to turn into a wireless bridge so that I could connect the windows box to the internet without dealing with the blue screens. I plan on using Knoppix as I have it available already, but if it would be easier with another distro I can always download it. If this doesn't work I'm going to have to buy an old WRT54G offline and convert that with DD-WRT...
View 3 Replies
View Related
Apr 27, 2010
I want to implement the following scenario :-[workstation1] <--ETHERNET-->[device 1]<--SERIAL-->[device 2]<--ETHERNET-->[workstation2]In short, a LAN over Serial link (RS-232 for instance).If there is a utility that offers such functionality, kindly give me the name, i've googled a bit, and found ser2net, but that only works with TELNETing.. i want it work like a normal LAN like file-sharing n all but over Serial.If there is no such software, then obv i have to program myself. regarding which i have more questions
View 9 Replies
View Related
Nov 3, 2010
I have added a bridge "mybridge" using brctl bu not added any interfaces yet. Even the brctl show command looks: bridge name bridge id STP enabled interfaces mybridge 8000.0000000 no
Now I try to do: brctl delbr mybridge and it gives: bridge mybridge is still up: can't delete it
I performed ifconfig mybridge down but still the problem persists!
How to delete the bridge?
View 2 Replies
View Related
Aug 11, 2010
I've been reading for days now, but can't find an example to the following. I have an ubuntu server, with two KVM virtual machines running ubuntu jeos. I want each VM to have it's own static IP, plus one IP for the server. How on earth I do that? do I need to create two bridges, one for each machine? and if so, how do I assign static IP to each?
View 2 Replies
View Related
Oct 8, 2010
it's one of the first time I'm using linux! For a report I have to answer to the question (the title) but it's very strange! A packet has an ip address? or does it referer to the IP address of the destination? And in particular this is the output of tcpdump -en ip proto 1 (while I'm sending ping -sv remote_machine)which are:
What are IP and Mac andress of a packet that went from my machine to the bridge? and what are the IP and mac of a packet that went from the router to my partner's machine? And how could i find the average delay that a packet experience in the bridge?
[Code]...
View 1 Replies
View Related
Jul 3, 2009
I want to connect my dataone broadband connection in bridge mode in fedora 7. As i am currently using a bridge connection through this modem (smartAX MT882) in win XP, i want a bridge connection in fedora 7 too to access the internet from linux. I have gone through some forums discussing this issue. somewhere i have found the option "adsl - setup" and tried it in my fedora 7. But it is showing the message "adsl- command not found" on this issue. I need a detail step by step procedure for brigde connection using datone in fedora 7.
View 3 Replies
View Related
Aug 3, 2009
I'm trying to set up a Linux box with three ethernet interfaces as a bridge where I can do some packet filtering. I don't want this box to have any IP stack, packets that are allowed through the filter should be forwarded without changes just the way a switch would do it. I have build a kernel with ethernet support but no IP stack. It detects my interfaces, and I can bring them up with the ifconfig or ip commands. But when I try to start a bridge with brctl I get this error message:
can't setup bridge control: Address family not supported by protocol
A google search for that error message gave me no results at all. The command I used was "brctl addbr br", which does work on a full installation. Does brctl require IP support in the kernel? That would be a bit odd I think, since brctl doesn't do anything IP related, everything it does is at lower layers?
Does anybody know what the above message means, and what I might have been doing wrong?
View 3 Replies
View Related
Feb 27, 2010
What I am trying to do: bridge 2 NICs in my linux box eth0 connects to linsys router (which in turn connects to internet) eth1 connects to Xbox 360
What I did:
Code:
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
brctl addbr br0
brctl addif eth0
brctl addif eth1
[Code]...
I'm sure this is a bridging issue and there is just some option I'm not setting correctly. Also, the reason I'm connecting the Xbox 360 directly to the linux box and not to the router is for traffic monitoring purposes. Note that all connections and functionality work perfectly when the Xbox IS connected through the router.
View 7 Replies
View Related
Apr 21, 2011
I'd like to pass all traffic between bridge ports via the FORWARDING chain, so I changed following sysctl parameters:
Code:
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
[code]...
View 1 Replies
View Related
Oct 18, 2010
I have spent the last 24 hours trying to work a wireless bridge (a D-Link DAP-1522) into my network configuration. It would connect to our gateway here at home (some 2WIRE piece of garbage AT&T hands out, but I digress), and two computers (an Ubuntu Desktop and an Ubuntu Server) would connect via the bridge.
The bridge SEEMS to connect to the router, and indeed, the Ubuntu Desktop PC is able to access the internet. The server, however, is not, and neither computer can communicate with the other (ping, SSH, etc.) furthermore, the router recognizes the presence of these two computers on some level, but does not seem to know their IP addresses (I assume this is related to the computers' inability to communicate).
Before I get too far into this, here are a few links/items for the sake of clarity. The first is a shoddy diagram of my (proposed) network topology, for all of you out there who, like myself, understand things visually:[url]
This is the output from running "ifconfig eth0" on the Ubuntu Desktop PC, which sits behind the bridge. The PC is connected, and can ping hosts across the Internet, but can only ping the router locally (that is, it can't ping any other device in the house, on either side of the bridge):
Code:
The router uses wireless encryption, not MAC addresses, to restrict access/traffic, and all wireless devices (including the bridge) have been provided with the proper credentials. There shouldn't be any devices being denied access on account of their MAC address. In fact, the router's control panel lists the PC and the Server among the recognized devices (even lists their MAC addresses), but provides no IP address and always considers the two computers to be "offline." And yet, I am writing this very post from the Ubuntu PC. Sigh.
I am very comfortable with computers, and reasonably comfortable with Ubuntu/Linux and the Linux command line -- I've been using the operating system for just over a year now -- but networking issues have always been perched right on the edge of my understanding. In short, it's likely this issue has more to do with me than it does with the hardware itself (although the more forums I browse, the more I start to doubt this bridge...).
View 2 Replies
View Related