# Configuring the NFS Client

You can configure a virtual router on the E Series router as a Network File System (NFS) client to provide remote file access for E Series applications that need NFS-based transport.

The system provides NFS client support only for E Series applications designed to use NFS-based transport. Unlike the typical implementation on UNIX workstations, the E Series NFS client does not provide services such as mounting or unmounting of files through the CLI.

This section describes how to configure the NFS client if you are using an E Series application that requires NFS-based transport.

## References

The NFS client complies with the following standards:

- RFC 1094—Network File System Protocol Specification (March 1989)
- RFC 1057—Remote Procedure Call Protocol Specification (June 1988)

## Prerequisites

The E Series NFS client requires a remote host to act as an NFS server. The remote host must support NFS server protocol version 2 or higher.

## Configuration Tasks

To configure a virtual router as an NFS client:

1. Access the virtual router context.
2. Add the remote host to the host table.
3. Configure the remote host as an NFS server for this virtual router.
4. Specify the E Series interface that this virtual router will use to exchange NFS communications with this server.

host

- Use to add or modify an entry to the host table.
- Example
  host1:boston(config)#host host50 10.2.3.4
- Use the no version to remove a specified host.
- See host.

ip nfs

- Use to specify the E Series interface that the current virtual router will use to exchange messages with the NFS server.
- Specify either the source-address keyword with the IP address of the interface or the source-interface keyword with the interface type and specifier. For information about interface types and specifiers, see Interface Types and Specifiers in JunosE Command Reference Guide.
- Issuing this command provides connectivity between the E Series router and the remote host if the network configuration restricts communications between devices.
- Example
  host1:boston(config)#ip nfs source-address 10.1.1.1 host1:boston(config)#ip nfs source-interface atm 3/2.6
- Use the no version to delete the name server.
- See ip nfs.

ip nfs host

- Use to configure a remote host as an NFS server for the current virtual router.
- Optionally, specify a user identity and a group identity that a user must specify to connect to the remote host. The default user identity is 2001, and the default group identity is 100.
- Example
  host1:boston(config)#ip nfs host host50 user 1500 group 150
- Use the no version to disassociate this NFS server from the current virtual router.
- See ip nfs host.

## Monitoring the NFS Client

Use show hosts command (see Monitoring the System) to monitor information about connected NFS servers. Use show ip nfs command to display information about the interface that the current virtual router uses to exchange messages with the NFS server.

show ip nfs

- Use to display information about the interface that the current virtual router uses to exchange messages with the NFS server.
- Field descriptions
  - Source address—IP address of the interface that the current virtual router uses to exchange messages with the NFS server.
  - Source interface—Type and specifier of the interface that the current virtual router uses to exchange messages with the NFS server. For information about interface types and specifiers, see Interface Types and Specifiers in JunosE Command Reference Guide.
- Example

      host1#show ip nfs
      Source address is 1.1.1.1

- See show ip nfs.