简要网络配置

最后都变了- 提交于 2019-12-05 20:44:57

(1)   配置接口IP地址

batch 10 20 30 40

(2)   Access口配置

Interface Ethernet 0/0/_(端口号)

Port link-type access

Port default vlan_(对应上述vlan)

(3)   Trunk口配置

Interface g 0/0/_

Port link-type trunk

Port trunk allow-pass vlan all

(4)   Vlan的网关配置

Interface vlanif 10

Ip address 10.61.10.254  23

(5)   链路聚合

以eth-trunk1为例,配置命令如下:

Interface eth-trunk 1

mode lacp-static

port link-type trunk

port trunk allow-pass vlan all

int g 0/0/1

eth-trunk 1

int g 0/0/2

eth-trunk 1

(6)   生成树协议stp配置

备份桥:stp enable

stp mode stp

stp root secondery

根桥:stp enable

stp mode stp

stp root primary

(7)   Ipv4路由协议

Ip route-static 0.0.0.0 0.0.0.0 172.16.61.1

interface vlanif 1

ip address 10.61.10.1 

Ip route-static 0.0.0.0 0.0.0.0 172.16.61.2

interface vlanif 1

ip address 10.61.20.1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!