Networking :: IP Routing WirelessLAN And Ethernet In Same Network
Feb 1, 2010
My hardware has two interfaces: a) ethernet - eth0 b) WirelessLAN - eth1.After power on, eth1 gets associated to WirelessLAN access point.
The ethernet interface of Hadrware and test PC is directly connected to Wireless LAN access point through ethernet cable. Hardware is associated to Wireless LAN access point through eth1 interface.Now, when ethernet cable is connected to hardware, I can ping 192.168.254.254 from test PC.When I removed ethernet cable from hardware, I cannot ping 192.168.254.253 from test PC.I think access point should forward the incoming packet from test pc to hardware's eth1 interface wirelessely. Where am I wrong? Is it related to Kernel's routing table? If yes, how to detect removal of ethernet cable from hardware and change routing table dynmically?
I have two networks. One of them is wired, the other is wireless. The wired has an internet connection and a few other computers connected to it. The wireless network has a few hosts connected to it too, but it has no internet connection. What I've been trying, fruitlessly, to do, is make all connections that are bound to the internet, or my wired network, be routed that way, and all the connections to the hosts of the wireless network go that way.
Here's the setup..
Wired:
192.168.1.0/24 Gateway = 192.168.1.1
Route internet through here
Wireless
192.168.2.0/24 Gateway = 192.168.2.1
If my computer sends a packet to the internet, it should be routed through 192.168.1.1 If I send a packet to one of the local hosts of the wireless network, it should be routed through 192.168.2.1. Here's the routing table I've set up(This is one of many configurations I've tried)
Code:
$ ip route show 192.168.2.1 dev wlan0 scope link 192.168.2.0/24 via 192.168.2.1 dev wlan0 src 192.168.2.4
[code]....
With this, and everything else, I get destination host unreachable when pinging. The strange thing is that, if I unplug my eth cable, reboot and connect to the wireless network, everything is fine and I can access the router and the others. I'm trying to improve my networking skills, as I've had this of setting up a small linux box as a router for quite some time, for the fun of it, but I need to get routing under control before I go ruin my network.
I am running into trouble while trying to set-up a iptables routing policy. I have two machines on the same sub-network (xxx.xxx.153.0). One of the machines is used as a default gw for the other (xxx.xxx.153.250 is a gateway for xxx.xxx.153.142 and xxx.xxx.153.254 is a gw for xxx.xxx.153.250). There is no explanation for why the xxx.xxx.153.250 is in the middle -- xxx.xxx.153.142 can go straight to xxx.xxx.153.254, but is is like that for now.I am trying to find an iptable rule to be executed on the xxx.xxx.153.250 machine to route the packets.
I have a program that connects to the internet that I would like to route through one of my secondary network interfaces. I need one specific port routed to eth1 instead of eth0. I believe that I should be using iptables for that, but I don't really know how to do it.
I am using Network Manager to connect to a VPN server so that I can access some of the computers on the local network there. When I'm connected, I have two problems: All my internet traffic goes through the VPN. My computer is no longer visible on my local network. I waste a lot of time connecting and disconnecting the VPN. Is there any way I can set up a VPN so that I am still on my local network and only requests to 172.x.x.x go through the VPN. I suspect it can be done with iptables, but all the info about iptables goes WAY over my head.
I just got vpnc setup to work with my VPN at work and now I am trying to figure out how to limit the traffic that is routed through the VPN while I'm connected to it. I only want traffic going to the local domain to be routed through the VPN.This is what my vpnc config file looks like:
Code: IPSec gateway publicdomain.example.com IPSec ID XXXX
I have internet access using mobile broadband and i also have a wireless network for home usage without internet access.
When my wireless network is connected every application in ubuntu (Meerkat) tries to use it for inernet access (as neededobviously). As soon as i disconnect from the wireless network (and assuming the mobile broadband is on) everything has access to the internet again using the mobile brodband.
How do i tell ubuntu that i don't want it to use my wireless network for internet access?
I have a system running a very basic LTS install (10.04). Ubuntu has been setup with very little additional packages. No GUI. Once it's booted to a prompt for the first time I add the following packages,
cups cupsys ssh pi memtester nfs-common aptitude safe-upgrade
At this time I don't have additional information on exactly what packages are installed. I did not perform the installs myself. I will update this thread when I get more details from my IT counterpart on how the system was setup.
This is used for a headless(no monitor, no keyboard) system running some custom applications.
Here are two problems.
1. If I plug into an ethernet network after I boot, the network never connects. I need to reboot with the network connected in order to get an IP. What is the service to "auto connect" to a network?
2. I have a network printer configured on lpd called myprinter. If I am connected to the network when I boot, I can print to this printer just fine using:
Code:
However, If I boot disconnected from the network and print to myprinter, the jobs obviously cannot print. They get spooled. Using 'lpstat -t' I can see that the spooled print jobs are assigned a job number and that myprinter is trying to connect. I shutdown, reconnect my ethernet network and boot up. All my printer configuration is blown away.
/etc/cups/printers.conf has been wiped out to look like this:
Code:
My 'good' printer configuration is copied to printers.conf.O
To recover from this, I need to stop cups, copy printers.conf.O to printers.conf, restart cups, and re-setup my network printer.
So, What causes my printers to get wiped out? I've repeated this on 4 systems with the same setup.
One question that weight a lot of points was about ethernet... the professor asked why ethernet is used only in local area network? resuming i wrote that ethernet is used only in LAN because it is shared and so for big network there could be a lot problem in using the shared channel.. for istance using protocol such as CSMA/CD, if a big network has a lot of hosts, they could wait a long time before sending...is it right or am I wrong?
Ok, so I've gotten tired of my router, and I've decided to make my own using IPFire as the OS. Right now I'm looking for ethernet cards that I can use for the green network, but I don't know if I can use 2 for the same network. I'm trying to get 4 ports at 1000 Mbs, and the only thing I've been able to find so far that's within my price range is a card from startech that has 2 ports, but would I be able to use 2 for the green network?
I currently have a computer sitting underneath a router/switch on a Local Area Network that I want to connect to the Internet using a 3G USB dongle modem. If I am connected to the ethernet and then enable the modem connection, only the ethernet LAN side works. If I enable the modem and then enable a (disabled) ethernet connection, only the ethernet LAN side works. If I keep the ethernet disabled and connect using the modem, I can get out onto the Internet, but obviously not the LAN. I need to be able to do both.
Problem:I got a new Acer Aspire 8935G notebook, installed Ubuntu 9.10 on it and everything is fine, except the fact, that it wont detect any network interfaces (or how to call it So there are no ethernet or wlan connections available in the network-manager..
lspci gives me following lines: joe@IGNAZ ~ $ lspci 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev
I'm a new user of Ubuntu, so i'm not that familiar with this OS. My wireless network is detected but when I'm entering my 128 bits WEP key, it doesn't connect at all. I have no clue where to start troubleshooting.
Here's some of my specs if that's of any help: Computer is a Sony Vaio laptop model VGN-SZ370P My wireless card is from Intel Corporation 82801G (ICH7 Family) USB UHCI Controller
The ethernet cable connection used to work before, but I fooled around with some commands and now seems to be disabled...
I installled Ubuntu 10.4.1 on a brand new computer with a Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller on a Foxconn G41MXE motherboard. and I have been unable to connect to wireless network. I have gone through the wireless trouble shooting guide to no avail. When i "check for device recognition" i get the following (note the is no CLAIMED UNCLAIMED ENABLED OR DISABLED)
I have installed CentOS. I have two ethernet card (one onboard and one PCI). I am able to set ip for realtek ethernet card and my atheros(on board) is not shown in network ifconfig shows only one ethernet card (PCI) hen i gave the command lspci i got the following output
The Network manager didn't recognize my eth0 device as a maned device.In shell I can use my eth0 but not by Gnome Network Manager.My device is nVidia Corporation MCP67 Ethernet [10de:054c] (rev a2) and I'm running a Fedora 11. On previous version like, Fedora 10 an 9 this board was managed normally by network manager.Anyone already set up this board on Network Manager ?My Notebook is a HP dv2736us and I'm using a Fedora 11 64bits.
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?
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.
My routing table does not get complete for some reason. I'm using a Huawei E220 USB modem on openSUSE 11.3 using NetworkManager to connect.When I connect to the net the routing table looks like
Code: /home/freefox # route Kernel IP routing table
i have a big problem y have to make an alias for the eth0 interface, i made it with yast and my alias was eth0:1, first, if i try to shutdown the interface i cant it give an error and tell me that the interface dont exist and the second threat is if i can put a default gateway for this alias something like this in other distributions:
route add 128.26.6.11 gw 192.168.28.201 dev eth0:1
I'm trying configure my server for routing between vlans, but I'm having troubles with my server after that vlans are set. I can create vlans and routing is OK, but when I trying remove a vlan, restart the network script or restart the server, the CLI freeze and then I can't do anything. Even Ctrl+C or Ctrl+Z isn't work. I can use other terminal or do other SSH connection (if the network interface used by ssh isn't crashed), but if I try use a ifconfig per example, crash again. The unique solution is restart the server. Nothing about this is found in the log.
We have a 10.0.0.x network with a working DNS Server (BIND) setup. Recently we purchased Watchguard firewall and configured three networks, so that our internal network can be divided into three networks and talk to each other through firewall routing. So I configured three ips 192.168.0.1,172.16.0.1 and 10.0.0.1 for local network card in the firewall router. I separated three networks and individually configured machines with static ip and given gateway as the above ips. Now, I need to configure DNS server for each zone in the same server which is in the network 10.0.0.x, is this possible?. If yes do I need to setup ip aliases for eth0 in the DNS server with different ips from each network?
I just installed (n this 11.2 system) vmware server (v 2.02), to have access to a few small systems. One of them is a 11.1 guest which I just upgraded to 11.3, successfully (almost).
I have a problem, though: from the host I can not ping/ssh the guest.
Guest to host works fine (including names).
Code:
The firewall is down on both sides. I don't see anything with iptraf in the guest. The IP addres of the guest is correct, unless I'm too tired to see.
I'm going to an area with no wired internet connection so I would gather information on if it is possible and how to make working the following configuration for an home network:
a wireless access point connected to a laptop (an old one with a centrino Duo) with a usb stick for UMTS connection to the internet it is possible to use the laptop for routing to the internet the requests (http, ftp, mail etc..) of the PC connected to the home LAN which software have I to install on the laptop?
I have an old PowerBook G4 that I would like to use as a 'dummy' computer for learning wireless penetration (WEP/WPA attacks) more effectively. I had been using a wireless router, but I gave it away I can use Mac OS X to share an ethernet connection over wifi, but this is _very_ un-configurable. You get two options only, WEP and a key-length. So, I would like to install someway to make this wireless connection more configurable.
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?
I've been struggling with this a bit now, and I'm not sure what the problem is. I have a laptop with a BCM4401 Ethernet card as well as a BCM4311 Wireless card. The wireless card works great out of the box, I'm able to connect with it perfectly. The problem is the ethernet card. Here is the situation: The NetworkManager menu doesn't list "Wired Networks" at all (ie. it doesn't say "not managed", it just only lists Wireless networks) Going into Network Connections, there is an "Auto eth0" entry ifconfig shows eth0 (which I assume means NetworkManager isn't managing eth0) I have edited /etc/NetworkManager/nm-system-settings.conf to say managed=true I have edited /etc/network/interfaces to remove any mention of eth0 (all that's left is the "lo" lines) So I'm not sure why eth0 is still showing up when I run ifconfig, and why Network Manager is not managing it. Any ideas?
Edit: Not sure what I did but now ifconfig spits out this:
Code: eth0 Link encap:Ethernet HWaddr 00:1c:26:2c:60:75 inet addr:10.0.1.12 Bcast:10.0.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:26ff:fe2c:6075/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code]...
The MAC address of the "Auto eth0" entry is 00:1C:23:8F:D4:39, the same as the eth1 entry that ifconfig spits out.