CentOS 7中没有ifconfig命令,而且不能发现eth0

1、由于安装时使用的是最小化安装CentOS 7,安装完成后没有发现ifconfig命令
      检查/sbin下也没有这个命令。使用的是root身份。
      #yum install -y net-tools\*
     可以成功安装ifconfig
CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
 2、我的网卡是Atheros AR8131 PCI-E,但是安装过程中没有提示设置网卡,安装好后也没有发现ifcfg-eth0的          配置文件。
CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
      使用dmesg | grep -in eth检查开机信息中有没有eth0的消息
CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
      发现由interface eth0改为了ens33
3、更改网卡的名字 -  由ens33改为eth0
CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
    修改grub中的GRUB_CMDLINE_LINUX,追加语句"net.ifnames=0 biosdevname=0“。
    然后执行# grub2-mkconfig -o /boot/grub2/grub.cfg
    之后重启# reboot
CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
  再查看网卡,发现名字已经更改过来了。
 CentOS 7中没有ifconfig命令,而且不能发现eth0 - Aaron - 飄緲峰主人
 但是仍需要将/etc/sysconfig/network-scripts/ifcfg-ens33更名为ifcfg-eth0,同时修改其内容,指定IP、NETMASKGATEWAY,同时修改onboot=no为yes。最后执行service restart network。
展开阅读全文

ifconfig eth0 up 出错

11-21

目前在做双网卡移植,有一个网卡是好的,能够ping通路由器,而另一个网卡加载后,ID读取正常,但是在启用该设备时,也就是ifconfig eth0 up的时候,出现了oops信息,信息如下:rnrnrn[root@Real210 /]# ifconfig eth0 uprnBUG: soft lockup - CPU#0 stuck for 61s! [ifconfig:1211]rnModules linked in:rnrnPid: 1211, comm: ifconfigrnCPU: 0 Not tainted (2.6.32.9 #77)rnPC is at __do_softirq+0x68/0x204rnLR is at __do_softirq+0x50/0x204rnpc : [] lr : [] psr: 20000113rnsp : ea1f3cb0 ip : ea1f3cb0 fp : ea1f3cecrnr10: 60000013 r9 : c068ce00 r8 : 00000001rnr7 : 00000002 r6 : 00000000 r5 : 00000202 r4 : ea1f2000rnr3 : c068ce00 r2 : ea1f3c98 r1 : 00000000 r0 : 00000000rnFlags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment userrnControl: 10c5387d Table: 4a1f8019 DAC: 00000015rnrnPC: 0xc006b6f8:rnb6f8 e24cb004 e92d4000 ebff1a89 e3a00c01 ebffbf70 e89da800 e1a0c00d e92ddff0rnb718 e24cb004 e24dd014 e92d4000 ebff1a80 eb0648a0 e59f31cc e0833300 e3a00c01rnb738 e5935040 ebffbf63 e1a0300d e3c34d7f e3a0300a e50b3030 eb064896 e3c4403frnb758 e50b0034 eb064893 e59f3198 e3a06000 e0833300 e5836040 f1080080 e59f9184rnb778 e3150001 e0869009 0a00004a e59f3178 e1a08146 e59f2174 e2881012 e5947004rnb798 e593c004 e7920101 e35c0000 e2800001 e7820101 0a000012 e2872001 e5842004rnb7b8 e593a010 e35a0000 0a000006 e1a00009 e59f1130 e1a0e00f e59af000 e5ba3004rnb7d8 e3530000 eafffff7 e5943004 e2433001 e5843004 e5943000 e3130002 0a000000rnrnLR: 0xc006b6e0:rnb6e0 e89da818 e3a00801 ebffbf78 e89da818 e1a0c00d e92dd800 e24cb004 e92d4000rnb700 ebff1a89 e3a00c01 ebffbf70 e89da800 e1a0c00d e92ddff0 e24cb004 e24dd014rnb720 e92d4000 ebff1a80 eb0648a0 e59f31cc e0833300 e3a00c01 e5935040 ebffbf63rnb740 e1a0300d e3c34d7f e3a0300a e50b3030 eb064896 e3c4403f e50b0034 eb064893rnb760 e59f3198 e3a06000 e0833300 e5836040 f1080080 e59f9184 e3150001 e0869009rnb780 0a00004a e59f3178 e1a08146 e59f2174 e2881012 e5947004 e593c004 e7920101rnb7a0 e35c0000 e2800001 e7820101 0a000012 e2872001 e5842004 e593a010 e35a0000rnb7c0 0a000006 e1a00009 e59f1130 e1a0e00f e59af000 e5ba3004 e3530000 eafffff7rnrnSP: 0xea1f3c30:rn3c30 0000003d ea1f3d18 00000002 00000104 ea1f3c64 ea1f3c50 c003107c c00a07ccrn3c50 ffffffff f4000000 ea1f3cec ea1f3c68 c0031b88 c003100c 00000000 00000000rn3c70 ea1f3c98 c068ce00 ea1f2000 00000202 00000000 00000002 00000001 c068ce00rn3c90 60000013 ea1f3cec ea1f3cb0 ea1f3cb0 c006b760 c006b778 20000113 ffffffffrn3cb0 ea8a0000 00000001 00000000 0000000a ea1f3cdc 00000027 00000000 00000018rn3cd0 00000002 00000001 ea1f2000 60000013 ea1f3cfc ea1f3cf0 c006b96c c006b71crn3cf0 ea1f3d14 ea1f3d00 c0031080 c006b920 ffffffff f4000000 ea1f3d74 ea1f3d18rn3d10 c0031b88 c003100c c05df0f8 60000013 ea8a0000 00000000 60000013 ea1419c0rnrnIP: 0xea1f3c30:rn3c30 0000003d ....rnFP: 0xea1f3c6c:rn.....rnR2: 0xea1f3c18:rn.....rn[] (show_regs+0x0/0x58) from [] (softlockup_tick+0x124/0x174rn)rn r4:ea1f3c68 r3:00000002rn[] (softlockup_tick+0x0/0x174) from [] (run_local_timers+0x2rn4/0x28)rn[] (run_local_timers+0x0/0x28) from [] (update_process_timesrn+0x40/0x60)rn[] (update_process_times+0x0/0x60) from [] (tick_sched_timerrn+0x98/0xcc)rn r6:271ebaad r5:ea1f3c68 r4:c05dd990 r3:20000113rn[] (tick_sched_timer+0x0/0xcc) from [] (__run_hrtimer+0x150/rn0x21c)rn r7:ea1f3bb8 r6:c05dd3b0 r5:c05dd3f0 r4:c05dd990rn[] (__run_hrtimer+0x0/0x21c) from [] (hrtimer_interrupt+0x1arn8/0x220)rn[] (hrtimer_interrupt+0x0/0x220) from [] (s5p_tick_timer_intrnerrupt+0x54/0x64)rn[] (s5p_tick_timer_interrupt+0x0/0x64) from [] (handle_IRQ_ernvent+0xb0/0x1e4)rn[] (handle_IRQ_event+0x0/0x1e4) from [] (handle_level_irq+0xrnc4/0x138)rn[] (handle_level_irq+0x0/0x138) from [] (asm_do_IRQ+0x7c/0x9rn8)rn r7:00000104 r6:00000002 r5:ea1f3d18 r4:0000003drn[] (asm_do_IRQ+0x0/0x98) from [] (__irq_svc+0x48/0xc0)rnException stack(0xea1f3c68 to 0xea1f3cb0)rn3c60: 00000000 00000000 ea1f3c98 c068ce00 ea1f2000 00000202rn3c80: 00000000 00000002 00000001 c068ce00 60000013 ea1f3cec ea1f3cb0 ea1f3cb0rn3ca0: c006b760 c006b778 20000113 ffffffffrn r5:f4000000 r4:ffffffffrn[] (__do_softirq+0x0/0x204) from [] (irq_exit+0x58/0xac)rn[] (irq_exit+0x0/0xac) from [] (asm_do_IRQ+0x80/0x98)rn[] (asm_do_IRQ+0x0/0x98) from [] (__irq_svc+0x48/0xc0)rnException stack(0xea1f3d18 to 0xea1f3d60)rn3d00: c05df0f8 60000013rn3d20: ea8a0000 00000000 60000013 ea1419c0 00000027 c05df0f8 c05df0dc 00000000rn3d40: 60000013 ea1f3d74 ea1f3d60 ea1f3d60 c041b37c c041b380 60000013 ffffffffrn r5:f4000000 r4:ffffffffrn[] (_spin_unlock_irqrestore+0x0/0x48) from [] (__setup_irq+0rnx248/0x314)rn r4:c05df0bc r3:00000000rn[] (__setup_irq+0x0/0x314) from [] (request_threaded_irq+0x1rn90/0x1e8)rn[] (request_threaded_irq+0x0/0x1e8) from [] (dm9000_open+0x6rn8/0xd4)rn[] (dm9000_open+0x0/0xd4) from [] (dev_open+0xc0/0x11c)rn r6:00001002 r5:c04420f0 r4:ea937800rn[] (dev_open+0x0/0x11c) from [] (dev_change_flags+0x9c/0x16crn)rn r5:00001043 r4:ea937800rn[] (dev_change_flags+0x0/0x16c) from [] (devinet_ioctl+0x398rn/0x77c)rn r7:00000001 r6:ea937800 r5:00000000 r4:00008914rn[] (devinet_ioctl+0x0/0x77c) from [] (inet_ioctl+0xe4/0x114)rnrn[] (inet_ioctl+0x0/0x114) from [] (sock_ioctl+0x204/0x254)rn r4:00008914 r3:c04699e0rn[] (sock_ioctl+0x0/0x254) from [] (vfs_ioctl+0x3c/0x9c)rn r6:bec12a88 r5:c0362f70 r4:ea1a5f00 r3:0000c000rn[] (vfs_ioctl+0x0/0x9c) from [] (do_vfs_ioctl+0x558/0x5a0)rn r7:00000003 r6:e9403438 r5:ea1a5f00 r4:bec12a88rn[] (do_vfs_ioctl+0x0/0x5a0) from [] (sys_ioctl+0x48/0x6c)rn r9:ea1f2000 r8:c00322ac r7:00000003 r6:00008914 r5:bec12a88rnr4:ea1a5f00rn[] (sys_ioctl+0x0/0x6c) from [] (ret_fast_syscall+0x0/0x2c)rn r7:00000036 r6:bec12c74 r5:00000004 r4:00096be7rnrnrn有没有高手能给点思路? 驱动中我就只修改了寄存器读取的地址,这个是在resource中修改的,然后在platform_driver下中对应上,所以dm9000.c这个文件都没有很大的改动。rnrn求助求助~~~~~~~~~rnrn 论坛

没有更多推荐了,返回首页