Re: eth0 again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/20/2014 09:08 PM, Amadeus W.M. wrote:
> That may be useful. Looks like udevinfo is superseeded by udevadm. Other 
> than that, udevadm shows no sign of eth0:  
> 
> [root@phoenix ~]# udevadm info --query=all --path /sys/class/net/em1 
> P: /devices/pci0000:00/0000:00:1e.0/0000:02:0c.0/net/em1
> E: DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0c.0/net/em1
> E: ID_BUS=pci
> E: ID_MM_CANDIDATE=1
> E: ID_MODEL_FROM_DATABASE=82540EM Gigabit Ethernet Controller
> E: ID_MODEL_ID=0x100e
> E: ID_NET_NAME_MAC=enx000cf1bc29fe
> E: ID_NET_NAME_PATH=enp2s12
> E: ID_OUI_FROM_DATABASE=Intel Corporation
> 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=em1
> E: SUBSYSTEM=net
> E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/em1
> E: TAGS=:systemd:
> E: USEC_INITIALIZED=555769
> 
> This a useful tool I didn't know about, but it will take some time to 
> sort everything out.
> 
> Thanks!
> 

I just tested on my machine... All I did was add net.ifnames=0 to the
linux16 line of /boot/grub2/grub.conf:

> [tcameron@case ~]$ grep vmlinuz /boot/grub2/grub.cfg 
> 	linux16 /vmlinuz-3.10.0-123.4.2.el7.x86_64 root=UUID=e69ef7fa-d3c3-4d88-972b-31c7cb65777c ro vconsole.keymap=us  vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_US.UTF-8 net.ifnames=0

I made my network config files look like this:

> [tcameron@case Desktop]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 
> DEVICE=eth0
> HWADDR=90:2B:34:A8:63:06
> ONBOOT=yes
> BRIDGE=br0
> NM_CONTROLLED=no
> 
> [tcameron@case Desktop]$ cat /etc/sysconfig/network-scripts/ifcfg-br0
> DEVICE=br0
> TYPE=Bridge
> BOOTPROTO=dhcp
> ONBOOT=yes
> DELAY=0

After a reboot, I get this:

> [tcameron@case ~]$ ifconfig 
> br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 172.31.100.4  netmask 255.255.255.0  broadcast 172.31.100.255
>         inet6 fe80::922b:34ff:fea8:6306  prefixlen 64  scopeid 0x20<link>
>         ether 90:2b:34:a8:63:06  txqueuelen 0  (Ethernet)
>         RX packets 156389  bytes 713077279 (680.0 MiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 84468  bytes 49169937 (46.8 MiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> 
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet6 fe80::922b:34ff:fea8:6306  prefixlen 64  scopeid 0x20<link>
>         ether 90:2b:34:a8:63:06  txqueuelen 1000  (Ethernet)
>         RX packets 513040  bytes 738615315 (704.3 MiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 84478  bytes 49223871 (46.9 MiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I made exactly no other changes that the files mentioned above. No udev
rules, nothing.

Now, this is a Fedora 19-based system (RHEL7), but this should work on
F20 as well.

Thomas
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux