A lightweight, rootless network emulator for Linux.
Project description
NetEMU
A lightweight, rootless network emulator for Linux. Written in Python without any dependencies.
Example
# python -m netemu
> new
[469392] Created node n1
> new
[469418] Created node n2
> new switch
[469450] Created switch sw1
> n1 connect sw1
Connected n1 to sw1
> n2 connect sw1
Connected n2 to sw1
> n1 ip a add 10.0.0.1/24 dev veth_sw1
> n2 ip a add 10.0.0.2/24 dev veth_sw1
> n1
sh-5.2# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.046 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.041 ms
^C
--- 10.0.0.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2063ms
rtt min/avg/max/mdev = 0.041/0.052/0.069/0.012 ms
sh-5.2# exit
> exit
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netemu-0.0.3.tar.gz
(18.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
netemu-0.0.3-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file netemu-0.0.3.tar.gz.
File metadata
- Download URL: netemu-0.0.3.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc3f2dfc32095e998e7dde9da7b2a21b06b11d78044e7b26d0abfbfc846d72e
|
|
| MD5 |
2f14975122c7e402695c9be25c0b0b45
|
|
| BLAKE2b-256 |
089adf6002b4f475356892913ce595aada2b671fe818da38d1fb0dbc24eb03c7
|
File details
Details for the file netemu-0.0.3-py3-none-any.whl.
File metadata
- Download URL: netemu-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1cf94a668d38e6c7b60b077bb5a200f77711693373c0e8d668c8a76310b2acf
|
|
| MD5 |
3ce8a5e824dc63019aade18dd83b7034
|
|
| BLAKE2b-256 |
a2d339efa3885925c9073c7eea5c9a334a7d7dacd671b25f510c6d5696b65f11
|