Networking :: Can Eth Device Names Be Correlated To Physical Port?

Dec 1, 2009

I am building a custom RedHat+<our-software> installer iso for our own appliance. I am using Red Hat 5.4. The appliances has two on-board eth interfaces. On the back panel of the appliance, these ports are marked 1 and 2. When I install RH, I find the device names assigned such as eth0/eth1 are arbitrary. I understand this is to be expected with kernels 2.6+. Most of our customers connect their eth cables to the port marked 1 on the back and assume they should configure eth0 to make the device reachable. However, sometimes port 1 gets assigned "eth1". This is not a blocking issue, but its going to confuse our customers and we wanted to make it easier on them.

From reading online discussion boards, I know HOW to switch the assignment of the eth names. However, what I am do not know is whether I need to switch them at all. So I have two questions
1) Is there anyway for me to tell which eth mac corresponds to which port on the back? Since they are soldered on the motherboard and not movable, I would think there would be some way to figure out that x mac address corresponds to the upper port (marked '1' etc).
2) Is there a way to tell this by running a linux command? We need to do this automatically so I need to be able to figure it out at install time from the kickstart post-install or similar.

View 1 Replies


ADVERTISEMENT

Hardware :: How To Find The /dev/sd Device Currently Assigned To A Physical Flash Drive Port

Jul 17, 2011

I have (at least 4) native USB ports that contain flash drives. I know that the /dev/sd[abcd] devices are created in the order they were inserted, but say you have all four plugged in at boot time, or further, they can be plugged and unplugged in real time. At times, /dev/sdf, /dev/sdg, etc. are created as well. I'm ignoring external hubs for now.

I need to know which drive is plugged into the "top port on the front panel", etc, by physical location. From dmesg I can check right after booting and get the physical assignment of a PCI device, say, PCI 0000:00:10.3, as being assigned to the EHCI usb bus. From /proc/bus/usb/devices, and the "T:" field, I have learned that the physical connectors I'm interested are known as USB Bus 1, Port=00, Port=01, Port=04, and Port=05.

From lsusb I can see all sorts of information from the USB point of view, but with no /dev/sd references.

From /proc/scsi/scsi, I can see what scsi devices have been created, with a count consistent with the number of flash drives plugged in, but no USB data.

So, I can get lots of information from the USB storage point of view, and lots of information from the SCSI point of view, but nowhere can I find how to correlate them. In other words, if I want to mount the drive plugged into a given physical slot, how can I find the /dev/sd device I need to mount? udev isn't really interesting here, because I'm just looking for the information that udev would use to answer the same question.

I've done some heaving exploring in the /sys and /proc filesystems and have not yet found where the USB and SCSI worlds intersect.

The closest I have found is (where "Port" is the physical port number from above):

This seems to have some mapping to the physical port and references a "/dev/sd[a-z]" value, but I don't know how reliable it might be, nor do I know if my having to increment that physical port by 1 is meaningful. Anyone have a simpler approach?

So, my goal becomes
mount /dev/<sd that was created for the top slot> /mnt/top
mount /dev/<sd that was created for the bottom slot> /mnt/bottom etc.

View 2 Replies View Related

Fedora Networking :: 3G USB Modem Has Wrong Device Port In NM - Change Device Port In Network Manager?

Aug 14, 2009

I installed ZTE MF 626 modem in my F10 with kernel 2.6.27.12-170, i run usb_modeswitch and so far things happened normally. Watching through /var/log/messages it says that F10 detects two port device for this modem: ttyUSB1 and ttyUSB2, and in the sequence it disable port ttyUSB1 BUT Network Manager still set this port.I mean, when i connect via wvdial appointing to ttyUSB2 i get connection, but Network Manager fails to do it appointing to ttyUSB1. How to change device port in Network Manager?

View 1 Replies View Related

Ubuntu Networking :: How To Port Forward Form One Device To Another

Apr 1, 2010

I have a host and a client both running linux. Host has internet through eth2. Client needs to share that connection. The computers are connected directly using a crossover. I can ping from both fine. I figured I needed to port forward eth2 to eth0 to gain internet access in the client. How?

Code:

eth0 Link encap:Ethernet HWaddr 00:26:18:a6:fd:a3
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::226:18ff:fea6:fda3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

[code]...

View 5 Replies View Related

Ubuntu Servers :: Find Port Names For Iptables?

Jun 4, 2010

I noticed you can use names for ports like ssh, instead of the actual port number in iptables, but I can't find a list of what they are?

View 3 Replies View Related

General :: Filesystems - Changing Device Names In /dev

Apr 25, 2011

I have many disks and volumes in my system. Some of disks IDE, some SATA.

Volumes on SATA disks cause me problems - I have them listed in etc/fstab, but on every boot, they have different name:

/dev/sdd* becomes /dev/sdb*
/dev/sde* becomes /dev/sdc*

etc. on every boot.

1) Why is this happening?

2) How can I prevent it?

3) If I can't, is there a workaround?

View 2 Replies View Related

Ubuntu :: Raid5 And Static Device Names?

May 17, 2011

I am setting up a Raid5 and torture testing it. I added two eSata ports to my machine. When a drive is installed in that eSata port and the machine then booted up the device name (e.g. /dev/sdc) is inserted in the middle of my Raid devices. And that is just one example of how the device names can change.I did a search on 'static device names' but I saw nothing directly related to Raid. What I did see were suggestions to create udev rules based on UUID. But that was for single disks, not Raid, where each drive/partition in the raid array appears to have the same UUID.I'm surprised this does not come up in the various Raid howtos because it is impossible to keep a Raid array intact without solving this problem unless the machine is never touched thereafter.

View 1 Replies View Related

General :: List Only The Device Names Of All Available Network Interfaces?

Oct 25, 2010

I want to get a list of all available Network-Device Names on my Linux server. I figured that

netstat -a

would do the job, however netstat produces quite much output:

eth0 Link encap:Ethernet Hardware Adresse 08:00:27:fc:5c:98
inet Adresse:192.168.2.222 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: fe80::a00:27ff:fefc:5c98/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1

[Code]....

I assume that this can be done by a combination of "cat", "sed" and "grep", but I have simply no clue of how to strip the uneccessary information.

View 4 Replies View Related

Ubuntu :: 10.10 Mdadm RAID - Moving Device Names ?

Mar 25, 2011

I'm having trouble with Ubuntu 10.10 and stable device names. When I installed Ubuntu, the root drive was the only one in the machine; it obviously got /dev/sda.

After the base installation, I installed three additional 2TB drives to make RAID-5 array. Ubuntu renamed the root drive to /dev/sdd. While annoying I lived with it.

After creating a single partition set to "Linux raid autodetect" on each drive, I created the RAID-5 array:

Code:

All was going well until a reboot. When rebooting Ubuntu decided to make the root drive /dev/sda this time and now mdadm --detail /dev/md0 reports:

Code:

How to fix the array and make the device names stable?

View 1 Replies View Related

Hardware :: Block Device Names Change After Reboot

Jan 19, 2011

I built a Raid5 volume with 3 SATA II hard disk drives. Further I have a system disk conected through IDE. During the first setup the IDE disk becomes sda, the SATA II disk sd[bcd] respectively. Now, sometimes the device names change after reboot - why ever... E.g. one of the raid5 disk become sda and so I got an error message during the boot procedure regarding the raid set. Curious, when the system is up and I stop and restart the Raid5 volume it comes up and runs fine. Because I'm currently at work I can't post any more detailed config files at the moment.

View 2 Replies View Related

CentOS 5 :: Persistent Device Names For ISCSI Disks?

Nov 15, 2010

I have a server wich is connected to an iSCSI storage and gets harddisks from this storage. Sometimes I have to add new disks to this server. Everytime I add a disk and make an /etc/init.d/iscsi restart on the server the disks don't have the same device name as before the iscsi restart.

It should be possible to gave the disks persistent names using udev rules. Now I tried to create different rules in "/etc/udev/rules.d/99-static-iscsi-names.rules" e.g.

# /dev/sdc
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -s %p",RESULT=="360a98000503355344c4a576864467877" NAME=="sdc%n"
In "/etc/rc.local" I added "/sbin/start_udev" and in "/etc/scsi_id.config" I added the line "vendor="NETAPP",model="LUN",options=-g"

[Code]...

View 3 Replies View Related

Fedora Networking :: Port Redirect, I.e. Whatever Comes Through Whatever Interface On Port AAAA Will Get Redirected To Port BBBB?

Feb 18, 2010

I want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:

nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB

[code]....

View 10 Replies View Related

Ubuntu Installation :: Maverick Has Its Own Ideas About Drive Device Names?

Dec 15, 2010

I'm trying to install Xubuntu 10.10 onto a machine with 3 hard drives. My drives are (rather, should be) like this:

/dev/sdaX: Windows and Windows apps/games
/dev/sdbX: Data
/dev/sdcX: Blank drive for Linux.

[code]....

View 1 Replies View Related

Ubuntu :: Staticly Assign Device Names (/dev/sda, Etc.) To Specific Hard Drives?

Feb 20, 2011

This is one of those questions where I highly suspect that the answer will be something like ". . .just stinks bein' you, kid."My setup:I have Ubuntu 10.04 x64 (desktop) installed on a computer with a bunch of SATA ports, including one e-SATA on the backBecause of the way the hardware works with these ports, the *external* port is the first SATA port, a second SATA port inside becomes #2, and a cluster of four ports (that can be made into a (ahem!) RAID array become ports 3 through 6.

All ports are configured as SATA (PATA emulation)My boot drive is located on SATA-2 (the inside connector), a four disk "MD" raid array is located on SATA 3-6, and I have an external HD enclosure that I plug into the e-SATA connection.

With all six drives plugged in, they get ordered like this:
/dev/sda - External drive
/dev/sdb - Internal operating system drive (bootable)

[code]....

View 3 Replies View Related

Red Hat :: Mapping /proc/scsi/scsi Entries With Respective Device Names In /dev/ Directory

Apr 11, 2011

In my understanding, the way /proc/scsi/scsi gets populated, /proc/paritions also gets populated in the same fashion. i.e. the description for first entry of /proc/scsi/scsi can be seen in the first entry of /proc/partitions and same for rest.

So, With this assumption, in my project, I used to relate first entry of /proc/scsi/scsi with first entry of /proc/partitions to get its total size and same for all entries.

But, I observed some differences in following scenario, where

1) The first 4 entries in /proc/scsi/scsi are SAN luns attached to my system and for which the actual device names in /dev/ are sda,sdb,sdc and sdd.

2) The last 4 entries are the internal HDDs on same system. In /dev/, their respective device names are sde,sdf,sdg & sdh.

(Output attached at end of the thread)

But in /proc/partitions, the device order is different.

You can see their respective sizes in /proc/partition output as well.

So, my question is, in this particular scenario, I can't relate the first entry of /proc/scsi/scsi with first entry of /proc/partition. i.e. scsi0:00:00:00 is not /dev/sde, because it is actually /dev/sda.

It seems that my assumption is wrong in this scenario.

Is there any way or mechanism to figure out actual device name for an entry in /proc/scsi/scsi in /dev/ directory?

How can my application should relate /proc/scsi/scsi entries with their respective device names and sizes?

View 2 Replies View Related

General :: Use A Rs232 Device That Uses The Usb Port?

May 18, 2010

been trying to use a rs232 device that uses the usb port. it calls for a virtual com port to be created. i am running on ubuntu 10 and get hella confused with the search results i have come across.some call for the usbdevfs which apparently doesn't exist under lucid. another had me do use some "magic" in getting it to work.they provided a script mountusbfs.sh

Code:

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs

[code]....

of course when i tried it the domount command doesn't exist so i modified the above script replacing the domount with mount and it seemed to do something things. usbview is specified as the determining factor whether or not you have the usbfs mounted properly. it wants to use proc bus and ubuntu doesn't use that anymore apparenlty. i have read that i need to enable a usbmon (flag?option?) in the kernel to be set. which it isn't when i followed the steps to check.

View 3 Replies View Related

Fedora :: Unable To Enumerate USB Device On Port 2

Jun 29, 2011

i have this error in my log but i don't know why?

Quote:

Jun 19 20:34:08 localhost kernel: [352155.875643] hub 2-1:1.0: unable to enumerate USB device on port 2
Jun 19 20:34:08 localhost kernel: [352155.851515] usb 2-1.2: new low speed USB device using ehci_hcd and address 17
Jun 19 20:34:08 localhost kernel: [352155.677964] usb 2-1.2: device descriptor read/64, error -32
Jun 19 20:34:08 localhost kernel: [352155.503404] usb 2-1.2: device descriptor read/64, error -32

[code]....

The Motherboard is a Intel Desktop Board DH55TC, Sockel 1156, mATX, HDMI

View 14 Replies View Related

Fedora :: Unable To Enumerate USB Device On Port 4

Jul 21, 2011

After installation I boot a few times and used F15 on my Dell Inspiron 1564. But now I can't boot anymore. The screen just shows "unable to enumerate USB device on Port 4" and just hangs there with a blinking cursor below that line. I have no USB devices attached though.

View 2 Replies View Related

Hardware :: Using Printer Port - No Such Device Or Address

Mar 14, 2010

I am trying to use the printer port. But, I get this

Code:
Broadcom EJTAG Debrick Utility v1.6r-hugebird
Failed to lock /dev/parport0: No such device or address
johnh@tux:~/Ubuntu One/hh$
run from johnh I permission denied sudo-ing I get above.

View 6 Replies View Related

General :: Detection Of A Device When Plugged Through USB Port?

Apr 14, 2010

tell me detection code of device when an external device is connected through USB port.

View 4 Replies View Related

Slackware :: Unable To Enumerate USB Device On Port 5

Jul 16, 2011

I'm running Slackware 13.37 64 bit. I run it on an HP2945SE AMD Turion x2. I am getting an error during boot up unable to enumerate USB device on port 5. It filters throughout the rest of the boot up commands / results. It doesn't seem to matter if things are plugged up to the USB ports or not. Also it doesn't seem to affect anything on the computer. Its just irritating.

View 2 Replies View Related

Ubuntu :: Unable To Enumerate USB Device On Port 4

Mar 4, 2010

Doing a dmesg I can see following lines

[ 130.876406] hub 1-0:1.0: unable to enumerate USB device on port 4
[ 130.876453] usb 3-2: USB disconnect, address 6
[ 131.200399] hub 1-0:1.0: unable to enumerate USB device on port 4
[ 131.396382] hub 1-0:1.0: unable to enumerate USB device on port 4

[code]....

That is what I have exactly pluged, the webcam on the top of my screen and an external mouse. Btw, I can plug USB devices with no problem, so I am skiping this error since long time ago, but I don't understand this message and I would love to do it.

View 5 Replies View Related

Ubuntu Networking :: Error - Remote Port Forwarding Failed For Listen Port 5500

Aug 7, 2010

When I use the following command:

ssh user@ssh_server -L 5500:localhost:5500 -p 22

everything works fine. I can log in, and local port forwarding is done. Otherwise when I use the command:

ssh user@ssh_server -R 5500:localhost:5500 -p 22

I get an error "remote port forwarding failed for listen port 5500". However when I try remote port forwarding in WinXP by use of putty there is no problem...

View 2 Replies View Related

Networking :: Use Iptables In Order To Forward All The Incoming Packets For Port 5555 To Port 5556?

Apr 4, 2011

I'm trying to use iptables in order to forward all the incoming packets for port 5555 to port 5556 on the same server (192.168.2.101).

I wrote the following commands:

iptables -A PREROUTING -t nat -i any -p tcp --dport 5555 -j DNAT --to 192.168.2.101:5556
iptables -A FORWARD -p tcp -m state --state NEW -d 192.168.2.101 --dport 5556 -j ACCEPT

View 3 Replies View Related

Networking :: Iptables Can't Port Forward (PAT Port Address Translation)?

Feb 20, 2010

I'm using a Debian servers, as router/firwall.. I've two ethernet interfaces into the server, one for wan and one for lan. The i use SNAT so my LAN clients can access the internet throgh the debian router. That is working... Now i want to be able to access servers on the LAN site from the WAN site, and i wanna use port address translation (PAT). I have a FTP server running on a lan server, so i'm trying to portward port 21.

iptables -t nat -A PREROUTING -p tcp -i eth1 -d (WANIP) --dport 21 -j DNAT --to 192.168.1.2:21

When people try to access my FTP from the WAN site, they are redirected to the local FTP server, and they are promted for crendentials, but when the credentials are typed, and the local ftp server should answer the wan request, the connections dies.

The wan clients are being promted for credentials, so they are redirected to the local lan server, but after that the connections dies, so i think there is some kind of nat problem, when the local lan server is trying to respond to the wan request..

Here i my iptables script:

#flush table
iptables -F
#input regler

[code]....

View 6 Replies View Related

Networking :: MULTICAST Address And Port - Socket Listen Only On Port?

Feb 12, 2009

I make an application on GNU/Linux which listening on a MULTICAST stream, so I open my unconnected socket, bind it on a MULTICAST address and a port, join the multicast group with the "setsockopt (IP_ADD_MEMBERSHIP)", then I receive datagram on my socket.

Now I've two different instances of the same application that run with their own MULTICAST address and port. And what I found strange is that, after a misconfiguration, I switch the ports, for example:

Emitting on 225.0.0.1/23451 and 225.0.0.2/23452
Receiving on 225.0.0.1/23452 and 225.0.0.2/23451

And my receiving part doesn't care about the MULTICAST address, it looks like the socket is listening on the port number only! I mean that the receiver [225.0.0.1/23452] take its datagrams from emitter [225.0.0.2/23452] and vice-versa!

View 2 Replies View Related

Ubuntu Installation :: Hub 5-0:1.0: Unable To Enumerate USB Device On Port 1

Jan 17, 2010

I installed Ubuntu 9.10 to my USB-HDD. After upadte, ubuntu can`t load with error:

usb 5-1: device description read/64: error -32
usb 5-1: device description read/8: error -71
hub 5-0:1.0: unable to enumerate USB device on port 1

The boot stopped after this strings.I reinstall the system, and I have this problem again.

View 2 Replies View Related

General :: Secure The Usb Port By External Device Connection?

Apr 14, 2010

i want to secure the USB port by any external device connection. so i need the code of detection of an external device when plugged in the USB port.

View 1 Replies View Related

Slackware :: 13 - When Plugin Usb Device In The Usb Port It Print Error

Jan 21, 2010

After new installation of slackware 13 when I plugin usb device in the usb port it's print error:

And I have not premission on the device and I must mount the device handle. I

View 10 Replies View Related

Ubuntu Networking :: Port Forwarding Through A Specific Port?

Jul 14, 2011

I want to set my ip as static and port forward it through a specific port can anyone help me with this im using ubuntu 10 with 64 bit OS

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved