cocotb: Add script to configure virtual network devices for cocotb test bench
This commit is contained in:
parent
1ed42918fc
commit
6dc42267fa
8
cocotb/configure_network.sh
Executable file
8
cocotb/configure_network.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Set up virtual device using
|
||||
sudo ip link add dev veth1 type veth peer name veth2
|
||||
sudo ip link set up veth1
|
||||
sudo ip link set up veth2
|
||||
sudo ip addr add 192.168.2.1/24 dev veth1
|
||||
sudo ip link set promisc on dev veth1
|
||||
|
Loading…
x
Reference in New Issue
Block a user