[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
思科三层交换机配置图如下:
配置的过程如下:
<>首先,设置各个PC的ip地址,子网掩码,网关
<>设置完成之后,进行二层交换机的设置:
在三层交换机的配置实验中
二层交换机设置的主要是vlan的设置,vlan接口的设置和接口模式的设置
第一步设置vlan
可在全局模式下
vlan database
vlan 10 name vlan10
进行设置不同的vlan
第二步,给vlan分配接口
可通关show vlan 命令查看是否设置完成
第三步,设置接口模式
conf
int f0/1
sw m t
设置为trunk模式
(百度可以查的access,trunk和hybird的区别,这里不再进行叙述)
<>接下来,进行三层交换机的设置
三层路由器第一步先设置vlan,此步骤跟二层交换机的步骤相同
第二步是配置vlan的ip地址
为什么要配置vlan的ip地址?二层交换机又不用?
答案是配置ip起SVI接口的作用,网关接口,用于三层交换机跨vlan间路由
如果你不配置vlan的ip地址,就和二层交换机一样,只能ping通相同vlan相同网段。如果你配置了vlan的ip地址,就可以ping通不同vlan不同网段。
conf
int vlan 10
ip add 192.168.1.1 255.255.255.0
no shutdown(不可忘记这个代码)
exit
第三步是设置接口的trunk模式
在三层交换机中
进入接口配置模式下
int f0/1
sw m t这条语句是不行的
需要用sw t en dot1q
然后sw m t
no shutdown
exit
至此,还有最后一步,很多小伙伴特别容易忘记的一步
就是ip routing
end…
<>喜欢的点个赞喔,谢谢大家