Swapping eth0 and eth1 on OK335xS board

简介: /******************************************************************************* * Swapping eth0 and eth1 on OK335xS board * 声明: * 有时候我们可能希望能够将eth0和eth1的名字换一下。
/*******************************************************************************
 *                   Swapping eth0 and eth1 on OK335xS board
 * 声明:
 *     有时候我们可能希望能够将eth0和eth1的名字换一下。
 *
 *                                          2015-9-30 阴 深圳 南山平山村 曾剑锋
 ******************************************************************************/

一、参考文档:
    https://e2e.ti.com/support/arm/sitara_arm/f/791/p/415084/1482324

二、几种网卡接口的缩写全称:
    Described in the following sections is the 3-port switch (3PSW) Ethernet subsystem. 
    The 3-port switch gigabit ethernet subsystem provides ethernet packet communication 
    and can be configured as an ethernet switch. It provides the gigabit media independent 
    interface (GMII),reduced gigabit media independent interface (RGMII), reduced media 
    independent interface (RMII), the management data input output (MDIO) for physical 
    layer device (PHY) management.

三、修改方法(etc/init.d/rc):
    ......
    #echo `ifconfig -a` 
    ifconfig eth0 down
    ifconfig eth1 down
    ip link set dev eth0 name eth2
    ip link set dev eth1 name eth0
    ip link set dev eth2 name eth1
    ifconfig eth0 up
    ifconfig eth1 up
    #echo `ifconfig -a`
    ......

 

目录
打赏
0
0
0
0
12
分享
相关文章
“eth0”不存在
“eth0”不存在
195 2
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization
执行 service network restart  出现了网卡无法启动,说找到不到 Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization 解决办法: 1》 修改/etc/udev/rules.d/70-persistent-net.rules文件,删
1644 0
Wedge 100-32X 100GbE Data Center Switch
1、总体设计 (https://www.edge-core.com/productsList.php?cls=1&cls2=5&cls3=67) 基于 Facebook’s Wedge 100 design.
1466 0