Results 1 to 3 of 3

Thread: Rename NIC name without YAST

Hybrid View

  1. #1
    terset NNTP User

    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?

  2. #2
    Join Date
    Oct 2008
    Location
    Manchester
    Posts
    128

    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

  3. #3
    terset NNTP User

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •