Uncategorized

Changing Ethernet Interface name from ens to eth using netplan

This short post is about changing interface name of your choice from the default ens prefix in the Linux. I have an Ubuntu 18.04 virtual machine running in VMware Fusion 12 Pro. Ubuntu now uses netplan to handle networking configurations, so, the cleanest way to change the names to whatever you want is to tie the name with MAC address in netplan YAML file.

Here I will change the names from ens33 and ens34 to eth0 and eth1 respectively, you can use the name of your choice i.e. wan0, lan0, etc.

Note the MAC addresses of the interfaces

mmalik@crpd:/etc/netplan$ ifconfig
ens33: flags=4163 mtu 1500
inet 192.168.125.133 netmask 255.255.255.0 broadcast 192.168.125.255
inet6 fe80::20c:29ff:fe34:39e0 prefixlen 64 scopeid 0x20
ether 00:0c:29:34:39:e0 txqueuelen 1000 (Ethernet)
RX packets 1218 bytes 116085 (116.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 883 bytes 125267 (125.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens34: flags=4163 mtu 1500
inet 172.16.127.133 netmask 255.255.255.0 broadcast 172.16.127.255
inet6 fe80::20c:29ff:fe34:39ea prefixlen 64 scopeid 0x20
ether 00:0c:29:34:39:ea txqueuelen 1000 (Ethernet)
RX packets 24 bytes 2208 (2.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 175 bytes 10756 (10.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 209 bytes 18357 (18.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 209 bytes 18357 (18.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

You may transfer the netplan YAML file to your laptop for easy editing else use VIM.

mmalik@crpd:/etc/netplan$ scp 00-installer-config.yaml 192.168.125.1:/Users/mmalik/Downloads
00-installer-config.yaml 100% 414 443.2KB/s 00:00

Check if all indentations are placed correctly at http://www.yamllint.com/

Transfer the file back to VM
mmalik@mmalik-mbp Downloads % scp 00-installer-config.yaml 192.168.125.133:/home/mmalik/
00-installer-config.yaml 100% 459 577.6KB/s 00:00

Move the netplan yaml file to correct location

mmalik@crpd:~$ mv 00-installer-config.yaml /etc/netplan/

Apply the config from the netplan YAML file and reboot the VM.

mmalik@crpd:~$ sudo netplan apply
mmalik@crpd:~$ sudo reboot

Check the interfaces again
mmalik@crpd:~$ ifconfig
eth0: flags=4163 mtu 1500
inet 192.168.125.133 netmask 255.255.255.0 broadcast 192.168.125.255
inet6 fe80::20c:29ff:fe34:39e0 prefixlen 64 scopeid 0x20
ether 00:0c:29:34:39:e0 txqueuelen 1000 (Ethernet)
RX packets 609 bytes 764536 (764.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 149 bytes 17267 (17.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163 mtu 1500
inet 172.16.127.133 netmask 255.255.255.0 broadcast 172.16.127.255
inet6 fe80::20c:29ff:fe34:39ea prefixlen 64 scopeid 0x20
ether 00:0c:29:34:39:ea txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 726 (726.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 99 bytes 7803 (7.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 99 bytes 7803 (7.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

How Did I Prepare For The PMP Exam?

After Passing the PMP exam, I received lots of messages asking how did I prepare for the exam and what material did I use.

As always, for any certification every certification I start to prepare from the basics even if I have advance knowledge of the topic; for example, for JNCIE-SP, I had begun preparing right from JNCIA-JunOS (along with all hands-on labs). Revisiting what you know never hurts but sometimes help.

Also, I always prefer the vendor’s or institution’s official study material, in most of the cases that is better than what is available in the market.

For PMP, I spent five weeks preparing.

The primary study material I used to prepared was PMBOK 6th Edition.

The PMBOK is somewhat like reading RFCs. Thus you need a book along with PMBOK that explains the topics in simple language.

I read PMBOK twice and then read Rita’s PMP Exam Prep, 9th Edition : frankly speaking, I didn’t like the book, it is filled with unnecessary commentary and could easily discourage those want to avoid useless stuff.

I picked up another book, Achieve PMP Exam Success, this book is excellent, but you should have read PMBOK already or read it along with PMBOK, Chapters are written in sync with PMBOK. I read it along with PMBOK.

Finally, I read Head First, PMP 4th Edition, it is a wholly engaging book and does cover almost all topics. Exercises included at the end of the chapters are very good, and 200 questions at the end of the book are good enough to check your knowledge if you are ready for the exam.

I didn’t use any exam simulator for the preparation.

In the exam, I marked the numerical questions only and visited back for calculations once completed the rest of the questions. The exam is easy; just don’t get distracted. It took me 3 hours, 51 minutes finishing the 200 items. I passed the exam with “Above Target” rating.  Yes, it was my first attempt.

PMP Result.png

PMP Result

In my opinion, you need PMBOK Guide 6th Edition plus a book for exercises and simplified explanation.

Below are the books you may need to have a look apart from reading PMBOK Guide.

  • Achieve PMP Exam Success, 6th Edition
  • Head First PMP, 4th Edition

Happy studying!

Good Luck, for the PMP exam.

PMP Badge:

https://www.youracclaim.com/badges/dc06982b-ef81-4e38-8f0a-bbe3afb3710b/public_url

Certificate:

PMP