综合实验互通

这篇博客详细描述了如何配置交换机(sys sw1, sys sw2, sys sw3)和路由器(sys r1, sys r2, sys r3, sys r4)以实现不同VLAN间的通信和网络互联。通过配置接口IP地址、VLAN、OSPF路由协议、静态路由、DHCP服务以及启用远程访问,确保了设备间的网络连接。此外,还设置了访问控制列表(ACL)以允许特定子网的流量通过。" 127589935,13903852,Vue响应式原理解析,"['Vue.js', '前端开发', 'javascript']
摘要由CSDN通过智能技术生成

在这里插入图片描述
sys
sys r1
int g0/0/0
ip add 192.168.12.1 24
int lo 99
ip add 192.168.99.100 32
ospf 1 router-id 1.1.1.1
default-route-ad
area 0
net 192.168.12.0 0.0.0.255
net 192.168.99.100 0.0.0.0
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15
ip route-s 0.0.0.0 0 12.0.0.2

sys
sys sw1
dhcp enable
vlan batch 10 20 30 40 99
int g0/0/1
p l t
p t a v 10 20 30 40 99
int g0/0/3
p l t
p t a v 10 20 30 40 99

int vlanif 10
ip add 192.168.10.254 24
dhcp sel int
int vlanif 20
ip add 192.168.20.254 24
dhcp sel int
int vlanif 30
ip add 192.168.30.254 24
dhcp sel int
int vlanif 40
ip add 192.168.40.254 24
dhcp sel int
int vlanif 99
ip add 192.168.99.1 24
stp pri 4096
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15

vlan 12
int g0/0/2
p l a
p d v 12
int vlanif12
ip add 192.168.12.2 24
ospf 1 router-id 2.2.2.2
area 0
net 192.168.12.0 0.0.0.255
net 192.168.10.0 0.0.0.255
net 192.168.20.0 0.0.0.255
net 192.168.30.0 0.0.0.255
net 192.168.40.0 0.0.0.255
net 192.168.99.0 0.0.0.255

sys
sys sw2
vlan batch 10 20 30 40 99
int e0/0/1
p l a
p d v 10
int e0/0/2
p l a
p d v 20
int e0/0/3
p l t
p t a v 10 20 30 40 99
int e0/0/4
p l t
p t a v 10 20 30 40 99
int vlanif 99
ip add 192.168.99.2 24
ip route-s 0.0.0.0 0 192.168.99.1
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15

sys
sys sw3
vlan batch 10 20 30 40 99
int e0/0/3
p l a
p d v 30
int e0/0/4
p l a
p d v 40
int e0/0/1
p l t
p t a v 10 20 30 40 99
int e0/0/2
p l t
p t a v 10 20 30 40 99
int vlanif 99
ip add 192.168.99.3 24
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15

ip route-s 0.0.0.0 12.0.0.2
acl 2000
rule permit so 192.168.10.0 0.0.0.255
rule permit so 192.168.20.0 0.0.0.255
rule permit so 192.168.30.0 0.0.0.255
rule permit so 192.168.30.0 0.0.0.255
int s4/0/0
ip add 12.0.0.1 24
link-protocol ppp
ppp authen chap
ppp chap user r2
ppp chap pass ci love
nat outbound 2000
aaa
local-user r1 pass ci love
local-user r1 servi ppp

sys
sys r2
int s4/0/0
ip add 12.0.0.2 24
link-protocol ppp
ppp authen chap
ppp chap user r1
ppp chap pass ci love
aaa
local-user r2 pass ci love
local-user r2 servi ppp
int g0/0/0
ip add 23.0.0.2 24
int g0/0/1
ip add 24.0.0.2 24
ospf 2 router-id 2.2.2.2
area 0
net 12.0.0.0 0.0.0.255
net 23.0.0.0 0.0.0.255
net 24.0.0.0 0.0.0.255

sys
sys r3
int g0/0/0
ip add 23.0.0.3 24
int g0/0/1
ip add 34.0.0.3 24
int g0/0/2
ip add 3.0.0.254 24
ospf 2 router-id 3.3.3.3
area 0
net 34.0.0.0 0.0.0.255
net 23.0.0.0 0.0.0.255
ner 3.0.0.0 0.0.0.255

sys
sys r4
int g0/0/0
ip add 24.0.0.3 24
int g0/0/1
ip add 34.0.0.3 24
int g0/0/2
ip add 4.0.0.254 24
ospf 2 router-id 4.4.4.4
area 0
net 34.0.0.0 0.0.0.255
net 23.0.0.0 0.0.0.255
ner 4.0.0.0 0.0.0.255

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值