首页 > 其他分享 >五十八、配置 GRE VPN 实验组网

五十八、配置 GRE VPN 实验组网

时间:2024-01-05 16:31:24浏览次数:35  
标签:default ip 255.255 GRE user interface VPN local 组网

1、实验拓扑图

五十八、配置 GRE VPN 实验组网_ci

2、实验目的

R1和R3建立了一条GRE隧道,从R1的G0/0/0接口出发的报文TTL为127,则R3的G0/0/1接口所携带的TTL为127

3、实验配置

R1:

[r1]display current-configuration  

[V200R003C00]

#

sysname r1

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 12.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

ip address 192.168.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

#

interface Tunnel0/0/0

ip address 100.1.1.1 255.255.255.0  

tunnel-protocol gre

source 12.1.1.1

destination 23.1.1.3

#

ip route-static 0.0.0.0 0.0.0.0 12.1.1.2

ip route-static 2.2.2.2 255.255.255.255 Tunnel0/0/0

ip route-static 172.16.1.0 255.255.255.0 Tunnel0/0/0

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[r1]

R2:

[r2]display current-configuration  

[V200R003C00]

#

sysname r2

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 12.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 23.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[r2]

R3:

[r3]display current-configuration  

[V200R003C00]

#

sysname r3

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

#

interface GigabitEthernet0/0/1

ip address 23.1.1.3 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 172.16.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255  

#

interface Tunnel0/0/0 //配置接口

ip address 100.1.1.2 255.255.255.0  

tunnel-protocol gre //调用协议

source 23.1.1.3 //源ip

destination 12.1.1.1//目的ip

#

ip route-static 0.0.0.0 0.0.0.0 23.1.1.2

ip route-static 1.1.1.1 255.255.255.255 Tunnel0/0/0

ip route-static 192.168.1.0 255.255.255.0 Tunnel0/0/0

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[r3]

4、实验结果

五十八、配置 GRE VPN 实验组网_Standard_02

五十八、配置 GRE VPN 实验组网_Standard_03

五十八、配置 GRE VPN 实验组网_ci_04

5、知识

五十八、配置 GRE VPN 实验组网_ci_05

穿过隧道:TTL不会减少

标签:default,ip,255.255,GRE,user,interface,VPN,local,组网
From: https://blog.51cto.com/u_13560030/9115590

相关文章

  • TDSQL(PostgreSQL版本) benchmark性能测试
    一、准备软件包jdk:地址:https://pan.baidu.com/s/1sbgLPROfd9e_valSfv0YAQ提取码:4qpsbenchmark:地址:https://pan.baidu.com/s/1nAHER-BXpgG0LUnR8NbT7Q提取码:xcbu二、安装1、jdk安装:1.1解压安装到34机器的/data/tbase/jdk目录下1.2配置环境变量如下:[tbase@VM_0_37_cent......
  • PostgreSQL 数据库归档最近被问及的问题问题 与 4 毋 处世学
    还是老规矩,技术加生活,先说技术,后说生活的感悟和人生的学习。在PostgreSQL中很少被提及的一个问题,归档,而这里经常有人问这个问题,所以需要写一期来说说关于ARCHIVE的问题。首先我们需要提出几个问题,1为什么要归档,PG中归档了什么2 什么时间进行归档,归档的原理与频率3  要怎么在......
  • 当创建一个ingress后,kubernetes会发什么?
    本文分享自华为云社区《当创建一个ingress后,kubernetes会发什么?》,作者:可以交个朋友。一、Ingress概述Ingress是一组路由转发规则合集,将集群内部服务通过7层协议暴露给用户,是一种k8s默认的资源。Ingress资源对象用于定义来自外网的HTTP和HTTPS规则,流量路由由Ingress资源上定义的规则......
  • 三十四、配置 BGP 多集群 RR 实验组网
    1、实验拓扑图2、实验目标一级RR建立两两互联,RR之间为非客户机3、核心配置R1:<R1>displaycurrent-configuration [V200R003C00]#sysnameR1#boardadd0/44GET #snmp-agentlocal-engineid800007DB03000000000000snmp-agent #clocktimezoneChina-Standard-T......
  • 三十三、配置 BGP 备份 RR 实验组网
    1、实验拓扑图2、实验目的配置R1、R2、R3和R4配置集群,R1与R2相互备份,配置相同的“reflectorcluster-id1.1.1.1”,观察结果3、实验具体配置R1[R1]displaycurrent-configuration [V200R003C00]#sysnameR1#snmp-agentlocal-engineid800007DB03000000000000snmp-agent......
  • QProgressDialog用法及结合QThread用法,四种线程使用
    1QProgressDialog概述QProgressDialog类提供耗时操作的进度条。进度对话框用于向用户指示操作将花费多长时间,并演示应用程序没有冻结。此外,QPorgressDialog还可以给用户一个中止操作的机会。进度对话框的一个常见问题是很难知道何时使用它们;操作在不同的硬件上花费不同的时间......
  • postgresql socket读数据返回-1
    如下所示:{n=secure_raw_read(port,ptr,len);//pg的socket读是非阻塞读,所以返回-1不影响,后面等到socket可读之后继续读。见下文socket返回值解释waitfor=WL_SOCKET_READABLE;}/*Inblockingmode,waituntilthesocketisready*/i......
  • 十七、配置 IS-IS 通告缺省路由实验组网
    1、实验拓扑图2、实验目的R1、R2、R3之间构建LEVEL-1关系,R3、R4、R5之间构建LEVEL-S关系,R3为LEVEL-1-2路由器(边界路由器);默认情况下,R3产生ATT置位为1的LSP,另LEVEL-1路由器收到ATT为1的LSP后产生下一跳指向R3的缺省路由;之后再验证对ATT比特位进行手动配置产生的后续结果3、配置[r3]di......
  • 如何在PostgreSQL中管理锁定的表和进程
    在使用PostgreSQL数据库时,可能会遇到一种情况:某些进程锁定了特定的表,影响了数据库的正常操作。这时,了解如何查找并管理这些锁定进程是非常重要的。下面是一些步骤和注意事项,帮助您处理这种情况。步骤1:查找锁定的表和进程首先,您需要确定哪些进程正在锁定您关心的表。可以通过以下SQL......
  • 无涯教程-Java 正则 - \P{InGreek}匹配函数
    字符类\P{InGreek}匹配除希腊符号以外的任何字符。P{InGreek}-示例下面的示例显示Unicode字符类匹配的用法。packagecom.learnfk;importjava.util.regex.Matcher;importjava.util.regex.Pattern;publicclassUnicodeCharacterClassDemo{privatestaticfina......