OK, thank you a lot,
Here is my configuration:
ES1 -(vlan3) tagged port 3 tagged port 19- ES3 (vlan4)
port 3 & 5- Switch1 port 15 ------tagged----- port 3 Switch2-port 17 & 19
ES2 - (vlan3 & 4) tagged port 5 tagged port 17- ES4 (vlan 4 &3)
i have just validate the addressing of the Equipement :
For example ES1 with the IP Add 10.10.30.1 and ES2 with 10.10.30.2 in vlan 3, when ES1 ping ES2 just using Ip addresses it works also when i do it with scapy:
>>mon_ping = IP(dst='10.10.30.2') / ICMP()
>>mon_ping.show()
>>rep=sr1(mon_ping)
it works, but when i specify the mac address in scapy:
>>mon_ping = Ether(dst="00:00:00:00:00:02") / IP(dst='10.10.30.2') / ICMP()
>>mon_ping.show()
>>rep=sr1(mon_ping)
it does'nt work:
WARNING: Mac address to reach destination not found. Using broadcast.
Finished to send 1 packets.
i want to no where is the problem with this, is it about the arp or routing ....?
Arp cache in ES1:
Address HWtype HWaddress Flags Mask Iface
10.10.30.2 ether 00:00:00:00:00:02 CM eth0.3
IP ARP table in Switch1
IP Address MAC Address Type Port
--------------- ----------------- ------- ----
10.10.30.1 000000-000001 dynamic 3 ---->ES1
10.10.30.2 000000-000002 dynamic 5 -->ES2