How to rename usb n to eth n
Short version: With udev set to use 'old-style' network card naming (eth0, eth1, wlan0, ...), how do you change cards that init as 'usb<n>' to 'eth<n>'?
Long version: I have a new laptop on the way that doesn't have a wired ethernet card. However, the work I do requires a wired ethernet card from time to time, and I also have to use software which has a license key tied to the MAC address of eth0 (namely, Altera Quartus and Xilinx ISE). I found a method for creating a faked-out eth0 that should do the trick (http://jms.id.au/wiki/FakeEth0). However, now comes the problem of the wired ethernet card. I have three different USB ethernet cards - one in a docking station on my desk, one for my computer bag, and one for a VM passthrough for a certain piece of test equipment. Ideally, the faked out card would sit at eth0 and then any of the USB cards should appear as eth1 (or if two cards are connected, eth1 and eth2). This way, the naming is consistent no matter which card I use and I won't have to reconfigure wicd when I plug in a different adapter as the wired adapter name will always be the same. Two of them work fine and show up as eth1 when connected. However, one of the adapters shows up as usb0 instead of eth1. Every time I switch between this adapter and a different adatper, I will have to reconfigure wicd and point it to the correct card as it only supports controlling a single wired ethernet card at a time. Is there a way to force this to show up as eth<n> instead of usb<n>? I really don't want to do a static rename (just rename usb0 to eth1 on connect) because this could cause issues if I happen to have a different card plugged in as eth1 already. I presume this can be done by modifying the udev rules file 80-net-setup-link.rules, but I can't see any obvious way of implementing this.
I'm having a similar probably with a USB NIC
KERNEL=="en*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", NAME="usbnic", RUN+="/etc/udev/rules.d/nic-start.sh"
It comes up as /sys/class/net/enp0s20u1 in sysfs.
This rule works in so much as it fires my script (which actually just writes to a file for test purposes). It doesn't seem to give me a rename though. I'm trying to get ifplugd to start when my USB NIC is attached, which it is singularly failing to do, and I was hoping I might be able to catch it with a later rule once it was named.
Similar Messages
-
How to rename a column name in a table? Thanks first!
I tried to drop a column age from table student by writing the
following in the sql plus environment as :
SQL> alter table student drop column age ;
but I found the following error
ORA-00905: 缺少关键字 (Lack of Key word)
I have oracle enterprise edition 8.0.5 installed at windows 2000
thank you
And I want to know how to rename a column name in a table?
thanksIn Oracle 8i, your syntax would have worked. However, if I
recall correctly, in Oracle 8.0, you can't rename or drop a
column directly. One way to get around that problem is to
create another table based on a select statement from your
original table, providing the new column name as an alias if you
want to change the column name, or omitting that column from the
select statement if you just want to drop it. Then drop the
original table. Then re-create the original table based on a
select statement from the other table. Then you can drop the
other table. Here is an example:
CREATE TABLE temporary_table_name
AS
SELECT age AS new_column_name,
other_columns
FROM student
DROP TABLE student
CREATE TABLE student
AS
SELECT *
FROM temporary_table_name
DROP TABLE temporary_table_name
Something that you need to consider before doing this is
dependencies. You need to make a list of all your dependecies
before you do this, so that you can re-create them afterwards.
If there are a lot of them, it might be worthwhile to do
something else, like creating a view with an alias for the
column or just providing an alias in a select. It depends on
what you need the different column name for. -
How to Rename a Topic ID in Map File to Avoid Conflict with Another Program?
Robo 8 HTML:
Can somebody assist me in understanding how to rename a topic ID in my map.h file?
An application programmer informs me there are nine topic IDs (shown below) in my project map file which conflict with predefined names of constants/functions from the Visual Studio Libs program and, is requesting I change the names of the topics listed below to resolve topic ID conflict in order to enable F1 call for these topics.
#define Open 59
#define Save 60
#define Print 63
#define Cut 72
#define Copy 73
#define Paste 74
#define Clear 75
#define Status 81
#define Substructure 139
Can I simply alter the topic names and retain their associated map numbers in <Create/Edit Map ID> dialog to resolve the map file conflict with Visual Studio Libs program functions? Or, is there more work involved in changing a topic name in a map.h file?
Any assistance with this question is greatly appreciated.
Thanks,
robertHi,
Simply renaming the TopicID's in the .h file won't work. The TopicID is used in the alias file (projectname.ali) to link a map number with a topic. Also, you can use either TopicID's or map numbers to call the help. (Using TopicID's only works for WebHelp afaik.)
If you use map numbers to call the help, you can rename the TopicID using the mentioned dialog. No problem.
If you want to change the ID from the files, you have to change both the .h file as the .ali file. No changes to topics needed. -
How to rename a macbook pro 13 inch 10.7.3 version
how to rename a macbook pro 13 inch 10.7.3 version?
As for the Users...
Go to system preferences - users and groups - click the plus sign - add the name you want.
Restart your MB - login with your username.
go back to users and groups - highlight your uncles name - click the minus sign. -
Can't figure out how to rename css style in mx
Hello,
I can't figure out how to rename css style in mx. I have the
style selected in the proprety inspector. Is there supposed to be a
rename option at the bottom of the same dropdown box? There is
option to edit style and a few others in same dropdown box... but
no rename option. Please be specific... I have looked it up on the
internet... but still cant find the option.
Thanks,
PoJDo a Find and Replace to find name1 and replace with name2.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"computerpain" <[email protected]> wrote in
message
news:ed43p3$m9h$[email protected]..
> Hello,
> I can't figure out how to rename css style in mx. I have
the style
> selected
> in the proprety inspector. Is there supposed to be a
rename option at the
> bottom of the same dropdown box? There is option to edit
style and a few
> others in same dropdown box... but no rename option.
Please be
> specific... I
> have looked it up on the internet... but still cant find
the option.
>
> Thanks,
> PoJ
> -
How to rename a file in Application server
Hi All,
Here I have a issue with the present file which is being generated in application server.
Before the completion of the file the EDI tool is extracting the file from the app server.So here I would like to generate the file with a temp name and then rename to the actual file name which EDI recognises and fetches.
Please correct me If I am wrong and let me know how to rename the file in application server.
Thanks,
Vijay Nyou can try using unix command , if your application server is unix.
use move command
mv <source> <target>
REPORT ZUNIX line-size 400
no standard page heading.
data: unixcom like rlgrap-filename.
unixcom = 'mv file1 file2'.
data: begin of tabl occurs 500,
line(400),
end of tabl.
data: lines type i.
start-of-selection.
refresh tabl.
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
or else you can open dataset/ read the dataset and move it to another file and delete the old file. -
How to rename the column name in oracle 8i?
hi,
Does anyone know how to rename the column name in oracle 8i?My method was drop the relationship key first then delete the old column,finally add the new column.
Thanks for your replay.
jingThere is no facilty to rename a column name in Oracle 8i. This is possible from Oracle 9.2 version onwards.
For you task one example given below.
Example:-
Already existed table is ITEMS
columns in ITEMS are ITID, ITEMNAME.
But instead of ITID I want ITEMID.
Solution:-
step 1 :- create table items_dup
as select itid itemid, itemname from items;
step 2 :- drop table items;
step 3 :- rename items_dup to items;
Result:-
ITEMS table contains columns ITEMID, ITEMNAME -
How to rename folder in Final Cut Pro X project library?
How to rename folder in Final Cut Pro X project library? I can't double click on folder, when I right click it just gives options to erase. Can someone help?
I think you may have misunderstood - the question is regarding renaming a project "folder", not a project name.
Still, the accepted answer here makes no sense to me at all - it's about renaming an event. So we're all confused ;-)
BTW as of 10.0.5, I still cannot rename a project folder while background tasks are running - no clue is given that this is what's going on, second-clicking on the folder just (frustratingly) does nothing. When background tasks finish, it works again. -
How to rename the SharePoint Document Library existing file name using Web service
Hi,
How to rename the SharePoint Document Library existing file name using SharePoint Web service.
Is it possible. How could i do it?
Thanks & Regards
Poomani SankaranHi,
Lists.UpdateListItems Method
would be helpful for your requirement.
Here is a blog with code demo for your reference:
http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to rename the existing project in NetWeaver
Hi All,
Please let me know the process of how to rename the existing project in NetWeaver.Hi,
If you want to rename Development Component (DC) project, here is the procedure..
How to rename local Development Component Projects in Netweaver Developer Studio
Regards,
Uday. -
How to rename a program name in ABAP.
Hi all,
How to rename a program name in ABAP. Please help me out in this.
Thanks & Best Regards,
Vishnuhi vishnu,
goto se38--> press Ctrl+F6
it will give one small screen source program and target program.
in target program type ur pgm name
reward if its useful. -
How to Rename the technical name and description of an infocube?
Hi,
How to Rename the technical name and description of an infocube?
Thanx in advance,
Ravi.Ravi,
You cant change the Technical name of the cube but you can change the description of the Cube. If you want to have a Cube with the same properties and with different Techname and Description better you do copy from the base cube and rename as per your requirement.
Regards,
Gattu. -
How to rename column name of table?
Hello...
How to rename column name of table?
The column have data.
Thanks.
Martonio.The following should work in 9i release 2 and above.
SQL> create table mytable(col1 varchar2(2),
2 col2 date);
Table created.
SQL> insert into mytable values('t1',sysdate);
1 row created.
SQL> select * from mytable;
CO COL2
t1 30-NOV-04
1 row selected.
SQL> desc mytable
Name Null? Type
COL1 VARCHAR2(2)
COL2 DATE
SQL> alter table mytable rename column col2 to mydate;
Table altered.
SQL> desc mytable
Name Null? Type
COL1 VARCHAR2(2)
MYDATE DATE
SQL> select * from mytable;
CO MYDATE
t1 30-NOV-04
1 row selected.
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.3.0 - Productionhttp://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/wnsql.htm#972698 -
How to rename mailbox in N97 mini
I set 3 mailboxex with the automatic configuration wizard in N97 mini. The mailboxex have been automatically named by the SW. Can someone tell me how to rename them?
Thank in advance
Seiseralm
Solved!
Go to Solution.Sorry, but this functionality is not available. It is limited by the device firmware.
Chris McK - Nokia Messaging/Social Product Marketing -
HT1178 how to add usb drives to time capsule after initial setup
How to add USB hard drives to TC after TC is already setup then access the usb drives by both PC and mac?
1. Just plug them in. The drives need to be formatted as FAT16, FAT32, or Mac OS Extended (Journaled), and may need to be connected through a powered USB hub.
2. Click here for information.
(82647)
Maybe you are looking for
-
How to use at the same time the audio sounds of a keyboard & the midi sounds with mainstage
Hello! hope you can shed some light on my problem! I want to be able to use at the same time the real sounds of korg sv-1(stage keyboard, but it could be any stage piano with USB midi) and use other sounds from mainstage. Of course i switch between p
-
Why does Quickview stop showing previews when I scan through a folder of .eps files?
I have an Adobe Illustrator folder with a bunch of my .eps files that I browse through, and after about 20 or 30 files the quickview preview stops showing me the artwork and shows the generic eps image. Is this a limited feature or is something wron
-
How to route traffic between two different interfaces
Hi, I need to setup a routing between two different interfaces on a host. Inferface ce1 : 192.168.120.12 Inteface ce2 : 192.168.110.50 Is it possible to add a route which enables the ce2 interface to catch packets from the ce1 interface ? Regards, Ar
-
Guest Access with Inter-vlan Mobility
I have a setup as follows Two datacenters each with one wlc5500, one guest access server and one internet circuit with firewall. LWAPs connect to the data centres over a WAN. Each LWAP has two SSIDs one guest with web auth and one private with 802.1x
-
OCIStmtExecute hangs when connection is lost
Hi, If the connection to the Oracle server for some reason is lost, the call to OCIStmtExecute could hang for several minutes. When OCIStmtExecute finally returns a new call to OCIStmtExecute does not hang but of course it returns with error. How can