首页 > 其他分享 >VLAN间路由

VLAN间路由

时间:2023-07-18 11:57:06浏览次数:27  
标签:f0 R1 ip VLAN subif interface config 路由

VLAN间路由

  1. 每个路由器接口对应一个VLAN
    例6-1 配置每个路由器接口对应一个VLAN

    R1# configure terminal
    R1(config)# interface f0/0
    R1(config-if)# ip address 172.17.10.1 255.255.255.0
    R1(config-if)# no shutdown
    R1(config-if)# interface f0/1
    R1(config-if)# ip address 172.17.30.1 255.255.255.0
    R1(config-if)# no shutdown
    

    例6-2 查看路由表
    R1# show ip route

  2. 单臂路由器
    例6-3 配置子接口

    R1# configure terminal
    R1(config)# interface f0/0.10
    R1(config-subif)# encapsulation dot1q 10
    R1(config-subif)# ip address 172.17.10.1 255.255.255.0
    R1(config-subif)# interface f0/0.30
    R1(config-subif)# encapsulation dot1q 30
    R1(config-subif)# ip address 172.17.30.1 255.255.255.0
    R1(config-subif)# interface f0/0
    R1(config-if)# no shutdown
    
  3. 实际配置单臂路由器VLAN间路由
    例6-9 配置单臂路由器:交换机

    S1# configure terminal
    S1(config)# vlan 10
    S1(config-vlan)# vlan 30
    S1(config-vlan)# interface f0/5
    S1(config-if)# switchport mode trunk
    S1(config-if)# end
    S1# copy running-config startup-config
    

    例6-10 配置单臂路由器

    R1# configure terminal
    R1(config)# interface f0/0.10
    R1(config-subif)# encapsulation dot1q 10
    R1(config-subif)# ip address 172.17.10.1 255.255.255.0
    R1(config-subif)# interface f0/0.30
    R1(config-subif)# encapsulation dot1q 30
    R1(config-subif)# ip address 172.17.30.1 255.255.255.0
    R1(config-subif)# interface f0/0
    R1(config-if)# no shutdown
    

标签:f0,R1,ip,VLAN,subif,interface,config,路由
From: https://www.cnblogs.com/evan-whc/p/17562500.html

相关文章

  • 第2章 静态路由
    第2章静态路由等价负载均衡:当路由器有多条到达目的网络的路径,并且这些路径的度量值(跳数、带宽等)(即所谓的等开销度量),路由器将进行等价负载均衡。启用debugiprouting命令调试R2#debugiprouting关闭debugR2#undebugall添加直连路由:R2(config)#intfa0/0R2(config-i......
  • 【6.0】Django框架之路由层
    【一】路由匹配#路由匹配path('test',views.test),path('testadd',views.testadd),无法跳转到testaddurl方法第一个参数是正则表达式只要第一个参数正则表达式能够匹配到内容,就会立刻停止匹配,执行视图函数#路由匹配path('test/',views.test),path('testadd......
  • 静态vlan的划分
    静态vlan的划分1,toupu图2,配置id与子网掩码2.1,pc,server的ip与子网配置pc5pc6pc7pc8server1server23,vlan的静态划分1,vlan20的划分1.1,将pc5划分到vlan201.2,将pc6划分到vlan201.3,交换机与交换机的划分SW3SW21.4,见过server划分到vlan204,ping通pc5,这......
  • Vue路由跳转时携带参数
    在方法中使用this.$router.push方法进路由跳转时,需要携带参数,可以使用上下文参数,这样携带的话参数会一直存在,具体携带方式如下 在跳转路径下,添加state对象属性,属性名是固定的,对象中填入自己需要传递的参数,ps:对象需要转化为字符串,不然传递不过去,JSON。stringify方法进行字符串......
  • ikuai 路由器万能密码
    title="登录爱快流控路由"用户名"or""=""or""="密码无,直接点击登录......
  • IIS部署createWebHistory路由模式的Vue项目
    接口使用NetCore,前端使用Vue3.+网站部署目录如下api(虚拟应用程序)webindex.html需要在服务器上按照URLRewrite下载地址:https://www.iis.net/downloads/microsoft/url-rewrite安装后在网站根目录下创建“web.config”文件,内容如下<?xmlversion="1.0"encoding="UTF-8"?......
  • 助教工作总结(2022下路由交换技术上)
    一、助教工作的具体职责和任务1.线上线下给同学解答问题2.给老师布置的作业做一份尽可能标准且好理解的答案文档给同学们参考由于我大一提前学完了这门课程,所以作为刚学完且同班的同学,我更能体会到入门路由交换技术的疑难点。由于这门课的实验作业比较多,为了让......
  • 定义路由
    constroutes=(fastify,options,done)=>{    fastify.post('/login',async(request,reply)=>{      return'ok'    })        fastify.get('/getBooks',async(request,reply)=>{    ......
  • VLAN通信
    VLAN之间通信再次提及,vlan是虚拟局域网,用于分隔广播域,解决广播风暴。但是vlan之间无法直接通信。所有我们要用三层交换、单臂路由来实现vlan之间的通信。单臂路由实现不同VLAN通信链路类型交换机连接主机的端口为access链路交换机连接路由器的端口为Trunk链路子接口......
  • 如何解决使用 router.push 跳转路由第二次之后页面就不会刷新了
    router.push({name:"monitor",query:{deviceid:"1676156672197922816",//设备IDisOpen:"true",//是否跳转事件date:newDate().getTime()//解决第二次使用push跳转路由页面不刷新}})在传递参数的时候加上 date:......