Ubuntu Networking :: Two Ethernet Ports And Share Internet Via A Switch
Apr 30, 2011
Just recently got a new rig, and was wondering, is there a way to share internet via a switch. I understand the problems with switches is that they dont assign IPs like routers do, but if my ubuntu machine worked like a router by assigning IPs, could it work? Current setup is as such. I have one ubuntu machine with 1 ethernet port (this shall be the main preferably) 1 mac with a single ethernet port 1 modem with a single ethernet port that cannot assign more than one IP address. And a 5 port switch. Would it be possible to place the modem into the switch, get the ubuntu machine to receive the IP address, and broadcast all other address' to everyone else via the same switch and ethernet cable?
I have a Opensuse 11.4 workstation that has two ethernet ports and I was wondering if there is the chance to use the other ethernet port as a switch to a Mac/PC?
After some fiddling around, I have come to the conclusion my current wifi access point hates my other computer's Broadcom chip or the drivers thereof. So, my current idea is as follows. I would like to use my netbook to connect to the wireless network, and then connect my other computer to it through ethernet. My netbook is dual boot XP and Ubuntu (think Ubuntu is a version behind) and I would be fine to set up this sharing in either and just leave it on as a repeater station. My other computer is dual boot XP and Fedora and I would prefer this work to allow me to have network in both. I have a straight-through cable and have verified that my network card supports the automatic crossing over behavior.
I tryed to get network work like this share internet from wifi (wlan0) to ethernet (eth0).So the internet connection comes from the wifi and we share to other computer via ethernet[URL]But when I restarted my pc then it dont work and network says "wired network device not managed" How can I get it work aigan ?[URL]Now I have anohter problem when I connect autoeth then the wireless network dosent work anymore, I have to disconnect eth0 to have wirelles network working. how can I manage to get the bowh to work?
I am basically wanting to use my Ubuntu 10.10 computer as a router. Note: Before you say just get a router please note that I am poor/cheap. I have two ethernet connections and one wireless connection on my netbook. I want to share the internet connection that is going into one of the ethernet cards through the other ethernet card and the wireless card.
DSL-->1sr Eth --> 2nd Eth (currently works) DSL-->1sr Eth --> Wireless Card (Adhoc) <--(connects with limited connectivity AKA no internet)
The 2nd Ethernet card already has working internet, but when I connect to the Wireless card (through an Adhoc network), it cannot get an IP (I believe).
I am new to ubuntu, Installed it somefays before and getting used to it. I want to share the Internet from my ubuntu box with 2 Win7 boxes and a through a switch (have 2 network connections, eth0 - LAN and eth1 - Internet) . Searched a lot i google and got some Idea about the process.
My first one is the network: Our routers' ethernet ports are all in use and I cant get one of them. So Im asking you what I need to buy. Our router now is a speedport w701v. The new router should have wlan and good working LAN. It shouldnt be very expensive... give me some tips what I should look for (because Im very new with router...) and maybe give me a link where they tested many routers (and where I can trust the results).
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:
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.
I had 2 Ethernet ports and neither of them were working on a fresh build a friend was struggling with. After reading the suggestions to fix the issue and thinking that there had to be an easier way I had an epiphany. I would go to my spare parts box and bring out my old Netgear GA311 and pop it into the slot. So after searching for 10 minutes I found it and installed it. Booted up the rig and it found that right away (SWEET) now that's not the fix anybody can do that, once I updated Ubuntu the on-board ports started working (that's what I'm using now). I can't explain what the update did but for a few bucks a used card in the tool box might not be a bad idea! Mother board is a Gigabyte GAX58A-UD5 Rev.1 Personally I'm an ASUS guy.
I have 2 (some future machines will have 4) ethernet ports. I want to have them configured such that if any gets unplugged, as long as at least one of them is plugged in, it can reach the network (even if via a different IP address), and it can be reached (at least when trying a working IP address). I tried this for /etc/network/interfaces:
Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static
I'm currently using Ubuntu 9.1, and a motherboard which has two Ethernet ports on it.
What I would like to do is bridge these ports, so I can plug in another Ethernet cable and run it to an unmanaged switch in my room (handy for my work laptop when on-call and building other PCs, etc).
I.e. Router --> 8-Port Switch --> My PC. Eth 0 --> 192.168.1.100 static Eth 1 --> 5-Port Switch --> DHCP
I believe this is the config to make the ports bridged:
I wanted to split adsl line, but a friend of mine explained that this isn't possible.. So now my question is that can you somehow switch ethernet back to dsl or have a computer convert it so that nothing has to be done to the other modem.
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
I have a server with two ethernet ports. I configured eth0 to be static, set at 10.1.10.148. I plugged in another router into the other ethernet port in order to configure that router. I configured eth1 to use dhcp. Using /etc/network/interfaces rather than gnome network manager. When I did this, I lost internet connectivity (internet routes through eth0 of course)
- Why did I lose internet connectivity?
In order to recover internet activity, I had to disconnect the new router on eth1 of course, and do sudo ifdown eth1. That wasn't enough however. After rebooting numerous times and pulling out my hair, I finally tried configuring eth0 as dhcp, rather than static, and this fixed the problem.
- Why didn't sudo ifdown eth1 solve the problem? What information was saved between reboots that somehow remembered that I plugged in the new router? Because my thinking was if /etc/network/interfaces was identical, and the network topology was identical, after a reboot everything should be restored, but it wasn't.
In 10.04 I get the following error in the log while connecting to ethernet:
Code: Aug 24 17:33:24 Linux dnsmasq[11069]: started, version 2.52 cachesize 150 Aug 24 17:33:24 Linux dnsmasq[11069]: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP Aug 24 17:33:24 Linux dnsmasq-dhcp[11069]: DHCP, IP range 10.42.43.10 -- 10.42.43.100, lease time 1h Aug 24 17:33:24 Linux dnsmasq[11069]: no servers found in /etc/resolv.conf, will retry Aug 24 17:33:24 Linux dnsmasq[11069]: cleared cache /etc/resolv.conf only has "Generated by NetworkManager" comment, so is this a bug in Networkmanager?
I recently moved to a student dorm in my university (RWTH Aachen) and I have an ethernet connection from my room. The thing is that I can't connect to the internet, I don't get any IP through DHCP. I tried using wicd instead of network-manager, and doing it manually with dhclient. None of those worked (actually I don't know much about how networking works so maybe I didn't do it well with dhclient). The weird thing is that Windows 7 gets the IP instantly and I can connect to the internet from windows. But I don't know why Ubuntu refuses to get an IP. Info from lshw, lspci:
My PC is connected to an modem (DHCP) with IP 192.168.1.21 on eth0 Internet works perfectly I have installed an additional LAN card and configured it as eth1 with IP of 192.168.0.1 When I connect this LAN card to a LAN switch which in turn is connected to 6 other PCs, the internet stops working. As soon as I switch OFF the LAN switch, I am able to access internet. The IP addresses of the other PCs are configured as 192.168.0.2 etc. with gateway as 192.168.0.1 and DNS same as the DNS on the external interface. I can ping 192.168.0.1 from the LAN but neither LAN nor the main PC can access net. I was planning to Masquerade and NAT the other computers without using squid
My setup is as follows
ISP - Modem(192.168.1.1) - Ubuntu desktop 9.04(external interface eth0 192.168.1.21 & internal interface eth1 192.168.0.1) - switch - LAN (comprising of Ubtuntu 9.04, 9.10, 10.4 & XP machines with IP 192.168.0.2 - 8 and gateway of 192.168.0.1) I did NAT as per [URL] This worked perfectly well 1 day Next day onwards whenever the LAN switch is "ON" the main Ubuntu wudnt get internet and the internet connection would work only when the LAN switch is turned "OFF". Even if all the PCs in LAN were to be switched off, the main Ubuntu would behave similarly i.e. internet would work only when switch isn't connected to it or switched off.
My laptop was on windows xp and when I installed ubuntu linux my NIC Card driver was gone (I think) and now I can't connect to the internet using an ethernet. I have the driver on the desktop of my Linux laptop but I don't know how to add it using terminal or any other options.
just recently I made the move back to Ubuntu from Windows. Upon re-installing I noticed a problem with me connecting to the internet. Previously on Windows I had updated my Ethernet Adapter driver, upon installing I would have to disable and re-enable the device to let my computer have access to the internet. My problem here is how would I go about fixing this on Ubuntu so I can have internet access on Ubuntu
I am running Ubuntu 11.04 and i am curious to if there is a way to share my established wireless connection through my Ethernet port.. I know it was possible in Windows by going to adapters and bridging the wireless, and Ethernet adapters. how to make this work in Ubuntu?
I am using Ubuntu Server version 10.4, and am trying to connect to the internet via an ethernet cable. This may and probably is incredibly simple, however, I could not find anything that pertains to it.
I've had an issue in KDE where each time I restart my computer, I get 5-7 notifications that it wasn't able to connect to my ethernet port. (Or something close to that) I think it's trying to connect to my marvell port over and over. Has this happened with anyone else? I think I remember this happening with Ubuntu as well only it only tried to connect to that port once and then stopped trying.
My PC is connected to an ISP with IP 192.168.1.21 on eth0Internet works perfectlyI havenstalled an additional LAN card and configured it as eth1 with IP of 192.168.0.1When I connect this LAN card to a LAN switch which in turn is connected to 6 other PCs, the internet stops working.As soon as I switch OFF the LAN switch, I am able to access internet.The IP addresses of the other PCs are configured as 192.168.0.2 etc. with gateway as 192.168.0.1 and DNS as the ISP DNS.I can ping 192.168.0.1 from the LAN but neither LAN nor the main PC can access net.I was planning to Masquerade and NAT the other computers without using squidMy main PC runs on Ubuntu 9.04 and out of the 6PCs on LAN, 2 are on Windows XP, 1 on Ubuntu 10.4, 1 on
I tried to setup sharing to connect Ethernet and wireless. I want Ethernet connected to desktop A, and wireless connected to another laptop(B), with my laptop acting as an AP. I set the network settings in Firestarter: Internet for wireless, local network for Ethernet. I want to share Internet from laptop B over the network. Internet won't work from my laptop since it seems to use the wrong interface.(Since the desktop is sharing Internet, although not on Internet usually when connected via Ethernet. And of course DNS/Gateway IPs aren't set for wlan0 since it's acting as an AP.) SMB wouldn't work for desktop A and laptop B: laptop B could detect desktop, but reports error "Path not found".
I changed to a 4 port ethernet router (D-Link DSL-2542B Adsl2+)with intention to share Internet access with my brother (he's on Vista).Initially it all went well,but 3 days ago there were connection problems occured on the part of the ISP. Without realized the problem,I had reset the router.This morning I've been informed by the ISP that the connection has been re-established.So,I accessed the Internet via the 4 port router but failed to do so (server not found).Suspecting that the problem was from the 4 port router,I reverted to my old Adsl router (DSL-520B single port) and without any problem I managed to access the Internet back.I really need help to configure back the 4 port ethernet router to its initial state.
I am using ubuntu (11.04) here, when i connect Bsnl broadband link(wired connection). Internet is connect automatically But unable to instal, upgrad and access Internet pages ..