Networking :: Identifying Network Devices At Boot Time?
Dec 23, 2008
I boot linux off a USB stick on many different computers with different hardware. How can I determine in a script which devices eth0, eth1, wlan0 exist and which hardware devices they apply too? Sometimes a wireless card is wlan0, other times it is eth1 or even eth3! The proc/net/dev file does not inidicate which hardware is installed.
I'm having an issue with dual networking on RHEL 5. My initial question is can the order the ethx (0,1) devices are brought up be changed at boot time, so I could bring up eth1 before eth0?
Some background: eth0 is DHCP'd and using DNS, basically this is my primary network. eth1 is an isolated subnet, with a manually configured IP which has no connection to eth0 or the outside world. When I bring up networking it first brings up eth0 and then eth1, what happens is eth1 becomes the 'primary' network of the host and I lose my connection to DNS/NFS/NIS and the outside world.
If I login and manually bring up eth1 first, then eth0 everyone is happy and connections work. So, I'm looking for a solution to either bring up eth1 before eth0 or somehow make eth0 my primary IP and not have it be clobbered by eth1.
Starting from January, my Internet connection has become "unstable". I mean that I get occasional interruptions of the connection. This is particularly annoying while listening to a webradio or using voip. Of course, prior to January 2010, I could stay hours or days without interruptions. Now, I have to reconnect manually every 5 min to the service although the reconnection to the ISP is done immediately. So, before I take my axe and visit the office of my ISP, I would like identify where is that connection drop happening. Is it at my pc? at the ADSL modem/router? or the ISP? I use a wireless connection with WPA to my router. Then, the router is basically an ADSL modem. I am running Kubuntu locally. How can I follow up on the network status between different elements and see who is cutting off my connection?
following on from [URL] I was having a little think about how to make this concept more secure. its easy enough to separate known and unknown clients out via MAC address. but that system is easier to break than it is to set up either, sniff out a mac address already connected to the system, and spoof that address.or, more simply, set a static IP on your wifi device, and avoid the redirection completely. so, is anyone aware of a relatively straight forward setup that would allow me to identify clients on my network without relying on MAC address, would more forcefully separate out known and unknown hosts (vlan??). As well as doing so without alerting them to the fact, and without requiring known hosts to do anything special, or install software. Or requiring any more hardware than I have already. (hardware = a debian box with 2 NIC's acting as a gateway between all internal network, and the billion router which handles the outside world not getting in, and a WAP attached to the internal side of the network. also somewhere I have a wifi card that I could attach to the server to replace the AP) I assume some sort of authentication mechanism is required, but I dont know much more past that.
Loaded Ubuntu 10.4lucid on TransPort NX Mobile Pentium II, 328MiB,Using Netgear Rangemax wn511b. with Broadcom STA wirless driver. bcm43gx.Boot computer and network manager shos "no network devices available" Run system/administration/hardware drivers and the Broadcom STA driver shows up (only one that shows up) REMOVE and then ACTIVATE and the network manager sees it and connects fine. Shut down computer, restart and no device. I am forced to Remove and Activate each time I start the computer.Is there a way to set this driver to be found and run at computer start.
I use centos 5.3, the problem is my network is not starting when the machine is restarted everytime, i checked everything in the network scripts, and logs which is indicating dat everything is initialising at boot time, wat and wer will b the problem.
My Suse server is failing to boot and it is giving the following error:
Mellanox ConnectX Boot over IB v1.9.972 gPXE 0.9.6+ -- Open Source Boot Firmware -- [URL] No more network devices I have two network interfaces Infiniband network and the Ethernet network. It is a x6275 Sun server.
In the right upper corner of your screen,you can see if you have a network connection or not.Most of the time I do not have one according to Networkmanager (?).So I have to enable my wired connection manually.I already tried a lot to change my settings so I would have a network connection at boot,but it doesn't seem to work....Firefox is in Offline modus when I logon..
I'm looking for some help on how to troubleshoot the network on Ubuntu 10.04 64 Desktop. It's on a Acer Aspire 721. There's a wireless card but the widget in the top right says there is no network device.
Just built a box and once 10.04.2 64 bit was all installed and loaded up I realized instead of showing my Ethernet as connected it had the ol x. So when I clicked on it I got "No network devices available." The mainboard is an Asrock 890GX Pro3, link light completely out.
I'm doing a few tests with fedora 15. I'm surprised because they changed the naming way on network devices. eth0 is now called em1.At every fedora I have found the configuration files in /etc/sysconfig/network-scripts, but today I can't find them.
got the problem with multiple ssh-tunnels. The case is:I have 1 server running Slackware 13.0 with external ip and few windows-machines. inetd daemon is running on the server, my script is listening on port 2345. I create multiple ssh-tunnels from client machines to the 2345 port of the server in order to initiate script execution. For debugging reasons the script simply echoes the incoming information to the connection initiator. This is how the connection is initiated.
Code: ssh <user>@<my_server_IP> -L 5555:<my_server_IP>:2345 echo "hello"|nc -vn 127.0.0.1 5555 (a port on a client-machine, that is forwarded to <my_server_IP>:2345) gives "hello" output. Code: client1 port 5555|----ssh-tunnel---- eth0|-------server---------------|
[Code]...
The problem is that i need my script to execute some commands (registry parsing) on a remote client machine with winexe utility. So I need to identify each tunnel or each connection in order to execute the command on each of the client workstations. I need at least to have access to some ID of the ssh session or a tunnel, through which a certain connection was initiated and then use it to create a reverse tunnel or just connect to certain client via that client`s tunnel.
Does anyone know of an application that continually scans for devices on a network and notifies you if a device connects/disconnects to/from the network? I just want a way of knowing when a computer is connected and when it's not.
I've got a co-worker who is trying to connect multiple devices to his wireless router - Xbox, Wii, TV, Dishnetwork box, etc. Not all of the devices are wireless however. He's had several thoughts on how to get this done and I know very little about this kind of thing so I thought I'd ask some of you.
His first thought was to buy a multi port bridge, but he doesn't like any of the ones he's seen so far.The other thought was to connect all of the devices to a switch and then use a single bridge, but he isn't sure if this would work.
I have not tried this, and I am only wondering about the result.Let's say that I have a PC/Laptop with two network devices: an ethernet and a wireless. Can I connect both of the to the same network (if this network allows both connection) to increase the transfer rate between the PC/Laptop and the server???
I am running Ubuntu 9.10 and Windows 7 (Wubi). Windows Networking shows all devices on the network (computers, routers, etc). Is there a way to get Ubuntu to do this (Would prefer GUI)?
1. Built-in ethernet LAN 2. Built-in ethernet WLAN 3. PCMCIA ethernet LAN
I installed Ubuntu Server on this computer without the last one inserted.I inserted the last one today, and it lights up when i put in the cable. To be sure if Ubuntu has found it, I tested with the install CD and could see that it found all three at the first part of the installation where I have to chose a primary device.I can't get my WLAN card working, neither do I get my PCMCIA LAN card working. The third card, this PCMCIA card, has worked on Ubuntu Desktop using another laptop. And as said, the setup finds all three.
I just loaded 10.10 on an Acer Aspire One D255. When I installed Ubuntu, network manager loaded and I was able to use both the wired and wireless cards. After I used update manager, the kernel was upgraded, and I also added some wireless applications (RutilT WLAN Manager, SWScanner, and WiFi Radar). Upon reboot, the network manager doesn't work, and it cannot find any of the devices.
This may be more suited for the networking forums, but I figured Community Cafe would be well rounded enough for someone to tell me if this is even possible (with minimal configuration that is).There are a few places I travel where I only have a wired connection to the Internet (no wifi), but when this happens is there a simple way to create an adhoc network so wireless devices can route through my computer and to the network? Reason I'm asking is I'm thinking of getting an iPad or iPod Touch which have wireless connections, but in the cases where my laptop is using a wired ethernet connection and the wireless card isn't used, I'd like to create an adhoc wireless network that'll let such wireless devices work.
I'm having trouble getting my wifi devices to work on my 128bit WEP network. I have a new Thinkpad T400, with an internal Intel PRO/Wireless 5100 AGN. I also have some cardbus cards: a Lucent ORiNOCO Gold, a Linksys Wireless-G, and a TRENDnet TEW-421PC. I have them set up as interfaces eth2, eth1, and eth3. (The TRENDnet isn't recognised as a network card at all, so no interface for it.) I have installed the latest firmware for the Linksys card.
The /etc/sysconfig/network-scripts/ifcfg-* files are virtually identical for all of them, differing only in the HWADDR and DEVICE lines. So here's the behaviour:
1. The Lucent card comes up just fine. 2. The internal 5100AGN and the Linksys cards won't come up, and watching with iwconfig shows that they're either associated with my AP OR they've got an encryption key set -- but not both. 3. When trying to bring up the 5100AGN, I get the following messages:
iwlagn: index 0 not used in uCode key table iwlagn: index 3 not used in uCode key table
/var/log/messages shows DHCPDISCOVER requests being sent, but they're bound to fail since the association with the AP with WEP isn't being completed. And yes, the ifcfg-* files really *are* identical except for the DEVICE and HWADDR lines. The /etc/udev/rules.d/70-persistent-net.rules file correctly maps the interfaces to the MAC addresses. So why does my antique ORiNOCO card work and thew newer ones fail? How can I track down what's being done wrong/not being done?
I'm using Opensuse 11.4 updated from 11.3, update from 11.2 updated from. I'm mounting at boot time (in fstab) some shares from an opensuse 11.2 server. Mounting worked fine in 11.2, 11.3 and also in 11.4 but suddenly (maybe an automatic update?) It stopped working.... sometimes.
Sometimes they are mounted properly but sometimes they aren't. When mount fails I get a log error: "rpc.statd is not runninf but is required for remote locking. Either use '-o nolock' to keep locks local or start statd"
If I run manually (as root) mount -a the shares mount properly always, so I thought it was a problem of timing (the service starting late) so I tried to get a script to run after the network initialitation, the script does: "mount -a". But it doesn't work either.
I'd like a way to see all of the devices on my local network and what their local IP address is. I recall that I used wireshark to troubleshoot a similar problem a while back, but it doesn't seem to have a way to see all of the devices- only the traffic. (I'd like to do this without having to physically interface with my router if possible, and I am in an encrypted network if that matters)
There is 2 networks that I would like to be part of
a) Through my wlan0 --> Internet DSL
and
b) Through my eth0 --> WUG - PTAWUG
I can only get one of the networks to work at 'n time. The wlan0 works fine when I start my PC, but when I want to access the WUG I need to do the following command:
with the above command, I can then access the WUG but not the internet through my wlan anymore.all data goes to my wlan as standard unless its on the 172.16.0.0 network