标签:server pc2 src edit 基础 命令 gif space lease
作业要求:
全网互通
冗余链路、冗余路由、负载均衡
相关配置:
pc1 | 192.168.10.1 | 192.168.10.250(虚拟网关) | vlan 10 |
pc2 | 192.168.20.1 | 192.168.20.250(虚拟网关) | vlan 20 |
pc3 | 192.168.10.2 | 192.168.10.250(虚拟网关) | vlan 10 |
pc4 | 192.168.20.2 | 192.168.20.250(虚拟网关) | vlan 20 |
server1 | 192.168.30.1 | 192.168.30.254 | 无 |
从下往上进行配置:
sw1配置: <sw1>undo terminal monitor <sw1>system-view [sw1]dis stp 可以看出不是根交换机,那就把它改成跟交换机。 [sw1]stp root primary [sw1]dis stp 此时,sw1变成根交换机了 [sw1]vlan batch 10 20 [sw1]port-group group-member g0/0/12 to g0/0/14 [sw1-port-group]port link-type trunk [sw1-GigabitEthernet0/0/12]port link-type trunk [sw1-GigabitEthernet0/0/13]port link-type trunk [sw1-GigabitEthernet0/0/14]port link-type trunk [sw1-port-group]port trunk allow-pass vlan all [sw1-GigabitEthernet0/0/12]port trunk allow-pass vlan all [sw1-GigabitEthernet0/0/13]port trunk allow-pass vlan all [sw1-GigabitEthernet0/0/14]port trunk allow-pass vlan all [sw1-port-group]q [sw1]stp region-configuration [sw1-mst-region]instance 1 vlan 10 [sw1-mst-region]instance 2 vlan 20 [sw1-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. [sw1-mst-region]q [sw1]port-group group-member g0/0/1 to g0/0/3 [sw1-port-group]port link-type access [sw1-GigabitEthernet0/0/1]port link-type access [sw1-GigabitEthernet0/0/2]port link-type access [sw1-GigabitEthernet0/0/3]port link-type access [sw1-port-group]port default vlan 10 [sw1-GigabitEthernet0/0/1]port default vlan 10 [sw1-GigabitEthernet0/0/2]port default vlan 10 [sw1-GigabitEthernet0/0/3]port default vlan 10 [sw1-port-group]q |
sw3配置: [sw3]vlan batch 10 20 [sw3]interface e0/0/1 [sw3-Ethernet0/0/1]port link-type access [sw3-Ethernet0/0/1]port default vlan 10 [sw3-Ethernet0/0/1]q [sw3]port-group group-member e0/0/11 e0/0/13 [sw3-port-group]port link-type trunk [sw3-Ethernet0/0/11]port link-type trunk [sw3-Ethernet0/0/13]port link-type trunk [sw3-port-group]port trunk allow-pass vlan all [sw3-Ethernet0/0/11]port trunk allow-pass vlan all [sw3-Ethernet0/0/13]port trunk allow-pass vlan all [sw3-port-group]q [sw3]stp region-configuration [sw3-mst-region]instance 1 vlan 10 [sw3-mst-region]instance 2 vlan 20 [sw3-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. [sw3-mst-region]q [sw3]stp instance 1 priority 4096 [sw3]stp instance 2 priority 8192 |
sw4配置: [sw4]vlan batch 10 20 [sw4]interface e0/0/1 [sw4-Ethernet0/0/1]port link-type access [sw4-Ethernet0/0/1]port default vlan 20 [sw4-Ethernet0/0/1]q [sw4]port-group group-member e0/0/11 e0/0/14 [sw4-port-group]port link-type trunk [sw4-Ethernet0/0/11]port link-type trunk [sw4-Ethernet0/0/14]port link-type trunk [sw4-port-group]port trunk allow-pass vlan all [sw4-Ethernet0/0/11]port trunk allow-pass vlan all [sw4-Ethernet0/0/14]port trunk allow-pass vlan all [sw4-port-group]q [sw4]stp region-configuration [sw4-mst-region]instance 1 vlan 10 [sw4-mst-region]instance 2 vlan 20 [sw4-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. [sw4-mst-region]q [sw4]stp instance 1 priority 8192 [sw4]stp instance 2 priority 4096 |
sw2配置: [sw2]dis stp 不是根交换机,将其指定为根交换机 [sw2]stp root primary [sw2]dis stp [sw2]vlan batch 10 20 [sw2]port-group group-member g0/0/12 to g0/0/14 [sw2-port-group]port link-type trunk [sw2-GigabitEthernet0/0/12]port link-type trunk [sw2-GigabitEthernet0/0/13]port link-type trunk [sw2-GigabitEthernet0/0/14]port link-type trunk [sw2-port-group]port trunk allow-pass vlan all [sw2-GigabitEthernet0/0/12]port trunk allow-pass vlan all [sw2-GigabitEthernet0/0/13]port trunk allow-pass vlan all [sw2-GigabitEthernet0/0/14]port trunk allow-pass vlan all [sw2-port-group]q [sw2]port-group group-member g0/0/1 to g0/0/3 [sw2-port-group]port link-type access [sw2-GigabitEthernet0/0/1]port link-type access [sw2-GigabitEthernet0/0/2]port link-type access [sw2-GigabitEthernet0/0/3]port link-type access [sw2-port-group]port default vlan 20 [sw2-GigabitEthernet0/0/1]port default vlan 20 [sw2-GigabitEthernet0/0/2]port default vlan 20 [sw2-GigabitEthernet0/0/3]port default vlan 20 [sw2-port-group]q [sw2]stp region-configuration [sw2-mst-region]instance 1 vlan 10 [sw2-mst-region]instance 2 vlan 20 [sw2-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. |
sw5配置: [sw5]vlan batch 10 20 [sw5]interface e0/0/1 [sw5-Ethernet0/0/1]port link-type access [sw5-Ethernet0/0/1]port default vlan 10 [sw5]port-group group-member e0/0/11 e0/0/13 [sw5-port-group]port link-type trunk [sw5-Ethernet0/0/11]port link-type trunk [sw5-Ethernet0/0/13]port link-type trunk [sw5-port-group]port trunk allow-pass vlan all [sw5-Ethernet0/0/11]port trunk allow-pass vlan all [sw5-Ethernet0/0/13]port trunk allow-pass vlan all [sw5-port-group]q [sw5]stp region-configuration [sw5-mst-region]instance 1 vlan 10 [sw5-mst-region]instance 2 vlan 20 [sw5-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. [sw5-mst-region]q [sw5]stp instance 1 priority 4096 [sw5]stp instance 2 priority 8192 |
sw6配置: [sw6]vlan batch 10 20 [sw6]interface e0/0/1 [sw6-Ethernet0/0/1]port link-type access [sw6-Ethernet0/0/1]port default vlan 20 [sw6-Ethernet0/0/1]q [sw6]port-group group-member e0/0/11 e0/0/14 [sw6-port-group]port link-type trunk [sw6-Ethernet0/0/11]port link-type trunk [sw6-Ethernet0/0/14]port link-type trunk [sw6-port-group]port trunk allow-pass vlan all [sw6-Ethernet0/0/11]port trunk allow-pass vlan all [sw6-Ethernet0/0/14]port trunk allow-pass vlan all [sw6-port-group]q [sw6]stp region-configuration [sw6-mst-region]instance 1 vlan 10 [sw6-mst-region]instance 2 vlan 20 [sw6-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment...done. [sw6-mst-region]q [sw6]stp instance 1 priority 8192 [sw6]stp instance 2 priority 4096 |
r1配置: [r1]interface g0/0/0 [r1-GigabitEthernet0/0/0]ip address 192.168.10.254 24 [r1-GigabitEthernet0/0/0]undo shutdown [r1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 [r1-GigabitEthernet0/0/0]vrrp vrid 1 priority 200 [r1-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/2 reduced 150 [r1-GigabitEthernet0/0/0]q [r1]interface g0/0/1 [r1-GigabitEthernet0/0/1]ip address 192.168.20.254 24 [r1-GigabitEthernet0/0/1]undo shutdown [r1-GigabitEthernet0/0/1]vrrp vrid 2 virtual-ip 192.168.20.250 [r1-GigabitEthernet0/0/1]vrrp vrid 2 priority 150 [r1-GigabitEthernet0/0/1]vrrp vrid 2 track interface g0/0/2 reduced 100 [r1-GigabitEthernet0/0/1]q [r1]interface g0/0/2 [r1-GigabitEthernet0/0/2]ip address 10.10.10.1 24 [r1-GigabitEthernet0/0/2]undo shutdown [r1]rip [r1-rip-1]version 2 [r1-rip-1]network 192.168.10.0 [r1-rip-1]network 192.168.20.0 [r1-rip-1]network 10.0.0.0 |
r2配置: [r2]interface g0/0/0 [r2-GigabitEthernet0/0/0]ip address 192.168.10.253 24 [r2-GigabitEthernet0/0/0]undo shutdown [r2-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 [r2-GigabitEthernet0/0/0]vrrp vrid 1 priority 150 [r2-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/2 reduced 100 [r2-GigabitEthernet0/0/0]inter g0/0/1 [r2-GigabitEthernet0/0/1]ip address 192.168.20.253 24 [r2-GigabitEthernet0/0/1]undo shutdown [r2-GigabitEthernet0/0/1]vrrp vrid 2 virtual-ip 192.168.20.250 [r2-GigabitEthernet0/0/1]vrrp vrid 2 priority 160 [r2-GigabitEthernet0/0/1]vrrp vrid 2 track interface g0/0/2 reduced 100 [r2-GigabitEthernet0/0/1]inter g0/0/2 [r2-GigabitEthernet0/0/2]ip address 10.10.10.2 24 [r2-GigabitEthernet0/0/2]undo shutdown [r2]rip [r2-rip-1]version 2 [r2-rip-1]network 10.0.0.0 [r2-rip-1]network 192.168.10.0 [r2-rip-1]network 192.168.20.0 |
r3配置: [r3]interface g0/0/0 [r3-GigabitEthernet0/0/0]ip address 192.168.10.252 24 [r3-GigabitEthernet0/0/0]undo shutdown [r3-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 [r3-GigabitEthernet0/0/0]inter g0/0/1 [r3-GigabitEthernet0/0/1]ip address 192.168.20.252 24 [r3-GigabitEthernet0/0/1]undo shutdown [r3-GigabitEthernet0/0/1]vrrp vrid 2 virtual-ip 192.168.20.250 [r3-GigabitEthernet0/0/1]inter g0/0/2 [r3-GigabitEthernet0/0/2]ip address 10.10.10.3 24 [r3-GigabitEthernet0/0/2]undo shut [r3]rip [r3-rip-1]version 2 [r3-rip-1]network 192.168.10.0 [r3-rip-1]network 192.168.20.0 [r3-rip-1]network 10.0.0.0 |
r4配置: [r4]interface g0/0/1 [r4-GigabitEthernet0/0/1]ip address 10.10.10.254 24 [r4-GigabitEthernet0/0/1]undo shutdown [r4-GigabitEthernet0/0/1]q [r4]interface g0/0/0 [r4-GigabitEthernet0/0/0]ip address 192.168.30.254 24 [r4-GigabitEthernet0/0/0]undo shutdown [r4-GigabitEthernet0/0/0]q [r4]rip [r4-rip-1]version 2 [r4-rip-1]network 192.168.30.0 [r4-rip-1]network 10.0.0.0 |
以上所用的命令都是基础命令,就不做提示了
前来查看的人,请留下你的宝贵建议
同道中人,砸们可以互相学习学习
标签:server pc2 src edit 基础 命令 gif space lease
原文地址:http://blog.51cto.com/13555515/2064537