更新:(下面的每个请求)
serveradmin@FILESERVER:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 FILESERVER # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Ubuntu服务器12.04.1 x64
主要angular色是Mac OSX客户端的NFS文件服务器。
硬件:
Eth0 : 00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
Eth1 : 07:00.0 Ethernet controller: MYRICOM Inc. Myri-10G Dual-Protocol NIC
configuration:
ifconfig eth0 Link encap:Ethernet HWaddr <MACADDRESS> inet addr:192.168.0.150 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:460042020 errors:0 dropped:148 overruns:0 frame:0 TX packets:231906707 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:581431978417 (581.4 GB) TX bytes:259057368617 (259.0 GB) Interrupt:20 Memory:f7d00000-f7d20000 eth1 Link encap:Ethernet HWaddr <MACADDRESS> inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6832208 errors:0 dropped:2 overruns:0 frame:0 TX packets:376 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:513826442 (513.8 MB) TX bytes:33688 (33.6 KB) Interrupt:59 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:507 errors:0 dropped:0 overruns:0 frame:0 TX packets:507 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:45057 (45.0 KB) TX bytes:45057 (45.0 KB)
nano / etc / network / interfaces
#The loopback network interface auto lo iface lo inet loopback #The primary network interface auto eth0 iface eth0 inet static address 192.168.0.150 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 8.8.8.8 #second network interface auto eth1 iface eth1 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 8.8.8.8
目前我在OSX客户端上使用: nfs://192.168.0.100/Volumes/Storage来挂载NFS共享。
我的问题是为什么所有的数据(我已经检查使用各种监测工具bmon,iftop,glances等)是通过较慢的连接?
另外,在configuration/ etc / network / interfaces和上面的设置之后,我总是会在启动时收到一条错误消息,提示waiting for network configuration 。 这些连接?
您可以将接口限制为仅对通过接口(而不是系统上的任何系统)上configuration的地址进行ARP广播进行响应:
sysctl net.ipv4.conf.eth[num].arp_filter=1
例如在这种情况下:
sysctl net.ipv4.conf.eth0.arp_filter=1 sysctl net.ipv4.conf.eth1.arp_filter=1
通过向/etc/sysctl.conf添加行(减去sysctl命令)来使更改永久化
您直接访问192.168.0.100,因此,所有通信将通过该IP路由。
如果这是更快的接口,并通过xxx150路由,请发布/ etc / hosts; 它可能包含一些有价值的信息。