°Ô½Ã¹° 259°Ç
   
[Red Hat 7] NIC ¸í º¯°æÇϱâ
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2015-06-01 (¿ù) 11:03 Á¶È¸ : 5831

+ RHEL7 ¿¡¼­´Â ±âÁ¸°ú´Â ´Þ¸® ¾Æ·¡¿Í °°Àº ¹æ¹ýÀ¸·Î NIC À̸§À» º¯°æÇÒ ¼ö ÀÖ´Ù.

  1. ÇöÀç¼³Á¤µÈ NIC È®ÀÎÇϱâ

    [root@OS-15 ~]##ifconfig
    eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.10.20.15  netmask 255.0.0.0  broadcast 10.255.255.255
            inet6 fe80::20c:29ff:feb1:70  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:b1:00:70  txqueuelen 1000  (Ethernet)
            RX packets 176  bytes 15740 (15.3 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 135  bytes 18879 (18.4 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  2. vim /etc/sysconfig/grub ÆÄÀÏ ¼öÁ¤Çϱâ
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="rd.lvm.lv=vg_sys/lv_swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=vg_sys/lv_root crashkernel=auto  vconsole.keymap=us rhgb quiet net.ifnames=0 biosdevname=0"
    GRUB_DISABLE_RECOVERY="true"

  3. grub2-mkconfig -o /boot/grub2/grub.cfg ¸í·ÉÀ¸·Î grub config ÆÄÀÏ »ý¼º
    [root@OS-15 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-5fc06167651441e2a58d30816aee8333
    Found initrd image: /boot/initramfs-0-rescue-5fc06167651441e2a58d30816aee8333.img
    done

  4. ifcfg-eno16777736 ÆÄÀϳ» NAME ¹× ifcfg-eno16777736 ÆÄÀÏ¸í º¯°æÇϱâ

  5. ¼­¹ö Àç½ÃÀÛ
    [root@OS-15 ~]#reboot

  6. º¯°æµÈ NIC À̸§ È®ÀÎÇϱâ
    [root@OS-15 ~]#ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.10.20.15  netmask 255.0.0.0  broadcast 10.255.255.255
            inet6 fe80::20c:29ff:feb1:70  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:b1:00:70  txqueuelen 1000  (Ethernet)
            RX packets 57  bytes 5847 (5.7 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 77  bytes 10994 (10.7 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



theko 2015-07-01 (¼ö) 23:29

¿©±â¼­ È®ÀÎÇÒ°Ç 1677736 => eth0 ·Î ¹Ù²Ù´Â ¼³Á¤À» Çغ¸ÀÚ...

1. vi /etc/default/grub

2. GRUB_CMDLINE_LINUX="        "    " "¾È¿¡ Á© µÞºÎºÐ¿¡ ¾Æ·¡ ¹®±¸¸¦ Ãß°¡ÇÑ´Ù.

   net.ifnames=0   biosdevname=0  <= Ãß°¡ÈÄ ÀúÀåÇÏ°í ³ª¿Â´Ù.

3. grub2-mkconfig -0 /boot/grub2/grub.cfg

4. mv /etc/sysconfig/network-scripts/ifcfg-eno16777736    /etc/sysconfig/network- 

   scripts/ifcfg-eth0 

5. reboot

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com