Re同一节点,怎么通过内网传输?
1)通过远程ssh软件登陆到服务器;
2)敲ifconfig命令,可以看到类似下面的输出,有eth0和eth1,如下,eth0的ip是内网IP地址,eth1的ip地址时外网ip地址。
root@iZ28e0vznvmZ:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:02:49:92
inet addr:10.165.59.112 Bcast:10.165.63.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11341153 errors:0 dropped:0 overruns:0 frame:0
TX packets:235176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:888159323 (888.1 MB) TX bytes:645813697 (645.8 MB)
eth1 Link encap:Ethernet HWaddr 00:16:3e:02:49:66
inet addr:121.42.54.83 Bcast:121.42.55.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:186886249 errors:0 dropped:0 overruns:0 frame:0
TX packets:912019 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8990279052 (8.9 GB) TX bytes:197768208 (197.7 MB)
3)得到ip地址后,就可以通过内网直接通信了,比如使用scp进行文件拷贝。