Tài liệu học về Vyatta bridging 6 5r1 v01

96 325 0
Tài liệu học về  Vyatta bridging 6 5r1 v01

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Vyatta Suite200 1301ShorewayRoad Belmont,CA94002 vyatta.com 6504137200 1888VYATTA1(USandCanada) VYATTA,INC. |  VyattaSystem Bridging REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION.6.5R1 v01 RELEASEDWITH:6.5.0R1 PARTNO.A0‐0247‐10‐0003 iii Bridging 6.5R1v01 Vyatta Contents QuickListofCommands......................................................... v ListofExamples ...............................................................vi Preface. ..................................................................... vii IntendedAudience ................. ................... ..........................................viii OrganizationofThisGuide ........... ....... ................................. .....................viii DocumentConventions ............................................ ............... ................ix VyattaPublicati ons................. ................................ .. ................. ...........ix Chapter1 BridgingOverview .................................................... 1 Layer2Bridging ............................................................................... ...2 RFC1483BridgedEthernet.............. ...........................................................2 MTUforBridgeGroups ................... ...................  ................................ .. ....2 Chapter2 BridgingConfigurationExamples ........................................ 3 BasicBridgingConfiguration.......... ................... ................... .................... ....4 BridgingAcrossaWANUsingaGRETunnel................... .................................... ....5 ConfigureWEST........ ...................................................................... 5 ConfigureEAST...... ................... .... ............... ................... ................7 BridgingacrossaWANUsingaGRETunneloverIPsecVPN..............................................8 ConfigureWEST........................ .................. ................................. ...9 DefinetheBridge,Ethernet,andLoopbackInterfaceson“WEST”..... ............................9 DefinetheGRETunnelon“WEST”............... . ..........................................10 DefinetheIPsecTunnelon“WEST”.. .................................... ................. .. 11 ConfigureEAST...... ................... ................... ............... ................... 13 BridgingAcrossaWANUsingSite‐to‐SiteOpenVPN....... ............... ................... ..........15 ConfigureWEST.... ............... ................... .................... ................... 16 DefinetheBridgeandEthernetInterfaceson“WEST” ..... ................ .....................16 DefinetheOpenVPNTunnelon“WEST” ..................... .. ..............................17 ConfigureEAST...... ............. ................................. ..........................18 BridgingAcrossaWANUsingClient‐ServerOpenVPN.................................. ................18 ConfigureV1............. .................... ............... ................... .............19 DefinetheBridge Interfaceon“V1” ...................... ................... ................19 DefinetheEthernetInterfaceson“V1”.................................... ..................20 DefinetheOpenVPNServeron“V1”.......................... ..............................20 DefinetheDHCPServeron“V1”............... .............................................21  iv Bridging 6.5R1v01 Vyatta CommitandDisplaytheConfigurationon“V1” ............................................... 22 ConfigureV2............. ................................. ..................................23 DefinetheBridgeInterfaceon“V2” ........... ................................. .............23 DefinetheEthernetInterface on“V2” .................... ................... ................23 DefinetheOpenVPNClienton“V2”....................... ................ ............... ...24 CommitandDisplaytheConfigurationon“V2” ......................... ............... .......25 Chapter3 BridgeGroupCommands.............................................. 26 interfacesbridge<brx>.......................................................................29 interfacesbridge<brx>address<address> ....................... ................................30 interfacesbridge<brx>aging<age> ............. .................................... ...........32 interfacesbridge<brx> description<desc>.......................................................34 interfacesbridge<brx>dhcpv6‐options ...................................... . ............... ...35 interfacesbridge<brx>disable............................. ............... ................... ..37 interfacesbridge<brx>disable‐link‐detect ......... ............... ...............................38 interfacesbridge<brx>forwarding‐ delay<delay> ....................................... ..........39 interfacesbridge<brx>hello‐time<interval> .....................................................41 interfacesbridge<brx>ipv6address .................................... ... .....................43 interfacesbridge<brx>ipv6disable‐forwarding ................... .. .. ...........................45 interfacesbridge<brx>ipv6dup‐addr‐detect‐transmits<num> .............. .......................46 interfacesbridge<brx>ipv6router‐advert ...................... ................................. 48 interfacesbridge<brx>mac<mac‐addr> ........... .............................................53 interfacesbridge<brx>max‐age <interval> ........................... ................... ........55 interfacesbridge<brx>priority<priority> ........................................ ............... 57 interfacesbridge<brx>stp<state>.............................. ............... ................59 showbridge ................. ............... ................... .............................61 Chapter4 BridgeInterfaceCommands ........................................... 62 clearinterfacesbridgecounters ...... .. ........................................................64 interfacesadsl<adslx>pvc<pvc‐id>bridged‐ethernetbridge‐group ......................... .........65 interfacesbonding<bondx>bridge‐group .......... .......................... ...................67 interfacesbonding<bondx>vif<vlan‐id>bridge‐group........ ................ .....................69 interfacesethernet<ethx>bridge‐group ......... .. ............. ................................71 interfacesethernet<ethx>vif<vlan‐id>bridge‐group........... ................................. ..73 interfacesopenvpn<vtunx>bridge‐group .......... .............................................75 interfacestunnel<tunx>parametersip bridge‐group .............................. ................77 interfaceswireless<wlanx> bridge‐group........................................................79 showinterfacesbridge ........................................ ............... ................81 GlossaryofAcronyms.......................................................... 82 v Bridging 6.5R1v01 Vyatta QuickListofCommands Use this list to help you quickly locate commands. clearinterfacesbridgecounters.................................... ................. .. .............64 interfacesadsl<adslx>pvc<pvc‐id>bridged‐ethernetbridge‐group .................... .................65 interfacesbonding<bondx>bridge‐group............................ ...............................67 interfacesbonding<bondx>vif<vlan‐id>bridge‐group ........... .....................................69 interfacesbridge<brx>address<address>......... ..................................................30 interfacesbridge<brx>aging<age>........................... .................. ...................32 interfacesbridge<brx>description<desc> ........ .................. ................................34 interfacesbridge<brx>dhcpv6‐options............. ................................................35 interfacesbridge <brx>disable ....................................................................37 interfacesbridge<brx>disable‐link‐detect.......................... ................................. 38 interfacesbridge<brx>forwarding‐delay<delay>............ ................................. ........39 interfacesbridge<brx>hello‐time<interval>.... .....................................................41 interfacesbridge<brx>ipv6address...................... ................... .. .....................43 interfacesbridge<brx>ipv6disable‐forwarding ....................... ............... ................45 interfacesbridge<brx>ipv6dup‐addr‐detect‐transmits<num>.......... ............... ................46 interfacesbridge<brx>ipv6router‐advert.............. ................................ .. ...........48 interfacesbridge<brx>mac<mac‐ addr>.. ....................................... ...................53 interfacesbridge<brx>max‐age<interval>................ .. ................ ........................55 interfacesbridge<brx>priority<priority> ..................... ................................. .....57 interfacesbridge<brx>stp<state> ........ ................................. ........................59 interfacesbridge<brx> .... ..................................... ............... ................... 29 interfacesethernet<ethx>bridge‐group........... ............... ................... ...............71 interfaces ethernet<ethx>vif<vlan‐id>bridge‐group ...................................... ...........73 interfacesopenvpn<vtunx>bridge‐group.... .................................... ...................75 interfacestunnel<tunx>parametersipbridge‐group......................... .........................77 interfaceswireless<wlanx>bridge‐group..................... .................................... ...79 showbridge......... ................................. ..........................................61 showinterfacesbridge...................... ................................ .. ................. ..81 vi Bridging 6.5R1v01 Vyatta ListofExamples Use this list to help you locate examples you’d like to look at or try. vii Bridging 6.5R1v01 Vyatta Preface This document describes the various deployment, installation, and upgrade options for Vyatta software. This preface provides information about using this guide. The following topics are presented: • Intended Audience • Organization of This Guide • Document Conventions • Vyatta Publications  IntendedAudience viii Bridging 6.5R1v01 Vyatta IntendedAudience This guide is intended for experienced system and network administrators. Depending on the functionality to be used, readers should have specific knowledge in the following areas: • Networking and data communications • TCP/IP protocols • General router configuration • Routing protocols • Network administration • Network security • IP services OrganizationofThisGuide This guide has the following aid to help you find the information you are looking for: • Quick List of Commands Use this list to help you quickly locate commands. • List of Examples Use this list to help you locate examples you’d like to try or look at. This guide has the following chapters: Chapter Description Page Chapter 1:BridgingOverview ThischapterprovidesabriefintroductiontotheVyatta system’ssupport forLayer2bridging. 1 Chapter 2:BridgingConfiguration Examples Thischapterprovidesconfigurationexamplesforbridging. 3 Chapter 3:BridgeGroupCommands Thischapterliststhecommandsusedtocreatethebridge group(thebridgeinterface)anddefineitscharacteristics. 26 Chapter 4:BridgeInterface  Commands Thischapterdescribescommandsforaddinginterfacestoa bridgegroup. 62 GlossaryofAcronyms 82  DocumentConventions ix Bridging 6.5R1v01 Vyatta DocumentConventions This guide uses the following advisory paragraphs, as follows. NOTENotesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors. This document uses the following typographic conventions. VyattaPublications WARNINGWarningsalertyoutosituationsthatmayposeathreattopersonalsafety. CAUTIONCautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamageto equipment,orthatmayaffectservice. Monospace Examples, command-line output, and representations of configuration nodes. boldMonospace Your input: something you type at a command line. bold Commands, keywords, and file names, when mentioned inline. Objects in the user interface, such as tabs, buttons, screens, and panes. italics An argument or variable where you supply a value. <key> A key on your keyboard, such as <Enter>. Combinations of keys are joined by plus signs (“+”), as in <Ctrl>+c. [ key1 | key2] Enumerated options for completing a syntax. An example is [enable | disable]. num1–numN A inclusive range of numbers. An example is 1–65535, which means 1 through 65535, inclusive. arg1 argN A range of enumerated values. An example is eth0 eth3, which means eth0, eth1, eth2, or eth3. arg[ arg ] arg[,arg ] A value that can optionally represent a list of elements (a space-separated list and a comma-separated list, respectively).  VyattaPublications x Bridging 6.5R1v01 Vyatta Full product documentation is provided in the Vyatta technical library. To see what documentation is available for your release, see the Guide to Vyatta Documentation. This guide is posted with every release of Vyatta software and provides a great starting point for finding the information you need. Additional information is available on www.vyatta.com and www.vyatta.org. [...]...1 Chapter 1: Bridging Overview This chapter provides a brief introduction to the Vyatta system’s support for Layer 2 bridging This chapter presents the following topics: • • RFC 1483 Bridged Ethernet • Bridging Layer 2 Bridging MTU for Bridge Groups 6. 5R1 v01 Vyatta Chapter 1: Bridging Overview  Layer 2 Bridging 2 Layer 2 Bridging Bridging allows you to connect multiple network... effective MTU size Bridging 6. 5R1 v01 Vyatta 3 Chapter 2: Bridging Configuration  Examples This chapter provides configuration examples for bridging This chapter presents the following topics: • • Bridging Across a WAN Using a GRE Tunnel • Bridging across a WAN Using a GRE Tunnel over IPsec VPN • Bridging Across a WAN Using Site-to-Site OpenVPN • Bridging Basic Bridging Configuration Bridging Across a... ovpn‐test subnet 192. 168 .200.0/24 Specify the default router vyatta@ V1# set service dhcp‐server shared‐network‐name  ovpn‐test subnet 192. 168 .200.0/24 default‐router  192. 168 .200.1 Specify the beginning of the  range of addresses that the  DHCP server will provide vyatta@ V1# set service dhcp‐server shared‐network‐name  ovpn‐test subnet 192. 168 .200.0/24 start 192. 168 .200.100 Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples ... key‐file /config/auth/V1.key } } Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using Client‐Server OpenVPN 23 Example 2‐ 16   V1 ‐ Commit and display the configuration [edit] vyatta@ V1# show service dhcp‐server { shared‐network‐name ovpn‐test { subnet 192. 168 .200.0/24 { default‐router 192. 168 .200.1 start 192. 168 .200.100 { stop 192. 168 .200.150 } } } } Configure V2... Return to the top of the  configuration hierarchy vyatta@ WEST# top Commit the configuration vyatta@ WEST# commit Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging across a WAN Using a GRE Tunnel over IPsec VPN 13 Example 2 6   Defining the IPsec tunnel from WEST to EAST View the modified  configuration vyatta@ WEST# show vpn ipsec ipsec‐interfaces  interface eth1 vyatta@ WEST# show vpn ipsec site‐to‐site peer 192.0.2.33... Command Create the bridge interface vyatta@ R1# set interfaces bridge br0 Add eth0 to the bridge group vyatta@ R1# set interfaces ethernet eth0 bridge‐group bridge  br0 Add eth1 to the bridge group vyatta@ R1# set interfaces ethernet eth1 bridge‐group bridge  br0 Commit the configuration vyatta@ R1# commit Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using a GRE Tunnel... Figure 2‐2   Bridging across a WAN using a GRE‐bridge encapsulated tunnel GRE-bridge Tunnel eth0 eth1 WEST eth1 30 1 192.0.2.0/27 62 33 192.0.2.32/27 eth0 EAST Configure WEST GRE tunnels are explained in detail in the Vyatta Tunnels Reference Guide Please see that guide for further details Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using a GRE Tunnel 6 The... other end of the tunnel vyatta@ WEST# set interfaces tunnel tun0 remote‐ip 192.0.2.33 Specify the GRE‐bridge  encapsulation mode for the  tunnel vyatta@ WEST# set interfaces tunnel tun0 encapsulation  gre‐bridge Add tun0 to the bridge group vyatta@ WEST# set interfaces tunnel tun0 bridge‐group bridge  br0 Commit the configuration vyatta@ WEST# commit Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using a GRE Tunnel... Example 2‐9   Defining the bridge and Ethernet interfaces on WEST Step Command Create the bridge interface vyatta@ WEST# set interfaces bridge br0 Add eth0 to the bridge group vyatta@ WEST# set interfaces ethernet eth0 bridge‐group bridge  br0 Configure an address on eth1 vyatta@ WEST# set interfaces ethernet eth1 address  192.0.2.1/27 Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using Site‐to‐Site OpenVPN 17... group (the bridge interface br0) and assigns IP address 192. 168 .200.1/24 to the bridge interface Example 2‐12   V1 ‐ Bridge configuration Step Command Create the bridge interface and  assign it an IP address vyatta@ V1# set interfaces bridge br0 address 192. 168 .200.1/24 Bridging 6. 5R1 v01 Vyatta Chapter 2: Bridging Configuration Examples  Bridging Across a WAN Using Client‐Server OpenVPN 20 Define the Ethernet Interfaces on “V1” . VyattaSystem Bridging REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION. 6. 5R1 v01 RELEASEDWITH: 6. 5.0R1 PARTNO.A0‐0247‐10‐0003 iii Bridging 6. 5R1 v01 Vyatta Contents QuickListofCommands........................................................ ................. ..81 vi Bridging 6. 5R1 v01 Vyatta ListofExamples Use this list to help you locate examples you’d like to look at or try. vii Bridging 6. 5R1 v01 Vyatta Preface This document. Thischapterliststhecommandsusedtocreatethebridge group(thebridgeinterface)anddefineitscharacteristics. 26 Chapter 4:BridgeInterface  Commands Thischapterdescribescommandsforaddinginterfacestoa bridgegroup. 62 GlossaryofAcronyms 82  DocumentConventions ix Bridging 6. 5R1 v01

Ngày đăng: 06/07/2015, 07:34

Từ khóa liên quan

Mục lục

  • Contents

  • Quick List of Commands

  • List of Examples

  • Preface

    • Intended Audience

    • Organization of This Guide

    • Document Conventions

    • Vyatta Publications

    • Chapter 1: Bridging Overview

      • Layer 2 Bridging

      • RFC 1483 Bridged Ethernet

      • MTU for Bridge Groups

      • Chapter 2: Bridging Configuration Examples

        • Basic Bridging Configuration

        • Bridging Across a WAN Using a GRE Tunnel

          • Configure WEST

          • Configure EAST

          • Bridging across a WAN Using a GRE Tunnel over IPsec VPN

            • Configure WEST

              • Define the Bridge, Ethernet, and Loopback Interfaces on “WEST”

              • Define the GRE Tunnel on “WEST”

              • Define the IPsec Tunnel on “WEST”

              • Configure EAST

              • Bridging Across a WAN Using Site-to-Site OpenVPN

                • Configure WEST

                  • Define the Bridge and Ethernet Interfaces on “WEST”

                  • Define the OpenVPN Tunnel on “WEST”

                  • Configure EAST

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan