利用单臂路由实现VLAN间路由

简介:

wKioL1elftzD5_nMAADES_UHH_o823.png

R1配置:

interface GigabitEthernet0/0/1.1

 dot1q termination vid 10

 ip address 192.168.1.254 255.255.255.0

 arp broadcast enable

#

interface GigabitEthernet0/0/1.2

 dot1q termination vid 20

 ip address 192.168.2.254 255.255.255.0

 arp broadcast enable

#

interface GigabitEthernet0/0/1.3

 dot1q termination vid 30

 ip address 192.168.3.254 255.255.255.0

 arp broadcast enable


S1配置:

vlan batch 10 20 30


interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/3

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094


S2配置:

vlan batch 10 20


interface Ethernet0/0/1

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/2

 port link-type access

 port default vlan 20


interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094


S3配置:

vlan 30

 description manager


interface Ethernet0/0/1

 port link-type access

 port default vlan 30


interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

(即:port trunk allow-pass vlan all)


PC1、PC2、PC3互ping通

PC1 ping 192.168.1.254通

PC2 ping 192.168.2.254通

PC3 ping 192.168.3.254通


本文转自 是阿杰啊 51CTO博客,原文链接:http://blog.51cto.com/jschinamobile/1835015


相关文章
|
2月前
|
安全 网络虚拟化 网络架构
vlan 单臂路由 三层交换
vlan 单臂路由 三层交换
|
10月前
|
网络虚拟化 网络架构
单臂路由和三层交换
单臂路由和三层交换
67 0
|
数据库 网络虚拟化 网络架构
Cisco-VLAN间路由:SVI+单臂路由(子接口)
Cisco-VLAN间路由:SVI+单臂路由(子接口)
378 0
Cisco-VLAN间路由:SVI+单臂路由(子接口)
|
网络协议 网络架构
H3C_RIP_路由器_动态路由
H3C_RIP_路由器_动态路由
H3C_RIP_路由器_动态路由
|
网络协议 网络虚拟化 网络架构
单臂路由
臂路由技术实现了不同vlan之间进行通信用户与服务器处于不同vlan,如何才能让用户能够访问服务器呢?方案一:使用一根网线,两端分别插在两个vlan下的接口方案二:借助路由器的路由功能实现vlan通信单臂路由:单臂路由技术能让路由器的一根物理接口对应不同vlan数据的实质是把物理接口分成若干个子接口,这些子接口通过封装802.1q标识,以识别不同vlan的TAG标识配置:1) 对交换机运行vlan和trunk配置2) 创建路由子接口: int g0/0/0.103) 给子接口配置IP地址4) 把子接口封装对应vlan的dot 1q标记:dot 1q termination 为了方便管理网络,根
|
网络协议 网络虚拟化 网络架构
单臂路由与VLAN
单臂路由与VLAN
4729 0
|
网络协议 网络虚拟化 网络架构
|
网络虚拟化 数据安全/隐私保护