免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 11822 | 回复: 2
打印 上一主题 下一主题

独臂路由器实现VLAN互访,通过NAT访问外网! [复制链接]

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
1 [报告]
发表于 2008-10-20 12:04 |显示全部楼层
LS说的应该也可以实现。哪么就要调整交换机的hybrid端口属性,定义打标和非打标的数据流。

理论是这样,不过还要实际测试。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2008-10-20 14:13 |显示全部楼层
已经实现,方法如下:

路由器采用H3C AR28 交换机CISCO 2950.

不过不知道为什么类似的配置在H3C的3000 交换机上居然没有实现,估计是版本问题。
但是总体的实现思路是没错的。


#
sysname Router
#
acl number 2000
rule 0 permit source 192.168.200.0 0.0.0.255
#
interface Ethernet0/0
ip address 192.168.1.222 255.255.255.0
nat outbound 2000                        
#
interface Ethernet0/0.200
ip address 192.168.200.1 255.255.255.0
vlan-type dot1q vid 200
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 preference 60






!         
interface FastEthernet0/1
switchport access vlan 100
!
interface FastEthernet0/2
switchport access vlan 200
!
interface FastEthernet0/24
switchport trunk native vlan 100
switchport mode trunk
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan200
ip address 192.168.200.2 255.255.255.0
no ip route-cache

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2008-10-20 16:14 |显示全部楼层
经证实在H3C的3026上做如下配置,并且两端静态绑定MAC后也可以通讯。

猜测为H3C的软件BUG,目前已经升级到最新版本仍然无法解决。


#
interface Ethernet0/1
port access vlan 100
#
interface Ethernet0/2
port access vlan 200
#
interface Ethernet0/24
port link-type hybrid
port hybrid vlan 200 tagged fromcpu
port hybrid vlan 1 100 untagged
port hybrid pvid vlan 100
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP