根据要求,写出sw1的配置默认路由的命令命令?

一、实验要求二、解题思路1、拓扑设计----IP地址规划2、实验配置(1)拓扑搭建----交换部分技术(2)底层----所有节点拥有合法的IP地址(3)路由(4)策略(5)测试(6)排错(7)维护(8)升级3、配置顺序 CHANNEL-->VLAN-->TRUNK-->STP-->SVI-->VRRP-->DHCP三、实验命令(一)交换部分 【1】绑定sw1和sw2两个三层交换机(1)SW1[sw1]interface Eth-Trunk 0interface GigabitEthernet0/0/22eth-trunk 0interface GigabitEthernet0/0/23eth-trunk 0(2)SW2[sw2]int Eth-Trunk 0interface GigabitEthernet0/0/22eth-trunk 0interface GigabitEthernet0/0/23eth-trunk 0【2】配置VLAN和TRUNK1、SW1[sw1]vlan 2[sw1]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 Eth-Trunk 0[sw1-port-group]port link-type trunk[sw1-port-group]port trunk allow-pass vlan 22、SW2[sw2]vlan 2[sw2]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 Eth-Trunk 0[sw2-port-group]port link-type trunk [sw2-port-group]port trunk allow-pass vlan 23、SW3interface Ethernet0/0/2port link-type accessport default vlan 2interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 2interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 24、SW4interface Ethernet0/0/2port link-type accessport default vlan 2[sw4]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 [sw4-port-group]port link-type trunk[sw4-port-group]port trunk allow-pass vlan 2【3】STP1、SW1stp region-configurationregion-name ainstance 1 vlan 1instance 2 vlan 2active region-configurationstp instance 1 root primarystp instance 2 root secondary2、SW2stp region-configurationregion-name ainstance 1 vlan 1instance 2 vlan 2active region-configurationstp instance 1 root secondarystp instance 2 root primary3、SW3stp region-configurationregion-name ainstance 1 vlan 1instance 2 vlan 2active region-configuration[sw3]port-group group-member Ethernet 0/0/1 to Ethernet 0/0/2[sw3-Ethernet0/0/2]stp edged-port enable 4、SW4stp region-configurationregion-name ainstance 1 vlan 1instance 2 vlan 2active region-configuration[sw4]port-group group-member Ethernet 0/0/1 to Ethernet 0/0/2[sw4-Ethernet0/0/2]stp edged-port enable 【4】SVI1、SW1interface Vlanif1ip address 172.16.1.1 255.255.255.128interface Vlanif2ip address 172.16.1.129 255.255.255.1282、SW2interface Vlanif1ip address 172.16.1.2 255.255.255.128interface Vlanif2ip address 172.16.1.130 255.255.255.128【5】VRRP----网关冗余1、SW1interface Vlanif1ip address 172.16.1.1 255.255.255.128vrrp vrid 1 virtual-ip 172.16.1.126vrrp vrid 1 priority 105vrrp vrid 1 track interface GigabitEthernet0/0/24interface Vlanif2vrrp vrid 1 virtual-ip 172.16.1.2542、SW2interface Vlanif1vrrp vrid 1 virtual-ip 172.16.1.126interface Vlanif2vrrp vrid 1 virtual-ip 172.16.1.254vrrp vrid 1 priority 105vrrp vrid 1 track interface GigabitEthernet0/0/24【6】DHCP1、SW1ip pool in1gateway-list 172.16.1.126network 172.16.1.0 mask 255.255.255.128dns-list 114.114.114.114 8.8.8.8ip pool v2gateway-list 172.16.1.254network 172.16.1.128 mask 255.255.255.128dns-list 114.114.114.114 8.8.8.8interface Vlanif1dhcp select globalinterface Vlanif2dhcp select global2、SW2ip pool in1gateway-list 172.16.1.126network 172.16.1.0 mask 255.255.255.128dns-list 114.114.114.114 8.8.8.8ip pool v2gateway-list 172.16.1.254network 172.16.1.128 mask 255.255.255.128dns-list 114.114.114.114 8.8.8.8interface Vlanif1dhcp select globalinterface Vlanif2dhcp select global(二)底层部分【1】ISP# interface GigabitEthernet0/0/0
ip address 12.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2 # interface NULL0 # interface LoopBack0
ip address 1.1.1.1 255.255.255.0 【2】R1# interface GigabitEthernet0/0/0
ip address 172.16.0.1 255.255.255.252 # interface GigabitEthernet0/0/1
ip address 12.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/2
ip address 172.16.0.5 255.255.255.252 【3】SW1interface Vlanif99ip address 172.16.0.2 255.255.255.252四、实验截图}

我要回帖

更多关于 sw常用快捷键命令 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信