Swapping eth0 and eth1 on OK335xS board

/*******************************************************************************
 *                   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`
    ......

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值