首页 > 其他分享 >案例1:路由交换无冗余线路设计1

案例1:路由交换无冗余线路设计1

时间:2023-06-13 15:36:04浏览次数:41  
标签:10.0 cfg vlan 案例 冗余 0.0 interface port 路由

JR-SW1:

undo terminal monitor

system-view

sysname JR-SW1

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

vlan batch 11 to 12 100 200

 

interface Ethernet0/0/1

 port link-type access

 port default vlan 11

 

interface Ethernet0/0/2

 port link-type access

 port default vlan 12

 

interface GigabitEthernet0/0/1

 port link-type trunk

port trunk allow-pass vlan 11 to 12 100 200

 

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk pvid vlan 200

 port trunk allow-pass vlan 11 to 12 200

JR-SW2:

undo terminal monitor

system-view

sysname JR-SW2

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

vlan batch 13 to 14 100 200

 

interface Ethernet0/0/1

 port link-type access

 port default vlan 13

 

interface Ethernet0/0/2

 port link-type access

 port default vlan 14

 

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 13 to 14 100 200

 

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk pvid vlan 200

 port trunk allow-pass vlan 11 to 12 200

JR-SW3:

undo terminal monitor

system-view

sysname JR-SW3

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

vlan batch 15 to 16 100 200

 

interface Ethernet0/0/1

 port link-type access

 port default vlan 15

 

interface Ethernet0/0/2

 port link-type access

 port default vlan 16

 

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 15 to 16 100 200

 

interface GigabitEthernet0/0/2

 port link-type trunk

port trunk pvid vlan 200

 port trunk allow-pass vlan 15 to 16 200

JR_SW4:

undo terminal monitor

system-view

sysname JR_SW4

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

vlan batch 17 to 18 100 200

 

interface Ethernet0/0/1

 port link-type access

 port default vlan 17

 

interface Ethernet0/0/2

 port link-type access

 port default vlan 18

 

interface GigabitEthernet0/0/1

 port link-type trunk

port trunk allow-pass vlan 17 to 18 100 200

 

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk pvid vlan 200

 port trunk allow-pass vlan 11 to 12 200

HJ_SW1:

undo terminal monitor

system-view

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

sysname HJ_SW1

 

vlan batch 11 to 12 100 200

dhcp enable

 

interface Vlanif11

 ip address 192.168.64.254 255.255.255.0

 

interface Vlanif12

 ip address 192.168.65.254 255.255.255.0

 

interface Vlanif100

 ip address 10.0.1.2 255.255.255.252

 

interface Vlanif200

 ip address 10.0.10.14 255.255.255.240

dhcp select relay

 dhcp relay server-ip 10.0.10.253

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 100

 

interface GigabitEthernet0/0/24

 port link-type trunk

 port trunk allow-pass vlan 11 to 12 100 200

 

ospf 1

 area 0.0.0.1

  network 192.168.64.0 0.0.0.255

  network 192.168.65.0 0.0.0.255

  network 10.0.1.0 0.0.0.3

  network 10.0.10.0 0.0.0.15

HJ_SW2:

undo terminal monitor

system-view

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

 

sysname HJ-SW2

 

vlan batch 13 to 14 100 200

dhcp enable

 

interface Vlanif13

 ip address 192.168.66.254 255.255.255.0

 

interface Vlanif14

 ip address 192.168.67.254 255.255.255.0

 

interface Vlanif100

 ip address 10.0.2.2 255.255.255.252

 

interface Vlanif200

 ip address 10.0.10.30 255.255.255.240

dhcp select relay

 dhcp relay server-ip 10.0.10.253

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 100

 

interface GigabitEthernet0/0/24

 port link-type trunk

 port trunk allow-pass vlan 13 to 14 100 200

 

ospf 1

 area 0.0.0.1

  network 192.168.66.0 0.0.0.255

  network 192.168.67.0 0.0.0.255

  network 10.0.2.0 0.0.0.3

  network 10.0.10.16 0.0.0.15

HJ_SW3:

undo terminal monitor

system-view

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

sysname HJ_SW3

 

undo info-center enable

 

vlan batch 15 to 16 100 200

dhcp enable

 

interface Vlanif15

 ip address 192.168.68.254 255.255.255.0

 

interface Vlanif16

 ip address 192.168.69.254 255.255.255.0

#

interface Vlanif100

 ip address 10.0.3.2 255.255.255.252

#

interface Vlanif200

 ip address 10.0.10.46 255.255.255.240

 dhcp select relay

 dhcp relay server-ip 10.0.10.253

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 100

 

interface GigabitEthernet0/0/24

 port link-type trunk

 port trunk allow-pass vlan 15 to 16 200

 

ospf 1

 area 0.0.0.2

  network 10.0.10.32 0.0.0.15

  network 10.0.3.0 0.0.0.3

  network 192.168.68.0 0.0.0.255

  network 192.168.69.0 0.0.0.255

HJ_SW4:

undo terminal monitor

system-view

 

user-interface con 0

 idle-timeout 0 0

 quit

 

undo info-center enable

sysname HJ_SW4

 

undo info-center enable

 

vlan batch 17 to 18 100 200

dhcp enable

 

interface Vlanif17

 ip address 192.168.70.254 255.255.255.0

 

interface Vlanif18

 ip address 192.168.71.254 255.255.255.0

 

interface Vlanif100

 ip address 10.0.4.2 255.255.255.252

 

interface Vlanif200

 ip address 10.0.10.62 255.255.255.240

 dhcp select relay

 dhcp relay server-ip 10.0.10.253

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 100

 

interface GigabitEthernet0/0/24

 port link-type trunk

 port trunk allow-pass vlan 17 to 18 200

 

ospf 1

 area 0.0.0.2

  network 10.0.10.48 0.0.0.15

  network 192.168.70.0 0.0.0.255

  network 192.168.71.0 0.0.0.255

  network 10.0.4.0 0.0.0.3

RS-5:

undo terminal monitor

system-view

user-interface con 0

 idle-timeout 0 0

 quit

 

sysname RS-5

 

undo info-center enable

 

vlan batch 100 200

interface Vlanif100

 ip address 10.0.5.2 255.255.255.252

 

interface Vlanif200

 ip address 10.0.10.254 255.255.255.252

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 100

 

interface GigabitEthernet0/0/3

 port link-type access

 port default vlan 200

 

ospf 1

 area 0.0.0.3

  network 10.0.10.252 0.0.0.3

  network 10.0.5.0 0.0.0.3

R1:

 

sysname R1

interface GigabitEthernet0/0/0

 ip address 10.0.0.1 255.255.255.252

 

interface GigabitEthernet0/0/1

 ip address 10.0.0.9 255.255.255.252

 

interface GigabitEthernet0/0/2

 ip address 10.0.1.1 255.255.255.252

 

interface GigabitEthernet1/0/0

 ip address 10.0.2.1 255.255.255.252

 

ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.0.0.3

  network 10.0.0.8 0.0.0.3

 area 0.0.0.1

  network 10.0.1.0 0.0.0.3

  network 10.0.2.0 0.0.0.3

R2:

sysname R2

undo info-center enable

 

interface GigabitEthernet0/0/0

 ip address 10.0.0.2 255.255.255.252

 

interface GigabitEthernet0/0/1

 ip address 10.0.0.6 255.255.255.252

 

interface GigabitEthernet0/0/2

 ip address 10.0.5.1 255.255.255.252

 

ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.0.0.3

  network 10.0.0.4 0.0.0.3

 area 0.0.0.3

  network 10.0.5.0 0.0.0.3

R3:

sysname R3

undo info-center enable

 

interface GigabitEthernet0/0/0

 ip address 10.0.0.5 255.255.255.252

 

interface GigabitEthernet0/0/1

 ip address 10.0.0.10 255.255.255.252

 

interface GigabitEthernet0/0/2

 ip address 10.0.3.1 255.255.255.252

 

interface GigabitEthernet1/0/0

 ip address 10.0.4.1 255.255.255.252

 

ospf 1

 area 0.0.0.0

  network 10.0.0.4 0.0.0.3

  network 10.0.0.8 0.0.0.3

 area 0.0.0.2

  network 10.0.3.0 0.0.0.3

  network 10.0.4.0 0.0.0.3

AC1:

sysname AC-1

undo info-center enable

user-interface con 0

 idle-timeout 0 0

 

vlan batch 100 200

dhcp enable

 

interface Vlanif100

 ip address 10.0.0.2 255.255.255.252

 dhcp select global

 

interface Vlanif200

 ip address 10.0.10.253 255.255.255.252

 dhcp select global

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 200

 

 

 

 

ip pool pool-rs-1

 gateway-list 10.0.10.14

 network 10.0.10.0 mask 28

 dns-list 8.8.8.8 114.114.114.114

 option 43 sub-option 3 ascii 10.0.10.253

 quit

 

ip pool pool-rs-2

 gateway-list 10.0.10.30

 network 10.0.10.16 mask 28

 dns-list 8.8.8.8 114.114.114.114

 option 43 sub-option 3 ascii 10.0.10.253

 quit

 

ip pool pool-rs-3

 gateway-list 10.0.10.46

 network 10.0.10.32 mask 28

 dns-list 8.8.8.8 114.114.114.114

 option 43 sub-option 3 ascii 10.0.10.253

 quit

 

ip pool pool-rs-4

 gateway-list 10.0.10.62

 network 10.0.10.48 mask 28

 dns-list 8.8.8.8 114.114.114.114

 option 43 sub-option 3 ascii 10.0.10.253

 quit

 

ip route-static 10.0.10.0 26 10.0.10.254

capwap source interface vlanif 200

 

进入wlan视图,创建名称为domain-cfg-1的域管理模版,配置国家代码cn

wlan

 regulatory-domain-profile name domain-cfg-1

 country-code cn

 quit

 

绑定mac地址和模版

ap auth-mode mac-auth

ap-id 1 ap-mac 00E0-FCDC-0EA0

ap-name AP-1

regulatory-domain-profile domain-cfg-1

 

ap-id 2 ap-mac 00E0-FC3C-6430

ap-name AP-2

regulatory-domain-profile domain-cfg-1

 

ap-id 3 ap-mac 00E0-FCC3-51E0

ap-name AP-3

regulatory-domain-profile domain-cfg-1

 

ap-id 4 ap-mac 00E0-FC50-07E0

ap-name AP-4

regulatory-domain-profile domain-cfg-1

 

dis ap all

--------------------------------------------------------------------------------

ID   MAC            Name Group   IP         Type            State STA Uptime

--------------------------------------------------------------------------------

1    00e0-fcdc-0ea0 AP-1 default 10.0.10.12 AP3030DN        nor   0   6M:30S

2    00e0-fc3c-6430 AP-2 default 10.0.10.19 AP3030DN        nor   0   1M:45S

3    00e0-fcc3-51e0 AP-3 default 10.0.10.45 AP3030DN        nor   0   1M:5S

4    00e0-fc50-07e0 AP-4 default 10.0.10.57 AP3030DN        nor   0   9S

 

配置业务参数:

创建安全模版sec-cfg-1,并配置安全策略

wlan

 regulatory-domain-profile name domain-cfg-1

 country-code cn

 quit

 

security-profile name sec-cfg-1

 security wpa-wpa2 psk pass-phrase abcd1111 aes

 quit

 

ssid-profile name ssid-cfg-1

 ssid wifi-1

 quit

 

ssid-profile name ssid-cfg-2

 ssid wifi-2

 quit

创建模版vap-cfg-1模版对应2.4g

vap-profile name vap-cfg-1

 forward-mode direct-forward

 service-vlan vlan-id 11

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-1

 quit

 

 

创建模版vap-cfg-2模版对应5g

vap-profile name vap-cfg-2

 forward-mode direct-forward

 service-vlan vlan-id 12

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-2

 quit

 

 

根据wlan规划,各AP创建vap模版

ap-1、vap-cfg-1-1、vapcfg-1-2

ap-2、vap-cfg-2-1、vapcfg-2-2

ap-3、vap-cfg-3-1、vapcfg-3-2

ap-4、vap-cfg-4-1、vapcfg-4-2

 

vap-profile name vap-cfg-1-1

 forward-mode direct-forward

 service-vlan vlan-id 11

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-1

 quit

 

vap-profile name vap-cfg-1-2

 forward-mode direct-forward

 service-vlan vlan-id 12

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-2

 quit

 

vap-profile name vap-cfg-2-1

 forward-mode direct-forward

 service-vlan vlan-id 13

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-1

 quit

 

vap-profile name vap-cfg-2-2

 forward-mode direct-forward

 service-vlan vlan-id 14

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-2

 quit

 

vap-profile name vap-cfg-3-1

 forward-mode direct-forward

 service-vlan vlan-id 15

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-1

 quit

 

vap-profile name vap-cfg-3-2

 forward-mode direct-forward

 service-vlan vlan-id 16

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-2

 quit

 

vap-profile name vap-cfg-4-1

 forward-mode direct-forward

 service-vlan vlan-id 17

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-1

 quit

 

vap-profile name vap-cfg-4-2

 forward-mode direct-forward

 service-vlan vlan-id 18

 security-profile sec-cfg-1

 ssid-profile ssid-cfg-2

 quit

 

在无线控制器AC-1上,通过AP组ap-group-cfg-1配置组中的AP(AP-1~AP-4),配置射频0引用vap-cfg-1模版,射频1引用vap-cfg-2模版

 

ap-group name ap-group-cfg-1

 vap-profile vap-cfg-1 wlan 1 radio 0

 vap-profile vap-cfg-2 wlan 1 radio 1

 

标签:10.0,cfg,vlan,案例,冗余,0.0,interface,port,路由
From: https://www.cnblogs.com/jdbinfo/p/17477645.html

相关文章

  • Vue路由的基本概念
    Vue路由的基本概念Vue路由是一个非常重要的概念,它允许你在应用程序中创建多个页面并在这些页面之间进行导航。在Vue中,路由是通过VueRouter实现的。本文将介绍VueRouter的基本概念和用法,并对路由配置进行详细解析。基础认知/路由路由是指应用程序中的一个页面。在Vue......
  • 电子行业 K 公司对接 Nexperia EDI 项目案例
    项目背景Nexperia是一家全球领先的半导体制造商,专注于提供高性能、高可靠性和创新性的半导体解决方案。公司成立于2017年,是前飞思卡尔半导体业务的一部分,并在全球范围内拥有多个设计、研发和生产基地。Nexperia使用EDI(电子数据交换)来实现高效的业务合作和供应链管理。通过ED......
  • 枚举的方法、枚举案例 - 状态机、组织枚举、策略枚举、枚举工具类 - EnumSet 和 EnumM
    引入编写季节类(Season),该类只有四个对象(spring,summer,autumn,winter)概念枚举(enum)全称为enumeration,是JDK1.5中引入的新特性。语法publicenumColor{//默认添加publicstaticfinalRED,GREEN,BLUE;}本质尽管枚举看起来像是一种新的数据类型,实际上,枚举就是一种受限制......
  • 二、Gin路由
    二、Gin路由2.1、路由方法路由系统支持任意方式的请求,如下的的方法用来提供对应的接受请求:func(group*RouterGroup)DELETE(relativePathstring,handlers...HandlerFunc)IRoutesfunc(group*RouterGroup)GET(relativePathstring,handlers...HandlerFunc)IRoutesf......
  • 华为配置案例1:配置远程登录交换机
    1.使用Telnet访问华为设备(1)配置telnet登录真机上需要先启用telnet服务[AR1]telnetserverenable1password认证AR1配置telnet[AR1]user-interfacevty04[AR1-ui-vty0-4]authentication-modepasswordPleaseconfiguretheloginpassword(maximumlength16):6[AR1-ui-vty0-4]......
  • 文件下载案例
    文件下载简单案例packagecom.example.demo.controller;importjava.io.*;importjavax.servlet.http.HttpServletResponse;importorg.springframework.stereotype.Controller;importorg.springframework.web.bind.annotation.GetMapping;importorg.springframework.we......
  • vuex使用,Router的使用,多级路由
    vuex使用:vuex:状态管理器--->存数据(变量)的地方,所有组件都可以操作1.概念在Vue中实现集中式状态(数据)管理的一个Vue插件,对vue应用中多个组件的共享状态进行集中式的管理(读/写),也是一种组件间通信的方式,且适用于任意组件间通信。基本使用:1.在Home......
  • 登录案例,scoped,ref属性,props其他,混入mixin,插件,饿了么UI
    0解析一下vue项目#1为什么浏览器中访问某个地址,会显示某个页面组件 -根组件:App.vue必须是<template><divid="app"><router-view></router-view></div> </template> -1配置路由 router----》index.j......
  • 这个618,网工最值得买的路由器/交换机设备
    大家好,我是老杨。有小友最近扎堆冒出来问我,企业要采购路由器/交换机,买啥牌子好,买啥型号好。又或者是,家里要买家用的路由器/电脑,啥性价比最高?我真的很想吐槽一句,你们再问下去,我就转型成带货博主算了和编辑部商量了一下,为了满足你的愿望,勉强整出了一篇小小的安利贴。多买多风险,买买需......
  • 爬虫案例分享
    案例importrequests#如果报红,电脑控制台执行:python-mpipinstallrequests,下载即可frombs4importBeautifulSouptitle=[]#所有文章标题#因为需要爬取的数据,不单单存在一个页面,所以需要分析目标网站的URL规律,构造出每一页的URL,并逐个爬取forpageinrange(4):#目......