博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
按照拓扑图使不同VLAN的7台PC互通
阅读量:7119 次
发布时间:2019-06-28

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

一.要求

按照拓扑图使不同VLAN的7台PC互通
二.拓扑图
按照拓扑图使不同VLAN的7台PC互通
三.配置
SWITCH 4
sys
sys s4
vlan 2
int e0/0/1
port link-type access
port default vlan 1
int e0/0/2
port link-type access
port default vlan 2
int e0/0/3
port link-type trunk
port trunk allow-pass vlan 1 2
dis port vlan

SWITCH 5

sys
sys s5
vlan batch 3 4
int e0/0/1
port link-type access
port default vlan 3
int e0/0/2
port link-type access
port default vlan 4
int e0/0/3
port link-type trunk
port trunk allow-pass vlan 3 4
dis port vlan

SWITCH 1

sys
sys s1
vlan batch 1 2 3 4 8
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 1 2
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 3 4
int g0/0/3
port link-type access
port default vlan 8
q
dis port vlan
int vlanif 1
ip addr 192.168.1.2 24
int vlanif 2
ip addr 192.168.2.2 24
dis port vlan
int vlanif 3
ip addr 192.168.3.2 24
int vlanif 4
ip addr 192.168.4.2 24
int vlanif 8
ip addr 192.168.8.2 24
q
ip route-s 0.0.0.0 0.0.0.0 192.168.8.1

r 1

sys
system r1
int g0/0/0
ip addr 192.168.8.1 24
int g0/0/1
ip addr 192.168.9.1 24
q
ip route-s 192.168.1.0 24 192.168.8.2
ip route-s 192.168.2.0 24 192.168.8.2
ip route-s 192.168.3.0 24 192.168.8.2
ip route-s 192.168.4.0 24 192.168.8.2
ip route-s 192.168.5.0 24 192.168.9.3
ip route-s 192.168.6.0 24 192.168.9.2
ip route-s 192.168.7.0 24 192.168.9.2

r 2

sys
sys r2
int g0/0/1
ip addr 192.168.9.3 24
int g0/0/0
ip addr 192.168.5.2 24
q
ip route-s 192.168.1.0 24 192.168.9.1
ip route-s 192.168.2.0 24 192.168.9.1
ip route-s 192.168.3.0 24 192.168.9.1
ip route-s 192.168.4.0 24 192.168.9.1
ip route-s 192.168.6.0 24 192.168.9.2
ip route-s 192.168.7.0 24 192.168.9.2

r 3

sys
sys r3
int g0/0/1
ip addr 192.168.9.2 24
int g0/0/0.1
ip addr 192.168.6.2 24
dot1q termination vid 6
arp broadcast enable
int g0/0/0.2
ip addr 192.168.7.2 24
dot1q termination vid 7
arp broadcast enable
q
ip route-s 192.168.1.0 24 192.168.9.1
ip route-s 192.168.2.0 24 192.168.9.1
ip route-s 192.168.3.0 24 192.168.9.1
ip route-s 192.168.4.0 24 192.168.9.1
ip route-s 192.168.5.0 24 192.168.9.3

SWITCH 7

sys
sys sw7
vlan batch 6 7
int e0/0/3
port link-type trunk
port trunk allow-pass vlan 6 7
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 6
int e0/0/1
port link-type trunk
port trunk allow-pass vlan 7

SWITCH 2

sys
sys sw2
vlan batch 6
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 6
int e0/0/1
port link-type access
port default vlan 6

SWITCH 3

sys
sys sw3
vlan batch 7
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 7
int e0/0/1
port link-type access
port default vlan 7

四.验证

按照拓扑图使不同VLAN的7台PC互通按照拓扑图使不同VLAN的7台PC互通按照拓扑图使不同VLAN的7台PC互通

转载于:https://blog.51cto.com/14162269/2342691

你可能感兴趣的文章
Mondrian and OLAP
查看>>
【音乐分享】Let Me Go
查看>>
java写一个爬虫
查看>>
Drill官网文档翻译六:存储插件的注册
查看>>
poj 1502 单源最短路径
查看>>
CUDNN v3特性
查看>>
为什么C# md5 32位加密算法,密码明文会出现31位
查看>>
怎么通过java去调用并执行shell脚本以及问题总结
查看>>
《iOS面试之道》算法基础学习(上)
查看>>
js定义到执行(转)
查看>>
前端埋点方法解析及优缺点分析
查看>>
笔记:Gitlab-CI部署流程
查看>>
面向对象-day02
查看>>
如果要学习web前端,需要学习什么
查看>>
《编写高质量代码:改善Java程序的151个建议》笔记
查看>>
LeetCode每日一题: 搜索插入位置(No.35)
查看>>
Sublime text2空格替换tab键
查看>>
linux中脚本后台执行的方法
查看>>
Python爬虫入门教程 6-100 蜂鸟网图片爬取之一
查看>>
我的友情链接
查看>>