Last modified: December 31 1969 16:00:00
ifconfig eth1 192.168.1.3 netmask 255.255.255.0 up
On goober:
ifconfig eth1 192.168.1.2 netmask 255.255.255.0 up
And added requisite changes in /etc/sysconfig/network-scripts/ifcfg-eth1 on both so they come up on reboot.
[root@spleen ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.3 NETMASK=255.255.255.0 TYPE=Ethernet [root@goober ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.2 NETMASK=255.255.255.0 TYPE=Ethernet
[root@spleen ~]# mkdir /export
Edit /etc/exports:
# only goober, 192.168.1.2, can diddle with the /export dir read-write. # also, root is root on both systems. /export 192.168.1.2(rw,sync,no_root_squash)
(Re)start services nfs and portmap for any changes to /etc/export. Run chkconfig and make sure nfs and portmap and rpc services are set to start in runlevel 3 (or 5, whatever the "runlevel" command reports under normal circumstances).
portmap:192.168.1.2 lockd:192.168.1.2 rquotad:192.168.1.2 mountd:192.168.1.2 statd:192.168.1.2
[root@goober ~]# mkdir /export
Edit /etc/fstab:
192.168.1.3:/export /export nfs rw 0 0
[root@goober ~]# mount 192.168.1.3:/export /export