
Configuring Generic UDP Encapsulation
Nyeem tshooj no kom dhau musview thiab paub yuav ua li cas rau configure Generic UDP Encapsulation.
Table 1: Feature Keeb Kwm Table
| Lub npe feature | Tshaj tawm cov ntaub ntawv | Feature Description |
| Generic UDP Encapsulation | Tso tawm 7.3.1 | Qhov no tso cai rau koj ntxiv ib qho ntxiv rau cov pob ntawv txhawm rau txheeb xyuas lossis txheeb xyuas cov ntaub ntawv siv UDP. Encapsulating pob ntawv hauv UDP leverages siv UDPsource chaw nres nkoj los muab entropy rau Equal Cost Multi-Path (ECMP) hashing. Nws muab cov txiaj ntsig kev ua haujlwm tseem ceeb rau kev sib npaug ntawm kev thauj khoom.
Cov lus txib no tau qhia rau qhov no: decapsulate ua |
- Nkag siab txog Generic UDP Encapsulation, ntawm nplooj 1
- Kev Ua Haujlwm Yooj Yim ntawm UDP Port Numbers rau Decapsulation, ntawm nplooj 7
Nkag siab Generic UDP Encapsulation
UDP encapsulation yog ib qho txheej txheem ntawm kev ntxiv network headers rau pob ntawv thiab tom qab ntawd encapsulating cov pob ntawv hauv Tus Neeg Siv Datagram Protocol (UDP).
Encapsulating pob ntawv siv UDP pab txhawb kev thauj mus los thoob plaws hauv tes hauj lwm. Los ntawm leveraging Txais Side Scaling (RSS) thiab Equal Cost Multipath (ECMP) routing, UDP muab cov txiaj ntsig tseem ceeb rau kev thauj khoom sib npaug. Kev siv UDP qhov chaw nres nkoj muab entropy rau ECMP hashing thiab muab lub peev xwm los siv IP qhov chaw lossis chaw nres nkoj, thiab L4 Chaw nres nkoj rau kev thauj khoom-ntsuas entropy.
Cov txheej txheem ib txwm muaj xws li Generic Routing Encapsulation (GRE) tuaj yeem ua haujlwm tsuas yog qhov chaw nyob IP sab nraud thiab qhov chaw ntawm qhov chaw nyob. Tej zaum lawv yuav tsis muab kev sib npaug load txaus entropy.
Generic UDP Encapsulation (GUE) yog UDP-based network encapsulation raws tu qauv uas encapsulates IPv4 thiab IPv6 pob ntawv. GUE muab ib txwm UDP encapsulation thiab txhais ib qho ntxiv header, uas pab txiav txim seb lub payload nqa los ntawm IP pob ntawv. Cov header ntxiv tuaj yeem suav nrog cov khoom, xws li tus cim kev sib tham hauv virtual, cov ntaub ntawv kev nyab xeeb rau kev lees paub lossis lees paub qhov GUE header, cov ntaub ntawv tswj kev sib tsoo, thiab lwm yam.
Nyob rau hauv GUE, lub payload yog encapsulated nyob rau hauv ib tug IP pob ntawv uas yuav ua tau IPv4 los yog IPv6 Carrier. UDP header yog ntxiv los muab cov kev txwv tsis pub ntxiv, thiab kev xaiv them nyiaj demultiplexing. Ntawm qhov decapsulation node, Tus Neeg Saib Xyuas IP thiab UDP headers raug tshem tawm, thiab cov pob ntawv raug xa mus raws li kev them nyiaj sab hauv.
Ib pob ntawv GUE muaj cov qauv dav dav:
Daim duab 1: GUE Packet Format
UDP/IP header
GUE Header
Encapsulated pob ntawv los yog tswj cov lus
520902
Rau example, nyob rau hauv no scenario, yog hais tias cov ntaub ntawv kwj yog xa los ntawm Host 1 mus rau Host 2. Tus neeg rau zaub mov ua raws li ib tug GUE encapsulator uas xa cov pob ntawv los ntawm Host 1. Tus neeg rau zaub mov, ntawm qhov kawg uas tau txais cov ntaub ntawv, validates cov ntaub ntawv rau lub siv tau tus cab kuj IP thiab UDP header thiab decapsulates cov ntaub ntawv.

- Hwm 1
- Hwm 2
- Encapsulation server (Qhov chaw)
- Decapsulation server (Qhov chaw)
- Txheej 3 Network
GUE muaj ntau yam sib txawv, tab sis qhov sib txawv 1 ntawm GUE tso cai ncaj qha encapsulation ntawm IPv4 thiab IPv6 hauv UDP. Cov txheej txheem no txuag cov nyiaj siv ua haujlwm encapsulation ntawm kev sib txuas rau kev siv IP encapsulation, thiab tseem tsis tas yuav faib tus lej UDP cais rau IP-dhau-UDP encapsulation.
Variant 1 tsis muaj GUE header, tab sis UDP pob ntawv nqa ib pob ntawv IP. Thawj ob qhov khoom ntawm UDP payload yog GUE variant teb thiab phim nrog thawj ob qhov ntawm tus lej version hauv IP header.
Cov txiaj ntsig ntawm kev siv GUE
- Tso cai ncaj qha encapsulation ntawm payloads, xws li IPv4 thiab IPv6 hauv UDP pob ntawv.
• Koj tuaj yeem siv UDP chaw nres nkoj rau demultiplexing payloads.
• Koj tuaj yeem siv ib qho chaw nres nkoj UDP, tso cai rau cov tshuab siv cov qauv ntsuas ntsuas los txheeb xyuas cov khoom thauj. - Leverages UDP header rau entropy cov ntawv lo los ntawm kev encoding qhov chaw nres nkoj tuple.
- Leverages qhov chaw IP chaw rau load-balance encoding. Lub hom phiaj tseem tuaj yeem raug txiav tawm raws li lub subnet muab cov khoom ntxiv rau entropy.
- Zam kev tuav tshwj xeeb rau cov tranist nodes vim tias lawv tsuas pom IP-UDP pob ntawv nrog qee qhov them nyiaj..
- Yooj yim siv UDP tunneling nrog GUE. Qhov no yog vim qhov ncaj qha encapsulation txoj kev ntawm payloads rau hauv UDP.
Kev txwv
- Txhawb Generic UDP Decapsulation rau qhov sib txawv 1 nkaus xwb.
- Tau txais IPv4 pob ntawv nrog GUE chaw nres nkoj ntawm 6080.
- Decapsulates IPv6 pob ntawv nrog lub cim GUE chaw nres nkoj ntawm 6615.
- Tau txais cov pob ntawv MPLS nrog UDPoMPLS chaw nres nkoj ntawm 6635.
- Tsis txaus siab qhov chaw nres nkoj los yog qhov chaw nres nkoj.
- Qhov chaw nyob, Qhov Chaw, lossis qhov chaw nyob tsis tau txais kev txhawb nqa, tab sis subnet mask enteries raug tso cai.
- Txhawm rau ua decapsulation, qhov chaw nres nkoj qhov chaw nres nkoj yog qhov yuav tsum tau ua.
- Kev txiav tawm GRE tom qab GUE lossis GUE tom qab GRE tsis txaus siab.
- Tshem tawm daim ntawv lo xws li VPN Deaggregation tom qab GUE txiav tawm tsis txaus siab.
- Tsis txhawb nqa txoj kev qeeb. Txhawm rau daws qhov sab hauv IP Adjacency, siv lub cef proactive-arp-nd
pab lus txib. - Khiav lub tshem tag nrho hais kom ua tsis tshem tawm lub interface ntawm tag nrho nws cov configurations uas twb muaj lawm.
Configure GUE
Siv cov txheej txheem kev teeb tsa hauv qab no los teeb tsa GUE:
- Configure hw-module profile load-balance algorithm ip-tunnel.
- Configure a traffic class: Tsim ib chav tsheb khiav thiab qhia ntau yam txheej txheem rau kev faib cov pob khoom siv cov lus txib sib tw, thiab cov lus qhia txog kev ntsuam xyuas cov lus txib no.
- Configure a policy map: Define a policy map and associate the traffic class with the traffic policy.
- Siv txoj cai rau txhua VRF, thiab siv txoj cai no rau txhua qhov kev sib tshuam uas yog ib feem ntawm VRF.
Configuration Example
1. Kho hw-module profile load-balance algorithm ip-tunnel.
Router# teeb tsa
Router# hw-module profile load-balance algorithm ip-tunnel
Router# cog lus
![]()
Nco tseg Thaum ntxiv los yog tshem tawm cov hw-module profile load-balance algorithm ip-tunnel hais kom ua, koj yuav tsum reload lub router.
2. Configure a traffic class:
Router# teeb tsa
Router (config)# class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v4
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 6080
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
Router (config)# class-map type traffic match-tag nrho udp-mpls1
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 6635
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
Router (config)# class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v6
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 6615
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
3. Txhais ib daim ntawv qhia txoj cai, thiab koom nrog chav tsheb khiav nrog txoj cai tsheb:
Router (config)# txoj cai-map hom pbr khawv koob-decap
Router(config-pmap)# class type traffic udp-v4
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# class type traffic udp-v6
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
!
Router(config-pmap)# class type traffic udp-mpls1
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# class type traffic class-default
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# kawg-policy-map
Router (config)# cog lus
Router (config)# tawm
4. Siv txoj cai rau txhua tus VRF:
Router# teeb tsa
Router (config)# vrf txoj
Router(config-vrf-policy)# vrf default chaw nyob-tsev neeg ipv4 txoj cai hom pbr input magic-decap Router(config-vrf-policy)# cog lus
Khiav Configuration:
class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v4
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 6080
kawg-chav kawm-map
!
class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v6
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 6080
kawg-chav kawm-map
!
class-map type traffic match-tag nrho udp-mpls1
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 6635
kawg-chav kawm-map
!
txoj cai-map hom pbr khawv koob-decap
class type traffic udp-v4
decapsulate gue variant 1
!
class type traffic udp-v6
decapsulate gue variant 1
!
class type traffic udp-mpls1
decapsulate gue variant 1
!
class type traffic class-default
!
kawg-policy-map
!
vrf txoj
vrf default chaw nyob-tsev neeg ipv4 txoj cai hom pbr input magic-decap
!
Kev pov thawj
Rau view cov txheej txheem ntawm cov nqi suav sau rau cov pob ntawv uas phim rau hauv chav kawm ntawv-daim ntawv qhia:
Router# qhia txoj cai-daim ntawv qhia hom pbr addr-tsev neeg ipv4 txheeb cais
VRF Lub Npe: default
Txoj Cai-Npe: pmap
Txoj Cai Hom: pbr
Tsev neeg Addr: IPv4
Chav kawm: cmap-loop1
Kev txheeb cais (pob ntawv / bytes)
Qhov sib txawv: 0/0
Kev txheeb cais (pob ntawv / bytes)
Tag Nrho Kev Tshaj Tawm: 0/0
Chav kawm: cmap-loop6
Kev txheeb cais (pob ntawv / bytes)
Qhov sib txawv: 0/0
Kev txheeb cais (pob ntawv / bytes)
Tag Nrho Kev Tshaj Tawm: 0/0
Chav kawm: cmap-loop2
Kev txheeb cais (pob ntawv / bytes)
Qhov sib txawv: 0/0
Kev txheeb cais (pob ntawv / bytes)
Tag Nrho Kev Tshaj Tawm: 0/0
Chav kawm: cmap-loop3
Kev txheeb cais (pob ntawv / bytes)
Qhov sib txawv: 198325306/17849277540
Kev txheeb cais (pob ntawv / bytes)
Tag Nrho Kev Tshaj Tawm: 198325306/17849277540
Class: ^DEœ?¿^?
Kev txheeb cais (pob ntawv / bytes)
Qhov sib txawv: 0/0
Kev txheeb cais (pob ntawv / bytes)
Tag Nrho Kev Tshaj Tawm: 0/0
Txhawm rau tshem tawm txoj cai-daim ntawv teev cov txee rau txhua chav kawm-daim ntawv qhia txoj cai, siv lub pom vrf hais kom ua:
Router# clear vrf default address-tsev neeg ipv4 txheeb cais
Kev ua haujlwm yooj yim ntawm UDP Port Numbers rau Decapsulation
Table 2: Feature Keeb Kwm Table
| Lub npe feature | Tshaj tawm cov ntaub ntawv | Feature Description |
| Kev ua haujlwm yooj yim ntawm UDP Port Numbers rau Decapsulation | Tso tawm 7.3.3 | Qhov no ua rau koj yooj yim los muab UDP chaw nres nkoj naj npawb los ntawm 1000 txog 6400, los ntawm qhov IPv4, IPv6, thiab MPLSpackets tuaj yeem decapsulated. Qhov kev hloov pauv zoo li no tso cai rau koj cais cov tsheb khiav tawm raws li QoS txoj cai.
Hauv kev tso tawm ua ntej, koj tuaj yeem muab cov chaw nres nkoj qub rau kev decapsulation nkaus xwb. Cov lus txib hauv qab no tau qhia rau qhov no: hw-module profile ua gue |
Qhov no muab kev txhawb nqa decapsulation rau GUE pob ntawv. Hauv GUE, lub payload yog encapsulated hauv IP pob ntawv-IPv4 lossis IPv6 tus neeg nqa khoom. UDP header yog ntxiv los muab cov kev txwv tsis pub ntxiv thiab kev xaiv payload demultiplexing. Ntawm lub decapsulation node, tus cab kuj IP thiab UDP headers raug tshem tawm, thiab cov pob ntawv raug xa mus raws li cov khoom siv sab hauv. Ua ntej Tshaj Tawm 7.3.3, pob ntawv tau decapsulated siv UDP chaw nres nkoj tooj 6080, 6615, thiab 6635 rau IPv4, IPv6, thiab MPLS payloads feem. Pib los ntawm Tso Tawm 7.3.3, koj tuaj yeem muab UDP chaw nres nkoj tus lej los ntawm 1000 txog 64000 rau decapsulate IPv4, IPv6, thiab MPLS pob ntawv. Txhais cov lej sib txawv rau IPv4, IPv6, thiab MPLS.
Cov lus qhia rau kev teeb tsa Decapsulation siv cov lej chaw nres nkoj yooj yooj yim
Siv cov lus qhia no thaum muab tus lej hloov pauv hloov pauv rau decapsulation:
| Pob ntawv | IPv4 | IPv6 | MPLS |
| UDP Outer Header | Configure IPv4 chaw nres nkoj ntawm hardware module. | Configure IPv6 chaw nres nkoj ntawm hardware module. | Configure MPLS chaw nres nkoj ntawm lub hardware module. |
| Encapsulation Outer Header | Configure IPv4 encapsulation sab nraud header uas phim nrog rau hauv chav kawm ntawv daim ntawv qhia qhov chaw. | ||
| Sab hauv Payload | Nco ntsoov tias cov pob ntawv raug xa mus raws li lub hauv paus IPv4 payload. | Nco ntsoov tias cov pob ntawv raug xa mus raws li lub hauv paus IPv6 payload. | Nco ntsoov tias cov pob ntawv raug xa mus raws li hauv MPLS payload. |
![]()
Nco tseg
- Thaum lub sij hawm decapsulation ntawm IPv4, IPv6, thiab MPLS pob ntawv, cov ntawv hauv qab no raug tshem tawm:
• UDP sab header
• IPv4 encapsulation sab hauv header - Xaiv cov nqi sib txawv rau txhua qhov kev cai no. Qhov chaw nres nkoj siv tau yog los ntawm 1000 txog 64000.
Kev txwv
Cov kev txwv hauv qab no muaj feem xyuam thaum teeb tsa cov cim GUE cov chaw nres nkoj tus lej rau decapsulate IPv4, IPv6, thiab MPLS pob ntawv siv UDP:
- Thaum teeb tsa lub qhov, xaiv ib qho ntawm cov hauv qab no:
• Sib phim tsuas yog 16 qhov tshwj xeeb qhov chaw nyob IP raws li qhia hauv example:
Router(config-cmap) # sib qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.255
• Sib txuam ua ke ntawm 64 qhov chaw tshwj xeeb thiab qhov chaw IP chaw nyob raws li qhia hauv example:
Router(config-cmap) # sib chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap) # sib qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0 - Classless Inter-Domain Routing (CIDR) tus nqi hauv qhov chaw IP chaw nyob subnet npog yuav tsum tsuas yog /32.
- Qhov chaw nyob qhov chaw nyob subnet npog txhawb nqa tag nrho cov txiaj ntsig CIDR. Txawm li cas los xij, qhov chaw nyob nrog rau lub ntsej muag subnet yuav tsum yog qhov tshwj xeeb rau tag nrho peb hom UDP payload-IPv4, IPv6, thiab MPLS. Kev teeb tsa ua tsis tiav thaum qhov chaw nyob IP chaw nyob thiab lub ntsej muag subnet yog tib yam rau tag nrho peb qhov kev them nyiaj raws li pom hauv qhov example:
Router (config)#class-map hom tsheb sib tw-tag nrho SRTE-GUE-DECAP-IPv4
Router(config-cmap)#match chaw nyob ipv4 10.216.101.0 255.255.255.0
..
Router (config)#class-map hom tsheb sib tw-tag nrho SRTE-GUE-DECAP-IPv6
Router(config-cmap)#match chaw nyob ipv4 10.216.101.0 255.255.255.0
..
Router (config)#class-map type traffic match-tag nrho SRTE-GUE-DECAP-MPLS
Router(config-cmap)#match chaw nyob ipv4 10.216.101.0 255.255.255.0
..
Configuring Port Numbers rau Decapsulation
Los ntawm kev teeb tsa cov lej sib txawv ntawm cov chaw nres nkoj router, koj tuaj yeem phim thiab coj cov tsheb mus rau ntau txoj hauv kev. Rau example, kev khiav mus rau ib qho kev pabcuam video tshwj xeeb tuaj yeem decapsulated thiab xa los ntawm cov chaw nres nkoj sib txawv. Cov kauj ruam uas koom nrog hauv kev teeb tsa tus lej chaw nres nkoj rau decapsulation yog:
- Configure UDP chaw nres nkoj chaw nres nkoj rau decapsulation ntawm qhov xav tau payloads.
- Configure cov chav tsheb khiav kom phim cov chaw nres nkoj.
- Txhais ib daim ntawv qhia txoj cai, thiab koom nrog chav tsheb nrog txoj cai tsheb.
- Siv txoj cai rau txhua tus VRF.
![]()
Nco tseg Rau qhov kho vajtse module hloov pauv chaw nres nkoj teeb tsa kom muaj txiaj ntsig koj yuav tsum rov pib dua daim npav kab.
Configuration Example
Hw-module configuration:
===================
Router#hw-module gue udp dest-port-ipv4 1001 dest-port-ipv6 1002 dest-port-mpls 1003
Class map configuration:
===================
Router# teeb tsa
Router (config)# class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v4
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.255
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 1001
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
Router (config)# class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v6
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.255
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 1002
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
Router (config)# class-map type traffic match-tag nrho udp-mpls1
Router(config-cmap)# match chaw nyob ipv4 220.100.20.0 255.255.255.0
Router(config-cmap)# match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.255
Router(config-cmap)# match raws tu qauv udp
Router(config-cmap)# qhov chaw nres nkoj 1003
Router(config-cmap)# kawg-chav kawm-map
Router (config)# cog lus
Ingress Policy-map configuration:
========================
Router (config)# txoj cai-map hom pbr khawv koob-decap
Router(config-pmap)# class type traffic udp-v4
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# class type traffic udp-v6
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# class type traffic udp-mpls1
Router(config-pmap-c)# decapsulate gue variant 1
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# class type traffic class-default
Router(config-cmap)# match raws tu qauv udp
Router(config-pmap-c)# tawm
Router(config-pmap)# kawg-policy-map
Router (config)# cog lus
Router (config)# tawm
Siv txoj cai rau VRF:
==========================================
Router# teeb tsa
Router (config)# vrf txoj
Router(config-vrf-policy)# vrf default chaw nyob-tsev neeg ipv4 txoj cai hom pbr input magic-decap
Router(config-vrf-policy)# cog lus
Khiav Configuration
!! File khaws cia ntawm 16:01:32 UTC Monday Feb 07 2022 los ntawm cisco
!! IOS XR Configuration 7.3.3.10I
!! Last configuration change at Mon Feb 7 15:35:11 2022 by cisco
!
log console disable
tus username cisco
pawg root-lr
pab pawg cisco-kev txhawb nqa
secret 10
$6$gHKmE1YZAo71BE1.$3KYogrvOdJxTRPZgYPGXUXkO4PqQMr2E6oYvJO4ngBmuaGsF2nAB/m1NP5Il3zh9HTzBI/k4r8PwWSbsARsmp.
!
vrf-gre
chaw nyob-tsev neeg ipv4 unicast
!
chaw nyob-tsev neeg ipv6 unicast
!
!
kab console
exec-timeout 0 0
absolute-timeout 0
lub sijhawm ncua sijhawm 0
!
kab default
exec-timeout 0 0
absolute-timeout 0
lub sijhawm ncua sijhawm 0
!
!arp vrf default 29.0.1.2 0000.1122.2929 ARPA
hu-tsev
kev pabcuam nquag
tiv tauj smart-licensing
profile CiscoTAC-1
nquag
qhov chaw thauj mus los-txoj kev http
!
!
ipv6 access-list abf6-gre
1 daim ntawv tso cai ipv6 ib qho tom ntejhop1 ipv6 201:0:1::2
!
ipv4 access-list abf-gre
1 tso cai ipv4 ib qho nexthop1 ipv4 201.0.1.2
!
class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v4
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 1001
kawg-chav kawm-map
!
class-daim ntawv qhia hom tsheb sib tw-tag nrho udp-v6
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 1002
kawg-chav kawm-map
!
class-map type traffic match-tag nrho udp-mpls1
match chaw nyob ipv4 220.100.20.0 255.255.255.0
match qhov chaw-chaw nyob ipv4 210.100.20.0 255.255.255.0
match raws tu qauv udp
qhov chaw nres nkoj 1003
kawg-chav kawm-map
!
txoj cai-map hom pbr pbr-gre
class type traffic class-default
redirect ipv4 nexthop 202.0.1.2
!
kawg-policy-map
!
txoj cai-map hom pbr khawv koob-decap
class type traffic udp-v4
decapsulate gue variant 1
!
class type traffic udp-v6
decapsulate gue variant 1
!
class type traffic udp-mpls1
decapsulate gue variant 1
!
class type traffic class-default
!
kawg-policy-map
!
interface Bundle-Ether25
ipv4 chaw nyob 25.0.1.1 255.255.255.0
ipv6 address 25:0:1::1/64
ipv6 ua
kaw
!
interface Bundle-Ether28
ipv4 chaw nyob 28.0.1.1 255.255.255.0
!
interface Loopback0
ipv4 chaw nyob 10.10.10.1 255.255.255.255
!
interface MgmtEth0/RP0/CPU0/0
ipv 4 dhcp
!
interface MgmtEth0/RP1/CPU0/0
ipv 4 dhcp
!
interface BVI23
ipv4 chaw nyob 23.0.1.1 255.255.255.0
ipv6 address 23:0:1::1/64
ipv6 ua
kaw
!
interface BVI29
ipv4 chaw nyob 29.0.1.1 255.255.255.0
ipv6 ua
kaw
!
Interface HundredGigE0/0/0/0
kaw
!
l2 nqa
!
!
Interface HundredGigE0/0/0/24
service-policy hom pbr input pbr-gre
ipv4 chaw nyob 24.0.1.1 255.255.255.0
ipv6 address 24:0:1::1/64
ipv6 ua
!
Interface HundredGigE0/0/0/24.24
ipv4 chaw nyob 24.0.24.1 255.255.255.0
ipv6 ua
encapsulation dot1q 24
!
Interface HundredGigE0/0/0/25
pob ID 25 hom rau
!
Interface HundredGigE0/0/0/26
ipv4 chaw nyob 26.0.1.1 255.255.255.0
ipv6 address 26:0:1::1/64
ipv6 ua
!
Interface HundredGigE0/0/0/27
ipv4 chaw nyob 27.0.1.1 255.255.255.0
ipv6 ua
!
Interface HundredGigE0/0/0/27.27
ipv4 chaw nyob 27.0.27.1 255.255.255.0
ipv6 address 27:0:27::1/64
ipv6 ua
kaw
encapsulation dot1q 27
!
Interface HundredGigE0/0/0/28
bundle ID 28 hom ua haujlwm
!
Interface HundredGigE0/0/0/29
ipv4 chaw nyob 29.0.1.1 255.255.255.0
ipv6 ua
!
Interface HundredGigE0/1/0/24
ipv4 chaw nyob 124.0.1.1 255.255.255.0
ipv6 address 124:0:1::1/64
ipv6 ua
!
!
Interface HundredGigE0/1/0/30
bundle ID 28 hom ua haujlwm
!
Interface HundredGigE0/1/0/31
ipv4 chaw nyob 31.0.1.1 255.255.255.0
ipv6 address 31:0:1::1/64
kaw
!
!
txoj cai-kev hla dhau
hla
txoj cai kawg
!
router zoo li qub
chaw nyob-tsev neeg ipv4 unicast
201.0.1.0/24 tunnel-ip1
201.0.1.0/24 tunnel-ip2
201.0.1.0/24 tunnel-ip3
201.0.1.0/24 tunnel-ip4
!
chaw nyob-tsev neeg ipv6 unicast
201:0:1::/64 tunnel-ip1
201:0:1::/64 tunnel-ip2
201:0:1::/64 tunnel-ip3
201:0:1::/64 tunnel-ip4
!
!
router ospf 10
router-id 1.1.1.1
thaj 0
! interface Bundle-Ether28
interface Loopback0
!
Interface HundredGigE0/0/0/26
!
!
!
! Interface HundredGigE0/0/0/27
! Interface HundredGigE0/0/0/27.27
router bgp 200
bgp router-id 1.1.1.1
chaw nyob-tsev neeg ipv4 unicast
max-paths ibgp 64
!
! redistribute txuas
! neeg zej zog 26.0.1.2
! remote-as 200
! chaw nyob-tsev neeg ipv4 unicast
! multipath
! txoj cai-txoj cai hla hauv
! txoj cai-txoj cai dhau mus
! tom ntej-hop-tus kheej
neeg zej zog 27.0.1.2
200 XNUMX
chaw nyob-tsev neeg ipv4 unicast
multipath
txoj cai-txoj cai hla hauv
txoj cai-txoj cai dhau mus
tom ntej-hop-tus kheej
!
!
neeg zej zog 28.0.1.2
200 XNUMX
chaw nyob-tsev neeg ipv4 unicast
multipath
txoj cai-txoj cai hla hauv
txoj cai-txoj cai dhau mus
tom ntej-hop-tus kheej
!
!
neeg zej zog 29.0.1.2
200 XNUMX
chaw nyob-tsev neeg ipv4 unicast
multipath
txoj cai-txoj cai hla hauv
txoj cai-txoj cai dhau mus
tom ntej-hop-tus kheej
!
!
!
vrf txoj
vrf default chaw nyob-tsev neeg ipv4 txoj cai hom pbr input magic-decap
!
l2v npo
choj group bg
choj-domain bd
! Interface HundredGigE0/0/0/29
! static-mac-chaw nyob 0000.1122.2929
! Routed interface BVI29
pab bg1
choj-domain bd1
Interface HundredGigE0/0/0/23
static-mac-chaw nyob 0000.1122.2323
!
Routed interface BVI23
!
!
!
!
mpls zoo
Interface HundredGigE0/0/0/24
lwj gre
nyob rau hauv-label 35001 allocate per-prefix 202.0.1.2/32
pem hauv ntej
path 1 nexthop tunnel-ip1 out-label 35002
path 2 nexthop tunnel-ip2 out-label 35002
!
!
!
ssh server vrf default
hw-module profile gue udp-dest-port ipv4 1001 ipv6 1002 mpls 1003
kawg
Kev pov thawj
Khiav lub qhia cov khoom sys qhov chaw 0/0/CPU0 | inc ua hais kom ua nyob rau hauv XR Config hom los xyuas kom meej tias cov cim GUE tus lej chaw nres nkoj tau teeb tsa rau decapsulate IPv4, IPv6, thiab MPLS payloads.
Router#qhia cov khoom sys qhov chaw 0/0/CPU0 | inc ua
uint32_t gue_ipv 4_port => 1001
uint32_t gue_ipv 6_port => 1002
uint32_t gue_mpls ua_port => 1003
Cov ntaub ntawv / Cov ntaub ntawv
![]() |
CISCO 8000 Series Routers Configuring Generic UDP Encapsulation [ua pdf] Cov neeg siv phau ntawv qhia 8000 Series Routers Configuring Generic UDP Encapsulation, 8000 Series, Routers Configuring Generic UDP Encapsulation, Configuring Generic UDP Encapsulation, Generic UDP Encapsulation, UDP Encapsulation, Encapsulation |




