pytun
pytun copied to clipboard
when create a tap device and set it, ping this machine failed
Hello, when i create a tap device and config it's. But why can't ping this machine. `tap = TunTapDevice(name="my_tap_0", flags=IFF_TAP) tap.addr = '10.10.10.117' tap.dstaddr = '10.10.10.10' tap.netmask = '255.255.255.0' tap.mtu = 1500
#tap.persist(True) tap.up()
while True: packet = tap.read(1024) print(packet)`
why ping 10.10.10.10
failed, please.