1 修改以太网评分,改为30分
EthernetNetworkFactory.java
private static final int NETWORK_SCORE = 30;
编译镜像重新烧录后开机
2 设置以太网卡IP
ifconfig eth0 192.168.7.170 netmask 255.255.255.0
3 添加路由策略
ip route flush table 2
ip rule add dev eth0 table 2
ip rule add to 192.168.7.0/24 table 2
4 添加路由表
ip route add 192.168.7.0/24 dev eth0 table 2
ip route flush cache
网友评论