{"id":9518,"date":"2021-07-07T09:55:33","date_gmt":"2021-07-07T09:55:33","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=9518"},"modified":"2024-03-21T12:22:37","modified_gmt":"2024-03-21T12:22:37","slug":"setting-nfs-ports","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/","title":{"rendered":"Setting NFS ports"},"content":{"rendered":"\r\n<h2><span data-sheets-root=\"1\" data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Configure NFS ports&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}\">Configure NFS ports<\/span><\/h2>\r\n<p>&nbsp;<\/p>\r\n<p>Configuring NFS (Network File System) ports is essential for enabling communication and data transfer between NFS clients and servers securely within a network. NFS relies on specific port numbers for its operations, and ensuring these ports are properly configured is crucial for facilitating file sharing and access.<\/p>\r\n<p>By default, NFS uses port 2049 for its main operations, such as file read, write, and metadata requests. Additionally, NFS may use other ports for specific purposes, such as port 111 for RPC (Remote Procedure Call) and port 1110 for mountd, the NFS mount daemon.<\/p>\r\n<p><strong>Prerequisites<\/strong><\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\">GCP<\/a> account<\/p>\r\n\r\n\r\n\r\n<p>Open <a href=\"https:\/\/prwatech.in\/blog\/\">Console.<\/a><\/p>\r\n\r\n\r\n\r\n<p>Open Cloud Shell<\/p>\r\n\r\n\r\n\r\n<p>Paste the below code<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0\u00a0\u00a0 cat \/etc\/default\/nfs-common<\/p>\r\n\r\n\r\n\r\n<p>It\u00a0 will display the nfs-common file. In this file we can see STATDOPS have no value.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9524\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png\" alt=\"\" width=\"823\" height=\"404\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24-300x148.png 300w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Paste the\u00a0 code\u00a0 below to open the nfs-common file<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0 sudo nano \/etc\/default\/nfs-common<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9525\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-25.png\" alt=\"\" width=\"1120\" height=\"83\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-25.png 591w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-25-300x22.png 300w\" sizes=\"auto, (max-width: 1120px) 100vw, 1120px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>It will open the file.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Change\u00a0 STATDOPTS=\"-p 2046\"<\/pre>\r\n\r\n\r\n\r\n<p>Then press Ctrl + x then y to confirm following press Enter.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9526\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-26.png\" alt=\"\" width=\"839\" height=\"414\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-26.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-26-300x148.png 300w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Open<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$\u00a0\u00a0\u00a0\u00a0 cat \/etc\/modprobe.d\/lock.conf<\/pre>\r\n\r\n\r\n\r\n<p>If its displaying No such file or directory, then Open the file<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9527\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-27.png\" alt=\"\" width=\"975\" height=\"111\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-27.png 567w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-27-300x34.png 300w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$\u00a0\u00a0\u00a0\u00a0 sudo nano \/etc\/modprobe.d\/lock.conf<\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9528\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-28.png\" alt=\"\" width=\"1160\" height=\"83\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-28.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-28-300x22.png 300w\" sizes=\"auto, (max-width: 1160px) 100vw, 1160px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this file Paste the below code<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">options lockd nlm_tcpport=4045<br \/>\r\noptions lockd nlm_udpport=4045<\/pre>\r\n\r\n\r\n\r\n<p>Then press Ctrl + x then y to confirm following press Enter.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9530\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-30.png\" alt=\"\" width=\"993\" height=\"149\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-30.png 593w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-30-300x45.png 300w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Paste the below code<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0\u00a0\u00a0 cat \/etc\/default\/nfs-common<\/p>\r\n\r\n\r\n\r\n<p>It\u00a0 will display the nfs-common file with the STATDOPS value updated.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9531\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-31.png\" alt=\"\" width=\"783\" height=\"368\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-31.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-31-300x141.png 300w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Open<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$\u00a0\u00a0\u00a0\u00a0 cat \/etc\/modprobe.d\/lock.conf<\/pre>\r\n\r\n\r\n\r\n<p>It\u2019ll display the updated lock.conf file<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9532\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-32.png\" alt=\"\" width=\"1021\" height=\"150\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-32.png 561w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-32-300x44.png 300w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>Configure NFS ports &nbsp; Configuring NFS (Network File System) ports is essential for enabling communication and data transfer between NFS clients and servers securely within a network. NFS relies on specific port numbers for its operations, and ensuring these ports are properly configured is crucial for facilitating file sharing and access. By default, NFS uses [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1640],"tags":[605,699,700,984,617,683,684,685,611,1400,692,1542],"class_list":["post-9518","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-networking","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-course","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-platform-tutorial","tag-google-cloud-training","tag-nfs-ports"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configure NFS ports - Prwatech<\/title>\n<meta name=\"description\" content=\"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure NFS ports - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-07T09:55:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-21T12:22:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/\",\"name\":\"Configure NFS ports - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png\",\"datePublished\":\"2021-07-07T09:55:33+00:00\",\"dateModified\":\"2024-03-21T12:22:37+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png\",\"width\":628,\"height\":309},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting NFS ports\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure NFS ports - Prwatech","description":"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Configure NFS ports - Prwatech","og_description":"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-07-07T09:55:33+00:00","article_modified_time":"2024-03-21T12:22:37+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/","name":"Configure NFS ports - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png","datePublished":"2021-07-07T09:55:33+00:00","dateModified":"2024-03-21T12:22:37+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Master Configure NFS ports - Dive deep with our expert instructors and comprehensive curriculum Enroll now.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/07\/image-24.png","width":628,"height":309},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/networking\/setting-nfs-ports\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Setting NFS ports"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=9518"}],"version-history":[{"count":7,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9518\/revisions"}],"predecessor-version":[{"id":11090,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9518\/revisions\/11090"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=9518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=9518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=9518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}