2006-01-14 08:55:17

by Ratheesh k

[permalink] [raw]
Subject: change eth0 to sn0 ?

i m using fc3


$ ifconfig

eth0 Link encap:Ethernet HWaddr 00:11:2F:38:07:D9
inet addr:172.16.7.104 Bcast:172.16.7.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6506 errors:0 dropped:0 overruns:0 frame:0
TX packets:5120 errors:0 dropped:0 overruns:0 carrier:0
collisions:1256 txqueuelen:1000
RX bytes:1951142 (1.8 Mb) TX bytes:1027381 (1003.3 Kb)
Interrupt:23 Base address:0x3800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:78 errors:0 dropped:0 overruns:0 frame:0
TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5420 (5.2 Kb) TX bytes:5420 (5.2 Kb)


$ ifconfig eth0 down
$ ifconfig sn0 172.16.8.1 netmask 255.255.252.0

sn0 intreface is added by driver .


what i want is , i want to use the hw addreess of eth0 , irq of eth0 to sn0
.

ie , i want to do

$ ifconfig sno 172.16.8.1 mtu 1500 irq 193 hw ether 00:11:2f:77:fd:c2

what i have to do ?

_________________________________________________________________
Spice up your IM conversations. New, colorful and animated emoticons. Get
chatting! http://server1.msn.co.in/SP05/emoticons/


2006-01-14 14:21:17

by be-news06

[permalink] [raw]
Subject: Re: change eth0 to sn0 ?

Ratheesh k <[email protected]> wrote:
> eth0 Link encap:Ethernet HWaddr 00:11:2F:38:07:D9
> inet addr:172.16.7.104 Bcast:172.16.7.255 Mask:255.255.252.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:6506 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5120 errors:0 dropped:0 overruns:0 carrier:0
> collisions:1256 txqueuelen:1000
> RX bytes:1951142 (1.8 Mb) TX bytes:1027381 (1003.3 Kb)
> Interrupt:23 Base address:0x3800

> $ ifconfig eth0 down
# nameif sn0 00:11:2F:38:07:D9

Gruss
Bernd

2006-01-14 14:36:48

by Tomasz Torcz

[permalink] [raw]
Subject: Re: change eth0 to sn0 ?

On Sat, Jan 14, 2006 at 03:21:14PM +0100, Bernd Eckenfels wrote:
> > $ ifconfig eth0 down
> # nameif sn0 00:11:2F:38:07:D9

Better use standard tools:

ip link set name sn0 dev nf

--
Tomasz Torcz Only gods can safely risk perfection,
[email protected] it's a dangerous thing for a man. -- Alia


Attachments:
(No filename) (337.00 B)
(No filename) (229.00 B)
Download all attachments