博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
自制tunnel口建虚拟专网实验
阅读量:6006 次
发布时间:2019-06-20

本文共 2452 字,大约阅读时间需要 8 分钟。

hot3.png

 

 

 

 

 

 

 

R1:

interface Tunnel12

ip address 192.168.12.1 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.1

tunnel destination 123.123.123.2

!

interface Tunnel13

ip address 192.168.13.1 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.1

tunnel destination 123.123.123.3

!

interface Ethernet0/0

ip address 123.123.123.1 255.255.255.0

half-duplex

no shutdown

!

interface Ethernet0/1

ip address 14.14.14.1 255.255.255.0

half-duplex

no shutdown

!

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 14.14.14.1 0.0.0.0 area 0

!

R2:

interface Tunnel12

ip address 192.168.12.2 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.2

tunnel destination 123.123.123.1

!

interface Tunnel23

ip address 192.168.23.2 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.2

tunnel destination 123.123.123.3

!

interface Ethernet0/0

ip address 123.123.123.2 255.255.255.0

half-duplex

no shutdown

!

interface Ethernet0/1

ip address 25.25.25.2 255.255.255.0

half-duplex

no shutdown

!

router ospf 1

router-id 2.2.2.2

log-adjacency-changes

network 25.25.25.2 0.0.0.0 area 0

!

R3:

interface Tunnel13

ip address 192.168.13.3 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.3

tunnel destination 123.123.123.1

!

interface Tunnel23

ip address 192.168.23.3 255.255.255.0

ip ospf 1 area 0

tunnel source 123.123.123.3

tunnel destination 123.123.123.2

!

interface Ethernet0/0

ip address 123.123.123.3 255.255.255.0

half-duplex

no shutdown

!

interface Ethernet0/1

ip address 36.36.36.3 255.255.255.0

half-duplex

no shutdown

!

router ospf 1

router-id 3.3.3.3

log-adjacency-changes

network 36.36.36.3 0.0.0.0 area 0

!

R4:

interface Loopback0

ip address 4.4.4.4 255.255.255.0

!

interface Ethernet0/1

ip address 14.14.14.4 255.255.255.0

half-duplex

no shutdown

router ospf 1

router-id 4.4.4.4

log-adjacency-changes

network 4.4.4.4 0.0.0.0 area 0

network 14.14.14.4 0.0.0.0 area 0

!

R5:

interface Loopback0

ip address 5.5.5.5 255.255.255.0

!

interface Ethernet0/1

ip address 25.25.25.5 255.255.255.0

half-duplex

no shutdown

router ospf 1

router-id 5.5.5.5

log-adjacency-changes

network 5.5.5.5 0.0.0.0 area 0

network 25.25.25.5 0.0.0.0 area 0

!

R6:

interface Loopback0

ip address 6.6.6.6 255.255.255.0

!

interface Ethernet0/1

ip address 36.36.36.6 255.255.255.0

half-duplex

no shutdown

router ospf 1

router-id 6.6.6.6

log-adjacency-changes

network 6.6.6.6 0.0.0.0 area 0

network 36.36.36.6 0.0.0.0 area 0

!

 

转载于:https://my.oschina.net/jinhengyu/blog/1571974

你可能感兴趣的文章
Linux用户管理
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
python之递归
查看>>
配置DNS域名解析服务器
查看>>
QQ电脑管家解决电脑断网的办法
查看>>
JSP自定义标签
查看>>
简洁的快速排序算法
查看>>
【Python之旅】第二篇(三):基于列表处理的购物清单程序
查看>>
小故事大人生哲理
查看>>
监控之美--prometheus配置文件动态管理
查看>>
404什么意思,这里有很全的http/FTP状态码
查看>>
负载均衡下,WEB集群session管理
查看>>
CSS属性简写汇总
查看>>
css样式表---1
查看>>
centos 5.5 64位系统安装opentsdb
查看>>
DELL服务器PowerEdge系列部署Windows Server操作系统(官荐)
查看>>
StoryBoard配置
查看>>
【业务DBA手记八】SQL_MODE详解
查看>>