| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xen-guide.xml,v 1.4 2008/04/10 15:01:50 cam Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xen-guide.xml,v 1.5 2008/08/11 16:25:22 swift Exp $ --> |
| 3 | |
3 | |
| 4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 5 | |
5 | |
| 6 | <guide link="/doc/en/xen-guide.xml"> |
6 | <guide link="/doc/en/xen-guide.xml"> |
| 7 | |
7 | |
| … | |
… | |
| 17 | |
17 | |
| 18 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
18 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 19 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
19 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 20 | <license/> |
20 | <license/> |
| 21 | |
21 | |
| 22 | <version>1.3</version> |
22 | <version>1.4</version> |
| 23 | <date>2008-04-10</date> |
23 | <date>2008-08-11</date> |
| 24 | |
24 | |
| 25 | <chapter> |
25 | <chapter> |
| 26 | <title>Introduction</title> |
26 | <title>Introduction</title> |
| 27 | <section> |
27 | <section> |
| 28 | <body> |
28 | <body> |
| … | |
… | |
| 448 | don't give it that IP, it will not be connected with the administrative domain |
448 | don't give it that IP, it will not be connected with the administrative domain |
| 449 | and thus cannot be reached. |
449 | and thus cannot be reached. |
| 450 | </p> |
450 | </p> |
| 451 | |
451 | |
| 452 | <p> |
452 | <p> |
| 453 | Now edit <path>/etc/xen/xend-config.xsp</path> as follows to select routed |
453 | Now edit <path>/etc/xen/xend-config.sxp</path> as follows to select routed |
| 454 | network configuration: |
454 | network configuration: |
| 455 | </p> |
455 | </p> |
| 456 | |
456 | |
| 457 | <pre caption="Editing xend-config.xsp"> |
457 | <pre caption="Editing xend-config.sxp"> |
| 458 | ~# <i>nano -w /etc/xen/xend-config.xsp</i> |
458 | ~# <i>nano -w /etc/xen/xend-config.sxp</i> |
| 459 | |
459 | |
| 460 | <comment>(Comment out the following lines)</comment> |
460 | <comment>(Comment out the following lines)</comment> |
| 461 | <i>#</i>(network-script network-bridge) |
461 | <i>#</i>(network-script network-bridge) |
| 462 | <i>#</i>(vif-script vif-bridge) |
462 | <i>#</i>(vif-script vif-bridge) |
| 463 | |
463 | |
| … | |
… | |
| 490 | <comment>(Add the vif instruction)</comment> |
490 | <comment>(Add the vif instruction)</comment> |
| 491 | vif = [ 'ip=192.168.1.101, vifname=veth0' ] |
491 | vif = [ 'ip=192.168.1.101, vifname=veth0' ] |
| 492 | </pre> |
492 | </pre> |
| 493 | |
493 | |
| 494 | <p> |
494 | <p> |
| 495 | Next edit <path>/etc/xen/xend-config.xsp</path> as follows to select bridged |
495 | Next edit <path>/etc/xen/xend-config.sxp</path> as follows to select bridged |
| 496 | network configuration: |
496 | network configuration: |
| 497 | </p> |
497 | </p> |
| 498 | |
498 | |
| 499 | <pre caption="Editing xend-config.xsp"> |
499 | <pre caption="Editing xend-config.sxp"> |
| 500 | ~# <i>nano -w /etc/xen/xend-config.xsp</i> |
500 | ~# <i>nano -w /etc/xen/xend-config.sxp</i> |
| 501 | |
501 | |
| 502 | <comment>(Enable the following lines)</comment> |
502 | <comment>(Enable the following lines)</comment> |
| 503 | (network-script network-bridge) |
503 | (network-script network-bridge) |
| 504 | (vif-script vif-bridge) |
504 | (vif-script vif-bridge) |
| 505 | |
505 | |
| … | |
… | |
| 510 | |
510 | |
| 511 | <p> |
511 | <p> |
| 512 | By default, the bridge will contain whatever interface is configured to be the |
512 | By default, the bridge will contain whatever interface is configured to be the |
| 513 | default interface (the device that is listed under the default route through |
513 | default interface (the device that is listed under the default route through |
| 514 | <c>ip route list</c>). If you want to alter this behavior, edit the |
514 | <c>ip route list</c>). If you want to alter this behavior, edit the |
| 515 | <path>xend-config.xsp</path> as follows: |
515 | <path>xend-config.sxp</path> as follows: |
| 516 | </p> |
516 | </p> |
| 517 | |
517 | |
| 518 | <pre caption="Editing xend-config.xsp to change bridge configuration"> |
518 | <pre caption="Editing xend-config.sxp to change bridge configuration"> |
| 519 | ~# <i>nano -w /etc/xen/xend-config.xsp</i> |
519 | ~# <i>nano -w /etc/xen/xend-config.sxp</i> |
| 520 | |
520 | |
| 521 | <comment>(Edit the network-script line)</comment> |
521 | <comment>(Edit the network-script line)</comment> |
| 522 | (network-script <i>'</i>network-bridge <i>netdev=eth0 bridge=xenbr0 vifnum=0'</i>) |
522 | (network-script <i>'</i>network-bridge <i>netdev=eth0 bridge=xenbr0 vifnum=0'</i>) |
| 523 | </pre> |
523 | </pre> |
| 524 | |
524 | |