# H2-eth0: No such device exists

**URL:** <https://forum.p4.org/t/h2-eth0-no-such-device-exists/958>\
**Category:** Getting Started with P4\
**Created:** [September 13, 2023, 5:48am UTC](https://forum.p4.org/t/h2-eth0-no-such-device-exists/958 "2023-09-13T05:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelajj](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Angelajj](https://forum.p4.org/u/Angelajj)\
**Post date:** [September 13, 2023, 5:48am UTC](https://forum.p4.org/t/h2-eth0-no-such-device-exists/958/1 "2023-09-13T05:48:02Z")

</div>

I was trying to receive data from another host, but here’s the error:  
 ![54dc151ba78492e0eeea8fe46d4ecbd](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/02fde064396f635a6e3e97d24eba977c1df0270a.png)

and here’s my topoloy:

{  
“hosts”: {  
“h1”: {“ip”: “10.0.1.1/24”, “mac”: “08:00:00:00:01:11”,  
“commands”:[“route add default gw 10.0.1.10 dev eth0”,  
“arp -i eth0 -s 10.0.1.10 08:00:00:00:01:00”]},  
“h2”: {“ip”: “10.0.2.2/24”, “mac”: “08:00:00:00:02:22”,  
“commands”:[“route add default gw 10.0.2.20 dev eth0”,  
“arp -i eth0 -s 10.0.2.20 08:00:00:00:02:00”]},  
“h3”: {“ip”: “10.0.3.3/24”, “mac”: “08:00:00:00:03:33”,  
“commands”:[“route add default gw 10.0.3.30 dev eth0”,  
“arp -i eth0 -s 10.0.3.30 08:00:00:00:03:00”]}  
},  
“switches”: {  
“s1”: { “runtime\_json” : “s1-runtime.json” },  
“s2”: { “runtime\_json” : “s2-runtime.json” },  
“s3”: { “runtime\_json” : “s3-runtime.json” }  
},  
“links”: [  
[“h1”, “s1-p1”], [“s1-p2”, “s2-p2”], [“s1-p3”, “s3-p2”],  
[“s3-p3”, “s2-p3”], [“h2”, “s2-p1”], [“h3”, “s3-p1”]  
]  
}

---

<div class="post-metadata">

**Author:** ![Faris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/faris/32/134_2.png) [@Faris](https://forum.p4.org/u/Faris)\
**Post date:** [September 20, 2023, 1:25pm UTC](https://forum.p4.org/t/h2-eth0-no-such-device-exists/958/2 "2023-09-20T13:25:45Z")

</div>

I think the problem is in the python code, you perhaps wrote the interface name as “h2-eth0” while it should be “eth0”.

can you share your python script?
