[LiSA-Users] 答复: error about using Lisa

董得义 derrydong at teng-yun.com
Mon Oct 9 06:00:39 EEST 2006


Hi Ionut,

I do as you said and reset the Ethernet, then I can ping to my board. Thanks
a lot!


switch(config)#interface vlan 1
switch(config-if)#ip address <your ip addr> <your netmask>
switch(config-if)#interface ethernet 0
switch(config-if)#shutdown 
switch(config-if)#no shutdown

-----邮件原件-----
发件人: Ionut Nicu [mailto:ioan.nicu at ines.ro] 
发送时间: 2006年10月8日 21:39
收件人: derrydong at teng-yun.com
抄送: lisa-users at lisa.ines.ro
主题: Re: error about using Lisa

Hi Derry,

On Sun, 2006-10-08 at 11:11 +0800, 董得义 wrote:
> Hi,
> 
> When I run the Lisa on my board, I can't ping to the board through my
> computer. 
> 

First of all, I assume you have multiple ethernet interfaces on your
board. If you added eth0 in the switch and eth0 is the interface with
the ip address you're trying to ping, then it is normal not to receive
icmp replies, because the packets get into lisa's hook at layer 2 and
lisa tries to bridge them to the other ports in the switch. You should
add the other interfaces into the switch and keep eth0 as the management
interface to the lisa switch.
However, if you want to add all your interfaces into the switch and
still be able to ping/telnet/whatever to the board, you should create a
virtual vlan interface and set your ip address on that interface, e.g:

switch(config)#interface vlan 1
switch(config-if)#ip address <your ip addr> <your netmask>

> I print the packages information as bellow. Why the mac length is 14 bytes
> and mac is 0x002c4012 -- only 4 bytes I can't find where is the error. Who
> can help me?
> 
> Printings:
> 
> dev=eth0: proto=0x800 mac_len=14 head=0x002c4000 data=0x002c4020
> tail=0x002c404e end=0x002c4060 mac=0x002c4012
> MAC dump: 0x0 0xe0 0x22 0xfe 0x7 0x5f 0x0 0x15 0x58 0x20 0xe7 0x37 0x8 0x0

> DATA dump: 0x45 0x0 0x0 0x28 
> 0x0 0x0 0x54
> 
> Derry Dong 

I can see that you've used our dump_packet() function. 0x002c4012 is not
the MAC address, it's a pointer (4 bytes on your CPU) to the mac header
from the socket buffer structure in the kernel. Mac length 14 referrs to
the length of the MAC header in the frame, that is: 6 bytes MAC
destination address + 6 bytes MAC source address + 2 bytes Type/Length
(as you can see in the dump it is 0x800, meaning Protocol Type IPv4).

Ionut.




More information about the LiSA-Users mailing list