nfs client to use a designated source ip address
Trond Myklebust
trond.myklebust at fys.uio.no
Mon Oct 9 23:06:10 EDT 2006
On Mon, 2006-10-09 at 16:23 -0700, Roopa Prabhu wrote:
> Am sorry if I wasnt clear. I did use the client's own aliased
> ipaddress to mount. I mentioned the server in my mail just cause I
> wanted to let you know that I had my client's ipaddress in the
> server's /etc/exportfs.
>
> Below is a log of steps that I am trying.
>
> Thanks,
> Roopa
>
> [root at test-14 tmp]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:13:21:0C:66:C9
> inet addr:192.188.1.141 Bcast:192.188.1.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2389736 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1679714 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:2059301699 (1963.9 Mb) TX bytes:983176655 (937.6
> Mb)
> Interrupt:25
>
> eth0:0 Link encap:Ethernet HWaddr 00:13:21:0C:66:C9
> inet addr:1.3.14.5 Bcast:1.3.14.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:25
>
> [root at test-14 tmp]# ping -I 1.3.14.5 192.188.1.130
> PING 192.188.1.130 (192.188.1.130) from 1.3.14.5 : 56(84) bytes of
> data.
> 64 bytes from 192.188.1.130: icmp_seq=0 ttl=61 time= 0.179 ms
> 64 bytes from 192.188.1.130: icmp_seq=1 ttl=61 time=0.155 ms
>
> [root at test-14 tmp]# showmount -e 192.188.1.130
> Export list for 192.188.1.130:
> / 1.3.14.5
>
>
> [root at test-14 tmp]# mount -t nfs -o addr=1.3.14.5
> 192.188.1.130:/ /mnt
> mount: 192.188.1.130:/ failed, reason given by server: Permission
> denied
route add -host 192.188.1.130 dev eth0:0
Cheers,
Trond
More information about the NFSv4
mailing list