From: Eugene Prokopiev <enp@altlinux.org> To: ALT Linux Sisyphus discussions <Sisyphus@lists.altlinux.org> Subject: [sisyphus] Rename network interface in systemd-networkd Date: Tue, 1 Sep 2015 09:22:38 +0300 Message-ID: <CANM4Rui7Xjw--v1BKQULfLP_CyAM_T41pGiC_rzbW--M6oaPkA@mail.gmail.com> (raw) Здравствуйте! Пытаюсь переименовать enp0s3 в lan0 средствами systemd-networkd на свежем сизифе: cat /etc/systemd/network/lan0.link [Match] MACAddress=08:00:27:4c:8f:ed Driver=e1000 Path=pci-0000:00:03.0-* Type=eth Virtualization=no Host=localhost Architecture=i586 [Link] Name=lan0 На всякий случай: # udevadm info /sys/class/net/enp0s3 P: /devices/pci0000:00/0000:00:03.0/net/enp0s3 E: DEVPATH=/devices/pci0000:00/0000:00:03.0/net/enp0s3 E: ID_BUS=pci E: ID_MODEL_FROM_DATABASE=82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter) E: ID_MODEL_ID=0x100e E: ID_NET_DRIVER=e1000 E: ID_NET_LINK_FILE=/lib/systemd/network/99-default.link E: ID_NET_NAME=enp0s3 E: ID_NET_NAME_MAC=enx0800274c8fed E: ID_NET_NAME_PATH=enp0s3 E: ID_OUI_FROM_DATABASE=CADMUS COMPUTER SYSTEMS E: ID_PATH=pci-0000:00:03.0 E: ID_PATH_TAG=pci-0000_00_03_0 E: ID_PCI_CLASS_FROM_DATABASE=Network controller E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller E: ID_VENDOR_FROM_DATABASE=Intel Corporation E: ID_VENDOR_ID=0x8086 E: IFINDEX=2 E: INTERFACE=enp0s3 E: SUBSYSTEM=net E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp0s3 /sys/subsystem/net/devices/enp0s3 E: TAGS=:systemd: E: USEC_INITIALIZED=11340375 И никакого эффекта. И даже в случае net.ifnames=0 в kernel command line максимум что выходит - eth0 :( -- WBR, Eugene Prokopiev
next reply other threads:[~2015-09-01 6:22 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-01 6:22 Eugene Prokopiev [this message] 2015-09-01 10:30 ` Eugene Prokopiev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CANM4Rui7Xjw--v1BKQULfLP_CyAM_T41pGiC_rzbW--M6oaPkA@mail.gmail.com \ --to=enp@altlinux.org \ --cc=Sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git