LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-06-2021, 06:48 AM   #1
Empair
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Rep: Reputation: Disabled
Diskless client, nfs root file system - communication protocol UDP instead of TCP


Hi

I'm trying to crate some diskless clients. And i need to change the communication protocol from TCP to UDP for mounting the file system via nsf.

My confing ...
Code:
(Server)
### /etc/dhcp/dhcpd.conf | grep -v '#' | sed '/^$/d' ###
option domain-name "nem264.cz";
option domain-name-servers 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
subnet 192.168.89.0 netmask 255.255.255.0 {
  range 192.168.89.100 192.168.89.200 ;
  option broadcast-address 192.168.89.255;
  option routers 192.168.89.2;
  next-server 192.168.89.2;
  filename "pxelinux.0";
}
---------------------------------------------

### cat /etc/default/isc-dhcp-server | grep -v '#' | sed '/^$/d' ###
INTERFACESv4="enp0s8"
INTERFACESv6=""
---------------------------------------------

### cat /etc/default/tftpd-hpa | grep -v '#' | sed '/^$/d' ###
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp/nem264"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
---------------------------------------------

### cat /etc/exports | grep -v '#' | sed '/^$/d' ###
/root_fs_nem264/     192.168.89.0/24(rw,async,no_root_squash)
/home/               192.168.89.0/24(rw,async)
---------------------------------------------

### cat /srv/tftp/nem264/pxelinux.cfg/default ###
# D-I config version 2.0
# search path for the c32 support libraries (libcom32, libutil etc.)

DEFAULT vesamenu.c32
PROMPT 0

MENU TITLE  Boot Menu

LABEL Debian - NetBoot
KERNEL /Debian/vmlinuz-4.19.0-14-amd64
APPEND initrd=/Debian/initrd.img-4.19.0-14-amd64 root=/dev/nfs nfsroot=192.168.89.2:/root_fs_nem264 ip=dhcp rw
---------------------------------------------

(Client)
### mount | grep nfs ###
192.168.89.2:/root_fs_nem264 on / type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=sys,local_lock=all,addr=192.168.89.2)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
---------------------------------------------
 
Old 03-06-2021, 08:11 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
And what is your question?

Version 4 of the NFS protocol only uses TCP. Instructions for Fedora, found thanks to Google.
 
Old 03-06-2021, 03:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
https://alexforencich.com/wiki/en/li...skless_pxe_nfs

PXE booting can use TFTP udp.

Could chain or just boot gpxe/ipxe to any source.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to block all tcp and udp and other protocol and only allow layer 2 communication? zerop Linux - Networking 1 07-23-2014 08:49 PM
Tuning UDP-lite protocol instead of UDP with "IPERF" tool sakibamu Linux - Software 0 04-08-2014 09:44 PM
diskless node+pxe boot mount nfsvers=2 in client root file system instead nfsvers=3 mgumbau Linux - Server 0 10-15-2013 06:44 PM
UDP & TCP Port Communication is Filtered/Open in nmap benderan Linux - Networking 8 01-21-2009 05:15 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration