mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-22 02:41:00 +02:00
Run Cisco XRv with QEmu.
This commit is contained in:
parent
c8e65e0eeb
commit
cbe5af1cf9
@ -33,11 +33,14 @@
|
|||||||
-net nic,model=e1000,vlan=2,macaddr=00:01:00:ff:01:02 \
|
-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=3,macaddr=00:01:00:ff:01:03 \
|
||||||
-net nic,model=e1000,vlan=4,macaddr=00:01:00:ff:01:04 \
|
-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=2,udp=127.0.0.1:9012,localaddr=:9002 \
|
||||||
-net socket,vlan=3,udp=127.0.0.1:9013,localaddr=:9003 \
|
-net socket,vlan=3,udp=127.0.0.1:9013,localaddr=:9003 \
|
||||||
-net socket,vlan=4,udp=127.0.0.1:9014,localaddr=:9004
|
-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 <IP_ADDR> netmask <MASK> up'
|
||||||
|
|
||||||
### Useful commands.
|
### Useful commands.
|
||||||
|
|
||||||
# Info of the qcow2 disk.
|
# Info of the qcow2 disk.
|
||||||
|
Loading…
Reference in New Issue
Block a user