最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

install tftp module and setup & check current ethernet status

工作和技术 crifan 1527浏览 0评论

[root@(none) home]# cd /lib/modules/2.6.22.2/
kernel/              modules.ieee1394map modules.pcimap
modules.alias        modules.inputmap     modules.seriomap
modules.ccwmap       modules.isapnpmap    modules.symbols
modules.dep          modules.ofmap        modules.usbmap

[root@(none) home]# cd /lib/modules/2.6.22.2/kernel/
drivers/ fs/      sound/

[root@(none) home]# cd /lib/modules/2.6.22.2/kernel/drivers/
block/ hid/   mmc/   net/   rtc/   scsi/ spi/   usb/   video/

[root@(none) home]# cd /lib/modules/2.6.22.2/kernel/drivers/net/

[root@(none) net]# ls
cs89x0.ko iperf*

[root@(none) net]# insmod cs89x0.ko

[ 2241.200000] eth%d: cs8900 rev K found at 0xfa000000
[ 2241.240000] cs89x0: No EEPROM, relying on command line….
[ 2241.240000] cs89x0 media RJ-45, IRQ 16, programmed I/O, MAC 00:00:00:00:00:00

[root@(none) net]# ifconfig eth0 hw ether 000102030405

[root@(none) net]# ifconfig eth0 10.0.1.111
[ 2265.640000] REQ IRQ…
[ 2266.790000] eth0: using half-duplex 10Base-T (RJ-45)

[root@(none) net]# ifdown eth0

ifdown: ignoring unknown interface eth0

[root@(none) net]# ifup eth0
ifup: interface eth0 already configured

[root@(none) net]# ping 10.0.1.10
PING 10.0.1.10 (10.0.1.10): 56 data bytes
64 bytes from 10.0.1.10: seq=0 ttl=128 time=6.795 ms
64 bytes from 10.0.1.10: seq=1 ttl=128 time=1.146 ms

查看当前网络状态:

# ifconfig -a
eth0      Link encap:Ethernet HWaddr 00:01:02:03:04:05
          inet addr:10.0.1.111 Bcast:10.255.255.255 Mask:255.0.0.0
          BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:16

lo        Link encap:Local Loopback
          LOOPBACK MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

转载请注明:在路上 » install tftp module and setup & check current ethernet status

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.192 seconds, using 22.09MB memory