這次準備來寫CentOS 7安裝MCRoute的順序
照慣例先安裝乾淨的CentOS 7在host上
阿怎麼會這樣?網卡名稱跟我原本習慣的不一樣
居然是什麼奇怪的eno16777736
那就動手改吧!
先來看個名稱先!
照慣例先安裝乾淨的CentOS 7在host上
阿怎麼會這樣?網卡名稱跟我原本習慣的不一樣
居然是什麼奇怪的eno16777736
那就動手改吧!
先來看個名稱先!
#ip a 1: lo:然後進到eno16777736裡面修改他!mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eno16777736: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff inet 192.168.25.135/24 brd 192.168.25.255 scope global dynamic eno16777736 valid_lft 1209sec preferred_lft 1209sec inet6 fe80::20c:29ff:feaa:f320/64 scope link valid_lft forever preferred_lft forever
# vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 HWADDR=xx:xx:xx:xx:xx:xx TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16777736 UUID= ONBOOT=no改成下面兩行
NAME=eth0 ONBOOT=yes存檔退出,然後改變這個檔案的名稱
# mv ifcfg-eno16777736 ifcfg-eth0之後告訴GRUB以後不要幫我取名
#vi /etc/default/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=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet" GRUB_DISABLE_RECOVERY="true"在GRUB_CMDLINE_LINUX裡面加上兩行
net.ifnames=0 biosdevname=0重載GRUB並且重開機
# grub2-mkconfig -o /boot/grub2/grub.cfg # reboot打完收工!
留言
張貼留言