企业网三层架构实验

实验要求

实验拓扑

 

实验步骤

配置

[sw1]port-group group-member Ethernet 0/0/4 Ethernet 0/0/5 Eth-Trunk 0
[sw1-port-group]port link-type trunk
[sw1-Ethernet0/0/4]port link-type trunk
[sw1-Ethernet0/0/5]port link-type trunk
[sw1-Eth-Trunk0]port link-type trunk
[sw1-port-group]port trunk allow-pass vlan 2
[sw1-Ethernet0/0/4]port trunk allow-pass vlan 2
[sw1-Ethernet0/0/5]port trunk allow-pass vlan 2
[sw1-Eth-Trunk0]port trunk allow-pass vlan 2

[sw2]port-group  group-member Ethernet 0/0/4 Ethernet 0/0/5 Eth-Trunk 0
[sw2-port-group]port link-type trunk
[sw2-Ethernet0/0/4]port link-type trunk
[sw2-Ethernet0/0/5]port link-type trunk
[sw2-Eth-Trunk0]port link-type trunk
[sw2-port-group]port trunk allow-pass vlan 2
[sw2-Ethernet0/0/4]port trunk allow-pass vlan 2
[sw2-Ethernet0/0/5]port trunk allow-pass vlan 2
[sw2-Eth-Trunk0]port trunk allow-pass vlan 2

[sw3]port-group group-member Ethernet 0/0/1 Ethernet 0/0/2
[sw3-port-group]port link-type trunk
[sw3-Ethernet0/0/1]port link-type trunk
[sw3-Ethernet0/0/2]port link-type trunk
[sw3-port-group]port trunk allow-pass vlan 2
[sw3-Ethernet0/0/1]port trunk allow-pass vlan 2
[sw3-Ethernet0/0/2]port trunk allow-pass vlan 2

[ sw4-port-group ]port link-type trunk
[ sw4-Etherneto/0/1]port link-type trunk
[ sw4-Etherneto/0/2]port link-type trunk
[ sw4-port-group]port trunk allow-pass vlan 2
[ sw4-Etherneto/0/1]port trunk allow-pass vlan 2
[ sw4-Ethernet0/0/2]port trunk allow-pass vlan 2

配置生成树

SW1

stp region-configuration
region-name a
instance 1 vlan 1
instance 2 vlan 2
active region-configuration

stp instance 1 root primary 
stp instance 2 root secondary
SW2

stp region-configuration
region-name a
instance 1 vlan 1
instance 2 vlan 2
active region-configuration

stp instance 2 root primary 
stp instance 1 root secondary

SW3

stp region-configuration

region-name a

instance 1 vlan 1

instance 2 vlan 2

active region-configuration

SW4

stp region-configuration

region-name a

instance 1 vlan 1

instance 2 vlan 2

active region-configuration

配置OSPF

[SW1]ospf 1
[SW1-ospf-1]silent-interface all
[SW1-ospf-1]undo silent-interface Ethernet 0/0/1
[SW1-ospf-1]undo silent-interface Eth-Trunk 0
[SW1-ospf-1]undo silent-interface Vlanif 1
[SW1-ospf-1]undo silent-interface Vlanif 100

[SW2]ospf 1
[SW2-ospf-1]silent-interface all
[SW2-ospf-1]undo silent-interface Ethernet 0/0/1
[SW2-ospf-1]undo silent-interface Eth-Trunk 0
[SW2-ospf-1]undo silent-interface Vlanif 100
[SW2-ospf-1]undo silent-interface Vlanif 1

测试

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值