锐捷ONC的使用

本文详细描述了在SDN环境中,如何使用ONC平台进行设备配置,包括SNMP、SSH和OpenFlow的设置,以及如何通过ONC实现PC1与PC2之间的VLAN隔离,确保PC1无法ping通PC2。操作步骤从被纳管设备配置到ONC平台的网络设置和流表下发都有所涉及。
摘要由CSDN通过智能技术生成

拓扑

image-20230811170928241

环境说明

  • SDN控制连接S3的G0/10口

  • PC1接入VLAN30网段

  • PC2连接JL无线网络

  • 最终效果需要做到PC1无法ping通PC2

ONC服务器信息

  • url:192.168.65.101:8089/onc

  • 用户和密码:admin:ruijie123

  • ip:192.168.65.101

实验结果

  • PC1无法ping通PC2,其余连通信不影响

操作步骤

  • 检查被纳管设备和ONC平台的连通信

  • 被纳管设备开启SNMP

  • 被纳管设备开启SSH

  • 被纳管设备开启openflow

  • ONC平台网络设置

  • ONC平台设备管理

  • ONC平台下发流表

操作演示

被纳管设备配置演示
SNMP
S6(config)#snmp-server community Public rw
SSH
S6(config)#enable service ssh-server 
S6(config)#ip ssh version 2
S6(config)#username admin password ruijie123
S6(config)#line vty 0 4
S6(config-line)#login local
S6(config-line)#transport input ssh 
S6(config-line)#exit
S6(config)#enable password ruijie123
S6(config)#crypto key generate dsa 
Choose the size of the rsa key modulus in the range of 512 to 2048
and the size of the dsa key modulus in the range of 360 to 2048 for your
Signature Keys. Choosing a key modulus greater than 512 may take
a few minutes.
​
How many bits in the modulus [512]:
% Generating 512 bit DSA keys ...[ok]
openflow
S6(config)#of controller-ip 192.168.65.101 interface g0/23
S6(config)#of source-ip 192.168.65.3 

ONC平台操作演示
设计-->网络设置

image-20230811181958047

image-20230811182016797

image-20230811182036456

image-20230811182056679

image-20230811182129179

image-20230811182141223

image-20230811182152909

部署-->设备管理

image-20230811181841715

image-20230811182230116

image-20230811182243345

image-20230811182314783

image-20230811182331370

稍等一会......

image-20230811182813992

下发流表

image-20230811183316491

image-20230811183326477

image-20230811183336820

image-20230811190041096

image-20230811190109936

image-20230811190133020

image-20230811190146181

image-20230811190156197

image-20230811190206994

image-20230811190214527

验证

下发流表之前能够顺利ping通,下发流表后阻止了

image-20230811183608157

image-20230811183705783

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值