[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] how to assign MAC and IP address to NIC of guest attached

From: Hardik Soni
Subject: [Qemu-discuss] how to assign MAC and IP address to NIC of guest attached with l2tpV3 tunnel endpoint
Date: Mon, 8 Jun 2015 11:12:04 +0200 (CEST)

Hi All,

I am using QEMU emulator version 2.1.3 (qemu-2.1.3-7.fc21) version.

For example, to attach a VM running on host via L2TPv3 to the bridge br-lan on the remote Linux host

                   # Setup tunnel on linux host using raw ip as encapsulation
                   # on
                   ip l2tp add tunnel remote local tunnel_id 1 peer_tunnel_id 1 \
                   encap udp udp_sport 16384 udp_dport 16384
                   ip l2tp add session tunnel_id 1 name vmtunnel0 session_id \
                   0xFFFFFFFF peer_session_id 0xFFFFFFFF
                   ifconfig vmtunnel0 mtu 1500
                   ifconfig vmtunnel0 up
                   brctl addif br-lan vmtunnel0

                   # on
                   # launch QEMU instance - if your network has reorder or is very lossy add ,pincounter

                   qemu-system-i386 linux.img -net nic -net l2tpv3,src="">------------------------------------------------------------------------------------------------------------------------------------------------------

How to assign mac and ip to the guest created by qemu-system-i386 instance from outside?

Hardik Soni

reply via email to

[Prev in Thread] Current Thread [Next in Thread]