码迷,mamicode.com
首页 > 其他好文 > 详细

终于在GNS中跑SRX有网卡了,纪念一下!

时间:2014-10-02 21:21:54      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:gns   juniper   srx   

    之前一直尝试用virtualbox,找到一个支持64位虚拟化的机器,导入virtualbox,还是报错,出来的提示符居然是db> ,连FreeBSD的操作系统都没有进,于是在网上搜索想看看是否有什么方法解决,无意中看到如下链接:http://forum.gns3.net/topic7711.html,说GNS中需要设置网卡Qemu options: -smp 2 -device vmxnet3 ,于是抱着试一试的想法,测试了一下,之前一直不能出现的网卡终于出现了!!!!

root@% ifconfig
lsi:    encaps: (null); framing: pseudo
        flags=0x3/0x8000 <PRESENT|RUNNING>

dsc:    encaps: (null); framing: pseudo
        flags=0x3/0x8010 <PRESENT|RUNNING/POINTOPOINT>

lo0:    encaps: loopback; framing: local
        flags=0x103/0x8000 <PRESENT|RUNNING|LOOPBACK>
lo0.16384:      flags=0x8000 <UP|MULTICAST>
        inet mtu 4294967295 local=127.0.0.1
lo0.16385:      flags=0x8000 <UP|MULTICAST>
        inet mtu 4294967295 local=128.0.0.4
        inet6 mtu 4294967295 local=fe80::2aa:f:fcd5:ab00
lo0.32768:      flags=0x0 <UP|MULTICAST>

em0:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:aa:0:d5:ab:0
em0.0:  flags=0x8000 <UP|MULTICAST>
        inet primary mtu 1500 local=10.1.1.1 dest=10.1.1.0/24 bcast=10.1.1.255

em1:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:aa:0:d5:ab:1

gre:    encaps: (null); framing: <error>
        flags=0x3/0x8010 <PRESENT|RUNNING/POINTOPOINT>

ipip:   encaps: (null); framing: <error>
        flags=0x3/0x8000 <PRESENT|RUNNING>

tap:    encaps: other; framing: pseudo
        flags=0x3/0x8000 <PRESENT|RUNNING>

pime:   encaps: (null); framing: <error>
        flags=0x3/0x8000 <PRESENT|RUNNING>

pimd:   encaps: (null); framing: <error>
        flags=0x3/0x8000 <PRESENT|RUNNING>

em5:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:0:ab:16:7d:5

em4:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:0:ab:b:7e:4

em3:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:0:ab:79:c1:3

em2:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:0:ab:9:94:2

mtun:   encaps: (null); framing: <error>
        flags=0x3/0x8000 <PRESENT|RUNNING>

demux0: encaps: (null); framing: pseudo
        flags=0x3/0x8010 <PRESENT|RUNNING/POINTOPOINT>

cbp0:   encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:5:86:71:ca:11

pip0:   encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:5:86:71:cd:e0

pp0:    encaps: (null); framing: <error>
        flags=0x3/0x8010 <PRESENT|RUNNING/POINTOPOINT>

irb:    encaps: ether; framing: ether
        flags=0x3/0x8000 <PRESENT|RUNNING>
        curr media: i802 0:5:86:71:ce:20

root@% cli
root> ping 10.1.1.1  
PING 10.1.1.1 (10.1.1.1): 56 data bytes
64 bytes from 10.1.1.1: icmp_seq=0 ttl=64 time=4.904 ms
^C
--- 10.1.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 4.904/4.904/4.904/0.000 ms

root>

简单描述一下步骤:

  1. 获得OVA文件

  2. 用winrar将ova文件解压

  3. 将解压后的最大文件,用转换工具转换成GNS能识别的二进制文件img(因为是很早之前转换的,具体怎么转忘记了,网上应该能搜到链接)

  4. 在GNS的qemu中JUNOS中添加转换后的img文件,并添加Qemu options: -smp 2 -device vmxnet3

本文出自 “httpyuntianjxxll.spac..” 博客,请务必保留此出处http://333234.blog.51cto.com/323234/1560385

终于在GNS中跑SRX有网卡了,纪念一下!

标签:gns   juniper   srx   

原文地址:http://333234.blog.51cto.com/323234/1560385

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!