Software :: Using Two Network Interfaces Simultaneously In Separate Programs
Jan 19, 2010
I'm not sure if this is possible, but it seems like it should be, since a linux box can act as a router. I want to be able to use two separate network cards simultaneously (one wired, one wireless) in separate programs.
Example: I want to browse the internet on my wired eth0 interface, and simultaneously run bittorrent on my wireless wlan0 interface (which is connected to an entirely separate network). If I need to use multiple user accounts, then that is fine.
I'm running FC13 (2.6.33.3-85.fc13.x86_64) and I have two versions of the igb driver I wish to use: the vanilla igb driver and a modified igb driver that makes use of PF_Ring [URL].
I currently have both drivers compiled and installed as modules:
If I try to add a new interface (eth1) to /etc/network/interfaces, I get
Code: * Reconfiguring network interfaces... SIOCSIFADDR: No such device eth1: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device
[Code]...
How do I add 2 interfaces and get anyone of them to work, as available ?
I recently installed the KDE (Kubuntu) desktop via Synaptic Package Manager. I have a few questions about this: Do I have to update Kubuntu when I update Ubuntu in October, or will it update on its own? Does running Kubuntu simultaneously on an Ubuntu machine cause any issues (slower performance, conflict in programs, etc.)? How do I uninstall Kubuntu if I decide that Ubuntu works just fine for me?
Using Fedora 10, can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.
I've not found how to configure more than one ip address with network manager.Nor with kde nor with plasmoid network manager.I need several virtual ip addresses for eth0 when the "default" of eth0 is connected i.e. "Connected to Auto eth0" should initialize the virtual interfaces.I have not found no even how to configure the ip address.I think this will be used from ifup config in yast or not?There I have the virtual interfaces but they are not taken from network manager.And last but no least: Is it possible that when using network manager the eth0 is enabled even no user has logged in?
Can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.
I need to implement at my sister this kind of connection: She is connected on Local area network that has about 50-80 pc's, but for internet access she must start an pppoe connection. For now when she wants to use lan she must put her local address (ps: they dont have dhcp), for pppoe she uses dhcp. Problem is that on that way she can't access lan and internet at the same time. She must disconnect from lan and then start pppoe connection and vice versa. I'm intrested if it is possible to have lan access at the same time as internet access. some kind of tunel through lan up to isp. I was googling little and so PPPoE tunneling. Is it that what I need here?
I'm trying to configure OpenSuSE 11.2 with Open vSwitch, and I'm having trouble getting various interfaces to come up automatically when I have bootmode set to "none." startmode is set to auto (or on - tried both), and bootmode set to none, with no IP address assigned in the file. At boot time, I get the message that it's bringing up eth0, for example, but when I log in and check, the interface is not up. Also, if I try "ifup eth0", I get the following output:
I am using wvdial to connect to a mobile network (I have a usb modem) and it works fine. However, I wanted to automate the connection a bit (currently I am running wvdial every time I want to connect). I was wandering if there is a way to add this network to /etc/network/interfaces (in a truly Debian way) to have it connect on startup and/or whenever I connect my modem.
I'm often on my corporate network but also need to be on another network simultaneously. At the moment I have to manually switch back and forth between the two. I'm using ubuntu 10.04. I've come across an excellent document that explains how to do this: "Linux Advanced Routing & Traffic Control HOWTO" by Bart Hubert. He mentions:
make sure that your kernel is compiled with the "IP: advanced router" and "IP: policy routing" features
I've downloaded the kernel sources, but I don't find any config options with names like these in them.
So my question is...how can I tell if the kernel I have has these config options. Failing that, how do I build a kernel that does support these things?
Additional use cases for this knowledge. (1) At work with desktop computer plugged into corporate network. Plug 3g phone into USB port. My corporate network wont allow me to access my external servers over ssh, but the 3g phone will. (2) At home on the corporate VPN, but would like to access my other local network computers.
When I run cat /etc/network/interfaces in Ubuntu 11.04 I get the below output. auto lo iface lo inet loopback I don't see the eth0 or eth1 interfaces, but I am able to see them in the Network Tools application. How do I configure the eth0 and eth1 from command line?
On my desktop having a NIC 3Com, connected to the company intranet and correctly working, I have added a second NIC ( Realtek RTL-8139) to connect a second small network ( three devices, instrumentation) using static addressing.The new board seems to be rekognized by Ubuntu, indicating "auto eth1" in the Network connections dialog. When I try to configure the connection, the "Apply" button is always disabled, therefore I cannot activate it. The command lspci shows that the board has been recognized but when i sent the
I have a weird problem with my /etc/network/interfaces configuration. I have the most simple static setup possible: Code: # cat /etc/network/interfaces
So I've always asked this in the past when I get on a Debian system. This makes no sense to me but I just don't see how I restart network interfaces (i.e. eth0) on a standard Debian install. If I change the static I.P. address listed in /etc/network/interfaces from x.x.x.100 to x.x.x.101, I then assume I can simply do any of the following:
- /etc/init.d/networking stop | start - ifdown eth0 - ifup eth0 - service networking stop - service networking start
All the commands above do nothing. My only solution I know that works and implements the changes I've made is a complete system reboot which to me in Linux, is ridiculous. I've struggled with this over and over and nothing I do correctly assigns the new I.P. in the 'interfaces' file to the actual adapter. This isn't my single isolated Debian machine but every Debian machine I can get my hands on. Servers, workstations, VM's, any release, etc etc etc. Below is my interfaces configuration file:
I have installed Debian 5 and dident configure the network interfaces at installation.Now i am not able to connect to the internet through Ethernet or Wireless. How do i configure the interfaces after installation ?PS. the interfaces show up as "Not configured" in the network manager
I have a weird issue that I have not seen on any forum. My jaunty on DELL studio laptop seems connected to net, but I can not access any network service (ssh, firefox etc.). But when I connect a cable the cable lights blink as it should be and in wireless connection my wifi light blinks.
It was working 2 days ago without problem, and I have not done big changes recently.I removed and reinstalled network-manager and network-manager-gnome. Nothing changed. I see a message in each restart as follows (when Openafs is starting). I can reproduce it with "/etc/init.d/openafs-client restart"
Code:
ADVISEADDR:error in specifying interfaces: no existing ip interfaces found
I have 3 Interfaces for a different LAN's and when I start one interface the another interfaces goes down.How can it's possible?I configure my ethernets as:
I had one of those random system deaths, so reinstalled squeeze (daily netinst image I think...) on my eee 1000, which uses an rt2860 wireless chip. The new install only installed 2.6.32, which I had been avoiding using because of a few problems, including it dealing with networking slightly differently. I couldn't get it to work - even without encryption - using wicd. Having had a read of [URL]... , I had a look at /etc/network/interfaces, which read; This file describes the network interfaces available on your system and how to activate them. For more information, see interfaces(5).
[code]...
ra0 is now called wlan0, as far as I'm aware. I've read in several places that it is best to expunge this file of all references to wifi, so I removed the bottom section (after '# The primary network interface'). I still got nothing. However, if I go ahead and change the 'ra0's to 'wlan0's, it seems to work - wicd connects. Not very familiar with Debian (spent more time on SUSE. Drop your tomatoes - I like it. Any idea what is happening? Is what I'm doing wrong? Conversely, is the file wrong? Should it be reported? Against which package? Including any particular files?
I have a netgear wg111t that is running with ndiswrapper. It has an atheros chipset, but calling it ath0 didn't work.
Heres /etc/network/interface :
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo
I'd like to set up a restricted guest account which is not allowed to access any network interfaces. In particular, I don't want that user to access the internet either directly or through some network proxy, but I'd like my own account to still have normal internet access. How do I disable all network services for a particular account without affecting other accounts?
I have two physical NICs (eth2 & eth3) with eth2 connecting to the home router/dhcp server and eth3 connecting to another machine which needs access to the internet. I'm trying to create a bridge so that the second machine on eth3 can be connected on the lan. I've tried the following, however it hangs when attempting to get an IP address from the router. Likewise, attempting to give it a static route doesn't seem to work either.
$ sudo aptitude install bridge-utils $ sudo ifconfig eth2 down $ sudo ifconfig eth3 down $ sudo brctl addbr br0 $ sudo brctl addif br0 eth2 eth3 $ sudo dhclient br0 # this hangs and fails to get a dhcp address
I've tried to ensure my routing table mimics what it looks like when using eth2 normally, I cannot hit the gateway at all.
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 br0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 br0
I attempted an 'arping' to the MAC address of the router while I had eth2/3 bridged, but it failed to obtain it's IP address as well. One interesting thing I noticed was that attempting to bring down the bridge & reactivate my internet on eth2, I was having trouble pinging the gateway. It turned out 'ipmasq' had been installed and was running causing odd problems. When I stopped the ipmasq service, my internet started working properly again. I removed the 'ipmasq' package entirely and tried bridging the NICs again thinking it may have been causing problems, but it still failed.
I am currently trying to set up two network interfaces in my laptop. The wireless connection wlan0 works fine and it's the one that I use to connect the internet. It's in the range of 192.168.0.x/24 (gateway: 192.168.0.1). The wired interface eth0 is connect to another router (gateway: 10.0.0.13 with IPs in the range of 10.0.0.x/24. The router is set up to work as an AP and the 10.0.0.x network will only be used to control a robot, so no internet access will be required in this network. The problem is that when I have both connections up, I can't access the Internet anymore. I can still ping both routers, I can enter both routers configuration pages but I can't connect to the Internet. If I unplug the network cable, Internet gets accessible again.
I'm still a novice in linux and I can't figure out how to fix this. I don't want to get into static ip for the wireless connection since I'm constantly using the laptop in different places. The objective is to use the 10.0.0.x router to have a development platform for the robot that can be used anywhere without having to reconfigure the robot for a new network, which is a real pain.
In detail, the laptop connects via wireless to the network with intenet (192.168.0.x) and also connects via cable to another wireless router(10.0.0.x). The wireless connection of the second router is used to connect to the robot. Since I can ping both routers when they're both connected, I think it may be something related to the ip routes. I'm using Ubuntu 9.10 with kernel 2.6.31-17-generic
i edit this file... Code: /etc/network/interfaces now it looks like that
Code: auto eth0 iface eth0 inet dhcp after the change I cant enter to local host with the browser and unable to log to PHPMYADMIN what i need to change to solve it?