思科3550交换机能配置tunnel么,怎么配置

2025-02-26 00:21:10
推荐回答(1个)
回答1:

你想配置哪种tunnel,GRE还是ISATAP或是overlay亦或是6to4

如果只是普通的GRE的话,配置如下:
R1(config)#int tunnel 1
R1(config-if)#tunnel source 100.0.0.2
R1(config-if)#tunnel destination 100.0.0.1
R1(config-if)#tunnel mode gre ip ////这条命令可以不打,默认就是GRE,打进去也sh run也看不出来

当然你这个tunnel source和tunnel destination的地址必须是互相能够通信的(也就是说要有路由)要不然tunnel是起不来的

当两边配置都完成后,使用命令show ip int b查看tunnel口的状态:
SW1#sh ip int b
Interface IP-Address OK? Method Status Protocol
Vlan1 100.0.0.1 YES manual up up
........................

Tunnel1 unassigned YES unset up up ////状态双UP就是OK了

当然这只是一个二层的tunnel,如果你要起三层的话,就进入tunnel口然后配置IP地址即可:
SW1(config)#int tunnel 1
SW1(config-if)#ip add 172.16.1.1 255.255.255.0

我用的就是3550的真机做的,所以完全没有问题!!!(此处应有掌声,泥垢( ̄ε(# ̄) Σ)