{"id":67594,"date":"2021-07-25T21:30:08","date_gmt":"2021-07-26T01:30:08","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/network-interface-network-clients-related-linux-redhat-centos-commands-devops-rhcsa\/"},"modified":"2021-07-25T21:30:08","modified_gmt":"2021-07-26T01:30:08","slug":"network-interface-network-clients-related-linux-redhat-centos-commands-devops-rhcsa","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67594","title":{"rendered":"Network Interface, Network Clients related Linux\/Redhat\/CentOS commands #DevOps #RHCSA"},"content":{"rendered":"<p>echo &#8220;Dec 24th, 2017&#8221;<br \/>\n532 echo &#8220;Basic Networking in Linux&#8221;<br \/>\n533 hostname<br \/>\n534 uname -a<br \/>\n535 uname -n<br \/>\n536 cat \/etc\/hostname<br \/>\n537 nmcli general hostname<br \/>\n538 changing hostname temporarily<br \/>\n539 hostname server10.example.com<br \/>\n540 for permanent change<br \/>\n541 hostnamectl set-hostname server100.example.com<br \/>\n542 or change \/etc\/hostname file<br \/>\n543 vim \/etc\/hostname<br \/>\n544 restart systemctl<br \/>\n545 systemctl restart systemd-hostnamed<br \/>\n546 systemctl restart systemd-hostnamed.service<br \/>\n547 echo &#8220;IPV4 addresses&#8221;<br \/>\n548 ip addr<br \/>\n549 cat \/etc\/protocols<br \/>\n550 ip neighbor<br \/>\n551 yum install arp*<br \/>\n552 cat \/etc\/services<br \/>\n553 cat \/etc\/protocols<br \/>\n554 ip neighbor<br \/>\n555 interface configuration files<br \/>\n556 cat \/etc\/sysconfig\/network-scripts\/<br \/>\n557 ll \/etc\/sysconfig\/network-scripts\/<br \/>\n558 ll \/etc\/sysconfig\/network-scripts\/ifcfg-*<br \/>\n559 you can change parameters for the interface config files<br \/>\n560 ll \/etc\/sysconfig\/network-scripts\/ifcfg-ens33<br \/>\n561 cat \/etc\/sysconfig\/network-scripts\/ifcfg-ens33<br \/>\n562 name and IP conversion. \/etc\/hosts &#8211; DNS is the system to do this.<br \/>\n563 interface stop and start<br \/>\n564 ifdown ens33; ifup ens33<br \/>\n565 cat \/etc\/default\/grub<br \/>\n566 it used to be eth0 eth1, now default is ens<br \/>\n567 you can change that using some config changes<br \/>\n568 ip<br \/>\n569 nm-connection-editor<br \/>\n570 nm-connection-editor is graphical nmtui is text based &#8211; not command line but text based interface<br \/>\n571 nmtui is command line based. nmtui is text-based interface based<br \/>\n572 nmcli<br \/>\n573 nmcli device show<br \/>\n574 nm-connection-editor<br \/>\n586 to set ipv4 address &#8211; one example<\/p>\n<p>589 ip addr add 192.168.0.111\/24 broadcast 192.168.0.255 dev ens33<br \/>\n590 ip addr<br \/>\n591 ip addr add 192.168.0.111\/24 broadcast 192.168.0.255 dev eth1<br \/>\n592 ls<br \/>\n593 systemctl status NetworkManager<br \/>\n594 nmcli con show<br \/>\n595 nmcli dev status<br \/>\n596 exit<br \/>\n597 history From: http:\/\/sitestree.com\/?p=12059<br \/> Categories:DevOps, RHCSA<br \/>Tags:<br \/> Post Data:2017-12-24 22:13:22<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>echo &#8220;Dec 24th, 2017&#8221; 532 echo &#8220;Basic Networking in Linux&#8221; 533 hostname 534 uname -a 535 uname -n 536 cat \/etc\/hostname 537 nmcli general hostname 538 changing hostname temporarily 539 hostname server10.example.com 540 for permanent change 541 hostnamectl set-hostname server100.example.com 542 or change \/etc\/hostname file 543 vim \/etc\/hostname 544 restart systemctl 545 systemctl restart systemd-hostnamed &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67594\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67594","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":14031,"url":"http:\/\/bangla.sitestree.com\/?p=14031","url_meta":{"origin":67594,"position":0},"title":"Network Interface, Network Clients related Linux\/Redhat\/CentOS commands","author":"Sayed","date":"December 24, 2017","format":false,"excerpt":"echo \"Dec 24th, 2017\" 532 echo \"Basic Networking in Linux\" 533 hostname 534 uname -a 535 uname -n 536 cat \/etc\/hostname 537 nmcli general hostname 538 changing hostname temporarily 539 hostname server10.example.com 540 for permanent change 541 hostnamectl set-hostname server100.example.com 542 or change \/etc\/hostname file 543 vim \/etc\/hostname 544 restart\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67586,"url":"http:\/\/bangla.sitestree.com\/?p=67586","url_meta":{"origin":67594,"position":1},"title":"Create your own yum repo in Centos\/Redhat #DevOps #RHCSA","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"Yum is a software installation manager for Redhat Linux and Related. yum is a better tool than rpm. Here, we will take the rpm packages as come with Redhat\/Centos and then we will host those packages on our own Repo Server for yum. i.e. yum will use this Repo to\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14040,"url":"http:\/\/bangla.sitestree.com\/?p=14040","url_meta":{"origin":67594,"position":2},"title":"AutoFS and Mounting in Linux\/Redhat\/CentOS","author":"Sayed","date":"December 26, 2017","format":false,"excerpt":"AutoFS and Mounting in Linux\/Redhat\/CentOS echo \"AutoFS - Automatic FS system Mounting - Dec 26th, 2017 by Sayed\" check if Autofs installed or not yum list installed | grep autofs I just installed; hence it is there you can install with yum -y install autofs 944 yum -y install autofs\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67598,"url":"http:\/\/bangla.sitestree.com\/?p=67598","url_meta":{"origin":67594,"position":3},"title":"AutoFS and Mounting in Linux\/Redhat\/CentOS #DevOps #RHCSA","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"AutoFS and Mounting in Linux\/Redhat\/CentOS echo \"AutoFS - Automatic FS system Mounting - Dec 26th, 2017 by Sayed\" check if Autofs installed or not yum list installed | grep autofs I just installed; hence it is there you can install with yum -y install autofs 944 yum -y install autofs\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24594,"url":"http:\/\/bangla.sitestree.com\/?p=24594","url_meta":{"origin":67594,"position":4},"title":"Topic 2: Example: Show Misc info about a Machine #Root","author":"Author-Check- Article-or-Video","date":"April 12, 2021","format":false,"excerpt":"bash-3.2$ cat echoscript.sh #!\/bin\/sh # This script will print useful information about the current machine. # It will print the machine name, model type, specific processor # information, and the current number of processes running. echo echo \"The name of the machine is c\" uname -n # uname -n gives\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14013,"url":"http:\/\/bangla.sitestree.com\/?p=14013","url_meta":{"origin":67594,"position":5},"title":"Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8","author":"Sayed","date":"December 7, 2017","format":false,"excerpt":"Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8 Mount Installer ISO mkdir \/mnt\/dvd1 mount \/dev\/sr0 \/mnt\/dvd1 Check if FTP server is installed systemctl status vsftpd systemctl start vsftpd Install ftp Server. Using rpm as yum is not available yet [default yum needs the internet, kindof] cd \/mnt\/dvd1\/Packages\/ rpm -ivh\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67594"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67594\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67594"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}