单臂路由技术

author:leadlife

data:2022/8/29

概念:只使用一个物理接口,承载两个 vlan 之间的信息,链路为干道链路,trunk

单臂路由,只可以使用在 百兆以上的 物理以太网接口

0x01 子接口

int f0/0.10  对应 vlan10
int f0/0.20  对应 vlan20

0xEnd 配置命令

1:进入物理接口,并开启 no shutdown
2:通过链路为 干道 trunk 链路,所以配置 dot1Q 封装并加上 vlan ID
3:配置网关,同时开启子接口 no shutdown

详细配置如下:

​
GW(config)#int f0/0
GW(config-if)#no shutdown 
​
GW(config)#int f0/0.10
GW(config-subif)#encapsulation dot1Q 10
GW(config-subif)#ip address 192.168.1.254 255.255.255.0
GW(config-subif)#no shutdown 
GW(config-subif)#exit
​
GW(config)#int f0/0.20
GW(config-subif)#encapsulation dot1Q 20
GW(config-subif)#ip address 192.168.2.254 255.255.255.0
GW(config-subif)#no shutdown 
GW(config-subif)#exit
​
​
​
GW(config)#end
​
GW#show ip route 
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
​
Gateway of last resort is not set
​
C    192.168.1.0/24 is directly connected, FastEthernet0/0.10
C    192.168.2.0/24 is directly connected, FastEthernet0/0.20
​
GW#show ip int b 
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES unset  up                    up      
FastEthernet0/0.10         192.168.1.254   YES manual up                    up      
FastEthernet0/0.20         192.168.2.254   YES manual up 

0xEnd 单臂路由缺点

我们分析单臂路由的流量

1:流量从 PC 机处,先去找网关

2:流量从 三层GW 返回,寻找 vlan 20

可以看到,流量数据是转了一个圈回来的,占用带宽过多,使得链路负载过大

End

文章作者: Leadlife

文章链接: Leadlife

版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Leadlife

微信公众号:欢迎关注公众号,收到最新的博客文集 LeadlifeSec

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LeadlifeSec0x

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值