实验拓扑及要求
1,内网IP地址使用172.16.0.0/16分配
2,Sw1和sw2之间互为备份
3,VRRP/STP/VLAN/Eth-trunk均使用
4,所有Pc均通过DHCP获取Ip地址
5,ISP只能配置Ip地址
6,所有电脑可以正常访问ISP路由器环回
一,配置eth-trunk
二,创建vlan,划分vlan,配置trunk干道。
三,配置STP
[sw1]stp instance 1 root primary —将instan 1作为SW1的主根
[sw1]stp instance 2 root secondary —将instan 1作为SW1的备份根
[sw2]stp instance 1 root secondary
[sw2]stp instance 2 root primary
四,划分IP地址
172.16.0.0/24
172.16.0.0/25 —Vlanif 1
172.16.0.128/25 —Vlanif 2
172.16.0.0/30 —r1
172.16.0.4/30 —r1
五,配置VRRP
六,配置DHCP
七,配置路由
(一)路由器R1配置IP地址。
二)交换机配置IP地址
因为交换机接口上不能直接配置IP地址,所以创建vlan使用虚拟接口配置
(三)启用RIP,是私网内部可达
(四)做ACL,使PC内网可以访问公网