Course Hero Logo

Creating tap devices tap devices can be created with

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 60 - 62 out of 406 pages.

Creating TAP DevicesTAP devices can be created with theip tuntapcommand provided by theiproutepackage.Create a TAP device nameddemo-tap0usingip tuntap. TAP devices created with theiptuntapare not persistent across reboots.[[email protected] ~]#ip tuntap add dev demo-tap0 mode tapA TAP device is added to an OVS bridge as an interface using theovs-vsctl add-portcommand.[[email protected] ~]#ovs-vsctl add-port demo-ovsbr0 demo-tap0 \-- set interface demo-tap0 type=internalA TAP device can be added to a Linux bridge using thebrctl addifcommand.[[email protected] ~]#brctl addif demo-linbr0 demo-tap0Assign an IP address to the TAP interface.[[email protected] ~]#ip addr add 172.25.250.150/24 dev demo-tap0Activate the TAP device usingip link setcommand.[[email protected] ~]#ip link set demo-tap0 upVerify that the TAP device is connected properly usingip addr show. In the screen output, thedemo-tap0TAP device is attached as an interface to a Linux bridge.[[email protected] ~]#ip addr show demo-tap045: demo-tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdiscpfifo_fastmaster demo-linbr0state DOWN mode DEFAULT qlen 1000link/ether1e:d9:a2:9a:14:37brd ff:ff:ff:ff:ff:ffinet 172.25.250.150/24 scope global demo-tap0valid_lft forever preferred_lft foreverTo delete a TAP device, remove the TAP port from the bridge if it is attached as an interface to abridge. Delete the TAP device using theip tuntap delcommand.[[email protected] ~]#ip tuntap del dev demo-tap0 mode tap34CL310-RHOSP-10.0.5-en-1-20181005
CHAPTER 1|Managing Networks in LinuxManaging TAP DevicesThe following steps outline the process for creating and managing TAP devices.1.As an administrator, ensure that theiproutepackage is installed.2.Create a TAP device using theip tuntapcommand.3.Ensure that the device is successfully created.4.Activate and add an IP address to the TAP device using theipcommand.5.Add the TAP device to a Linux bridge using thebrctlcommand or to an OVS bridge using theovs-vsctlcommand.6.Verify the connectivity by usingpingto the IP address assigned to the TAP device.7.Optionally, to delete the TAP device, useip tuntap delcommand.VETH DEVICESA veth virtual network device can connect to other virtual network devices. They are essentiallyvirtual patch cables. For example, two bridges are connected together by adding one of the vethdevice interfaces. OpenStack uses veth pairs to implement connections between a Linux bridgeand an OVS bridge. The veth pair is provisioned by OpenStack when an instance is launched toconnect the tenant network to the infrastructure network.Communication using veth pair happens either as a point-to-point direct link by assigning IPs toboth ends and routing on the host, or by the use of bridging. An Ethernet frame sent to one end ofa veth pair is received by the other end of a veth pair.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 406 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags
Computer network, virtual machine, desktop environment, GNOME

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture