家电维修班,手机维修班,电脑维修班,电工班,焊工班,液晶电视维修班,电动工具维修班、电动车摩托车维修班、网络营销培训、网站设计培训、淘宝培训---全国招生 家电维修班,手机维修班,电脑维修班,电工班,焊工班,液晶电视维修班,电动工具维修班、电动车摩托车维修班、网络营销培训、网站设计培训、淘宝培训---全国招生
阳光电影院· 地区招生平台· 知识库 · 维修资料查询 ·您想咨询招生情况,请联系我啊·您想咨询招生情况,请联系我啊·
当前位置:湖南阳光电子技术学校文章资讯电脑维修技术

湖南阳光电子技术学校 简介

学校地址:湖南省 长沙市 雨花区 车站南路红花坡路口
来校路线:长沙火车站售票厅后坪,乘135路公交车到“红花坡站”,即到.
学校电话:0731-85579057,0731-85569651
免费电话:0731-85579057
值班手机:(0)13807313137 杨老师
开课时间:我校常年面向全国招生,月月开班。每月1号,16号开学。
招生范围:凡年满15岁的公民,不限年龄,性别,地区。都欢迎来我校学习。
食宿问题:学校免费住宿,免费提供床上用品。食堂就餐,费用自理,约12元/天。
学校官网:www.hnygpx.net www.410014.com
专业介绍:欢迎查看我校专业课程!
收费标准:欢迎查看我校收费标准!
在线 Q Q:您想咨询招生情况,请联系我啊·您想咨询招生情况,请联系我啊
网上报名:欢迎您报读湖南阳光电子学校!


ubuntu dynamips绑定网卡到虚拟机

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2011-06-03 19:13:13

  Part 1 of Dynamips External Cloud Interface on Linux

  30 June 2008 25 Comments

  Binding GNS3/dynamips Routers Ethernet port to the Hosts physical interface.

  While browsing the http://7200emu.hacki.at forums, I noticed a few posts were asking for help on how to bridge a Routers ethernet port in Dynamips to the Linux hosts ethernet card. The only responses that seemed to show up stated that it was difficult as the tap interface needs to be created wen you start the lab. Well this article is here to address the issue and make things easier.

  All the commands mentioned on this page should be executed with root privleges. To do this either use the su command to switch user, Or if you use ubuntu type sudo before each of the commands I have listed. Configuring your system in this manner allows you to run gns3/dynamips as a standard user and still have network access!

  Firstly the terminology

  Eth0,Wlan0 - If your machine has a wired ethernet card, It should show up as eth0 or eth1. If its an 802.11 card its possible to see something like wlan0.

  Tap0,Tap1 - The Tap interface is a virtual interface created in linux, This interface is the one that the routers port is bound to.

  Br0 - This is a Bridge for linux networking, This device is the one that ties eth0 and tap0 together so traffic can be passed.

  Part 1 - Information Gathering

  We are going to start with gathering some information about your network settings. If you use Dhcp you can skip straight to Part 2

  bash:#ip a

  1: lo: mtu 16436 qdisc noqueue

  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

  inet 127.0.0.1/8 scope host lo

  inet6 ::1/128 scope host

  valid_lft forever preferred_lft forever

  2: eth1: mtu 1500 qdisc noop qlen 1000

  link/ether 00:1e:0b:33:6e:4c brd ff:ff:ff:ff:ff:ff

  3: eth0: mtu 1500 qdisc pfifo_fast qlen 1000

  link/ether 00:15:77:9b:ec:07 brd ff:ff:ff:ff:ff:ff

  inet 192.168.1.11/24 brd 192.168.1.255 scope global eth0

  inet6 fe80::215:77ff:fe9b:ec07/64 scope link

  valid_lft forever preferred_lft forever

  Notice card number 3: eth0. Has the ip address 192.168.1.11 with a /24 mask. To find the default gateway enter this command

  bash:#ip r

  192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.11

  169.254.0.0/16 dev eth0 scope link

  127.0.0.0/8 dev lo scope link

  default via 192.168.1.1 dev eth0

  My default gateway is shown by the line default via 192.168.1.1 dev eth0. So the gateway ip address is 192.168.1.1. Does everyone remember the 169.254.0.0/16 network? The APIPA range?. Well most modern linux distro’s include a route to that network just in case.

  Part 2 - Setting up the Network

  Welcome back to the Dhcp users. To kick this off we need to create a bridge interface on your machine. The command is brctl and is usually part of a package called “Bridge-utils”

  To create the bridge we can do the following

  brctl addbr br0

  Execute ip a to verify that it was created and you should see a new entry like this

  3: eth0: mtu 1500 qdisc pfifo_fast qlen 1000

  link/ether 00:15:77:9b:ec:07 brd ff:ff:ff:ff:ff:ff

  inet 192.168.1.11/24 brd 192.168.1.255 scope global eth0

  inet6 fe80::215:77ff:fe9b:ec07/64 scope link

  valid_lft forever preferred_lft forever

  4: br0: mtu 1500 qdisc noqueue

  link/ether 00:15:77:9b:ec:07 brd ff:ff:ff:ff:ff:ff

  Notice how on the bridge line there is no “UP,LOWER_UP” statement after multicast?, This indicates that the bridge interface is shutdown.

  To activate the bridge we need to perform the following

  ip l s dev br0 up

  Now execute ip a again to verify interface br0 now shows as up.

  Now to create the tap interface we need the following command “tunctl”. Normally in a package called “uml-utilities”

  To create the tap interface execute the following where username! is your linux login

  tunctl -t tap0 -u username!

  Again to verify the creation of the interface execute ip a

  3: eth0: mtu 1500 qdisc pfifo_fast qlen 1000

  link/ether 00:15:77:9b:ec:07 brd ff:ff:ff:ff:ff:ff

  inet 192.168.1.11/24 brd 192.168.1.255 scope global eth0

  inet6 fe80::215:77ff:fe9b:ec07/64 scope link

  valid_lft forever preferred_lft forever

  4: br0: mtu 1500 qdisc noqueue

  link/ether 00:15:77:9b:ec:07 brd ff:ff:ff:ff:ff:ff

  5: tap0: mtu 1500 qdisc pfifo_fast qlen 500

  link/ether 00:ff:da:10:31:61 brd ff:ff:ff:ff:ff:ff

  Again, the Tap0 interface is shutdown by default. to Activate it execute

  ip l s dev tap0 up

  So now we have all the interfaces we need created. Time to start adding interfaces to the bridge.

  To associate both the Eth0 and tap0 interface with the bridge, enter the following to commands. This *links the interfaces together

Tags:ubuntu dynamips 绑定网卡到虚拟机

作者:佚名

网页说明

    ubuntu dynamips绑定网卡到虚拟机这条信息,为您提供了中国 新 全的ubuntu dynamips绑定网卡到虚拟机信息,欢迎您免费查看ubuntu dynamips绑定网卡到虚拟机信息。如果您对ubuntu dynamips绑定网卡到虚拟机这条消息有好的意见建议请联系我们,让我们一起进步!
  • 热门关键词:CPU(355)  维修(198)  彩电(172)  故障(143)  招生(110)  职业中专(105)  技工学校(104)  电脑(98)  机芯(93)  开县(91)  学校(88)  手机(87)  BIOS(68)  首选(65)  培训(65)  笔记本(60)  云阳(58)  Windows(51)  学主板维修哪里 好(50)  学电脑硬件哪里 好(50)  检修(50)  Vista(44)  MTK(43)  海尔(42)  Linux(41)  东芝(40)  主板(39)  win7(38)  三极管(38)  TCL(37)  模式(37)  硬盘(36)  三星(35)  液晶电视(35)  工厂(33)  技术(32)  XP(31)  北京(30)  电子元件(30)  彩色(29)