Skip to content

MarouaneBouaricha/linux-virt-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-virt-tools

Linux Virtualization Scripts Tools

Emulate separate network nodes (via network namespaces)

Create a new network namespace (bridge1) with a bridge device (br1) in it

create_bridge bridge1 br1

or

create_end_host host1 eth1 '192.168.0.1/24' bridge1 br1

Emulate network interfaces (via veth devices)

Create two hosts connected to the br1 bridge

create_end_host host1 eth1 bridge1 br1
create_end_host host2 eth2 bridge1 br1

Emulate network switches

Create two disjoint network segments:

create_bridge bridge10 br10
create_bridge bridge20 br20

Connect two bridges

connect_bridges bridge10 br10 bridge20 br20

Send Arbitary Data

from host1 to all hosts

ethsend --net=/var/run/netns/host1 \
  ethsend eth1 ff:ff:ff:ff:ff:ff 'Hello all!'

About

Linux Virtualization Scripts Tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published