-->

DEVOPSZONES

  • Recent blogs

    Linux : Interface naming are not in order, How to solve

    Linux : Interface naming are not in order, How to solve







    There would be some cases where your Physical NICs and there Corresponding logical names are not in order. For example Dell PowerEdge R920 server we have one Integrated NIC which has 4 Ports. In the OS they should be visible as em1 to em4 or eth0 to eth3. Where em1 or eth0 should corresponds to the first port of the Integrated NIC. If that was not the case then we are having an issue. To fix that issue we need to do the Following:

    1. vi /etc/default/grub 
    2. Add the  "net.ifnames=0 biosdevname=0" in GRUB_CMDLINE_LINUX line.
    GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=vg_root/lv_root rd.lvm.lv=vg_root/lv_swap rd.lvm.lv=vg_root/lv_usr rhgb quiet net.ifnames=0 biosdevname=0 numa=off transparent_hugepage=never"
    3. Refresh grub2 config
        grub2-mkconfig -o /boot/grub2/grub.cfg
    4. Then reboot the machine. 
    reboot

    No comments