This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

keystone2 Linux不能同时使用2个网卡



keystone2-k2e  在u-boot下2个网卡都能使用。进到Linux只能使用其中一个网卡,

通过这个设置 setenv args_all 'setenv bootargs console=ttyS0,115200n8 rootwait=1 ip=${ipaddr}::${gatewayip}:${netmask}::eth1:off'

              setenv args_all 'setenv bootargs console=ttyS0,115200n8 rootwait=1 ip=${ipaddr}::${gatewayip}:${netmask}::eth0:off'

可以控制Linux那个口能用,但是不能同时使用。
不能用的网卡插拔网线,会识别到,就是不能ping 通. 能ping通的网卡,能ping设置的2个Ip地址,mac是同一个
  root@k2e-evm:/usr/sbin# ifconfig eth1 10.10.120.4 
root@k2e-evm:/usr/sbin# ifconfig eth1 netmask 255.255.255.0[ 109.868890] libphy: 24200f00.mdio:01 - Link is Down 

root@k2e-evm:/usr/sbin# [ 147.844142] libphy: 24200f00.mdio:01 - Link is Up - 1000/Full 
[ 147.849881] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready 
ifconfig 
eth0 Link encap:Ethernet HWaddr 18:D6:FD:00:B4:99 
inet addr:10.10.120.2 Bcast:10.10.120.255 Mask:255.255.255.0 
inet6 addr: fe80::18d6:fd00:100:b499/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:11051 errors:0 dropped:0 overruns:0 frame:0 
TX packets:10148 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:8209686 (7.8 MiB) TX bytes:1597616 (1.5 MiB) 
lo Link encap:Local Loopback 
inet addr:127.0.0.1 Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING MTU:65536 Metric:1 
RX packets:8 errors:0 dropped:0 overruns:0 frame:0 
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:784 (784.0 B) TX bytes:784 (784.0 B) 

怎么设置能是2个网卡都能使用?