openSUSE Forums > Network/Internet » Rename NIC name without YAST

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-Oct-2009, 01:37
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 2
terset hasn't been rated much yet
Default Rename NIC name without YAST

Hello all!
Server with 4 nic interfaces, OpenSuse 11.1. I want rename eth0 to wan1. I can use yast, but want to now, how did it from console.
# ifconfig eth0 down
# ip link set eth0 name wan1
# ifconfig wan1 up
is work, but after reboot, eth0 still here.
if I rename /etc/sysconfig/network/ifcfg-eth0 -> ifcfg-wan1 network did'n work, and I see new config in yast.
How I can currectly rename NIC name w/o yast?
Reply With Quote
  #2 (permalink)  
Old 20-Oct-2009, 03:29
tuxituk's Avatar
Explorer Penguin
 
Join Date: Oct 2008
Location: Manchester
Posts: 121
tuxituk hasn't been rated much yet
Default Re: Rename NIC name without YAST

Quote:
Originally Posted by terset View Post
Hello all!
Server with 4 nic interfaces, OpenSuse 11.1. I want rename eth0 to wan1. I can use yast, but want to now, how did it from console.
# ifconfig eth0 down
# ip link set eth0 name wan1
# ifconfig wan1 up
is work, but after reboot, eth0 still here.
if I rename /etc/sysconfig/network/ifcfg-eth0 -> ifcfg-wan1 network did'n work, and I see new config in yast.
How I can currectly rename NIC name w/o yast?
Hi,

check out the nameif command. man nameif from the command prompt.

hth
J
__________________
Linux# makes_a_network_feel_good.sh

Linux and BSD solutions
Reply With Quote
  #3 (permalink)  
Old 20-Oct-2009, 05:40
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 2
terset hasn't been rated much yet
Default Re: Rename NIC name without YAST

thx,
I modified /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:1a:4f:1d:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="wan1"
and it work after reboot
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2