From cbe5af1cf91025bfea8bd920153cfa30dca458ba Mon Sep 17 00:00:00 2001 From: Miguel Scapolla Date: Mon, 24 Oct 2016 17:46:04 -0300 Subject: [PATCH] Run Cisco XRv with QEmu. --- cisco-xrv-with-qemu.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cisco-xrv-with-qemu.sh b/cisco-xrv-with-qemu.sh index f0e28e9..f55bbe4 100644 --- a/cisco-xrv-with-qemu.sh +++ b/cisco-xrv-with-qemu.sh @@ -33,11 +33,14 @@ -net nic,model=e1000,vlan=2,macaddr=00:01:00:ff:01:02 \ -net nic,model=e1000,vlan=3,macaddr=00:01:00:ff:01:03 \ -net nic,model=e1000,vlan=4,macaddr=00:01:00:ff:01:04 \ - -net socket,vlan=1,udp=127.0.0.1:9011,localaddr=:9001 \ + -net tap,vlan=1,ifname=tapxr,script=no,downscript=no \ -net socket,vlan=2,udp=127.0.0.1:9012,localaddr=:9002 \ -net socket,vlan=3,udp=127.0.0.1:9013,localaddr=:9003 \ -net socket,vlan=4,udp=127.0.0.1:9014,localaddr=:9004 +# For management with telnet or ssh over MgmtEth0/0/CPU0/0 interface. +su - root -c 'tunctl -u username -t tapxr > /dev/null ; ifconfig tapxr netmask up' + ### Useful commands. # Info of the qcow2 disk.