首页 练字文章 锐捷交换机基础命令配置

锐捷交换机基础命令配置

2023-05-17 20:25  浏览数:696  来源:小键人13343123

1、准备命令
>Enable //
#Exit //
#End //
#copy running-config startup-config //
#del flash:config.text //
#erase startup-config //
#del flash:vlan.dat //
#Configure terminal //
(config)# hostname switchA //
(config)#banner motd & //
(config)#enable secret level 1 0 star //
(config)#enable secret level 15 0 star //
(config)#enable services web-server //
2、查看信息
#show running-config //
#show interface fastethernet 0/3 //
#show interface serial 1/2 //
#show interface //
#show ip interface brief //
#show ip interface //
#show version //
#show mac-address-table //
#show running-config //
#show vlan //
#show vlan id 10 //
#show interface fastethernet 0/1 //
#show aggregateport 1 summary //
#show spanning-tree //
#show spanning-tree interface fastethernet 0/1 //
#show port-security //
#show port-security address //
#show ip access-lists listname //
3、端口的基本配置
(config)#Interface fastethernet 0/3 //
(config)#interface range fa 0/1-2,0/5,0/7-9 //
(config-if)#speed 10 //
(config-if)#duplex full //
(config-if)#no shutdown //
(config-if)#switchport access vlan 10 //
(config-if)#switchport mode trunk //
(config-if)#port-group 1 //
4、聚合端口的创建
(config)# interface aggregateport 1 //
(config-if)# switchport mode trunk //
(config)#int f0/23-24
(config-if-range)#port-group 1 //
5、生成树
配置多生成树协议:
switch(config)#spanning-tree //
switch(config)#spanning-tree mst configuration //
switch(config-mst)#name ruijie //
switch(config-mst)#revision 1 //
switch(config-mst)#instance 0 vlan 10,20 //
switch(config-mst)#instance 1 vlan 30,40 //
switch(config)#spanning-tree mst 0 priority 4096 //
switch(config)#spanning-tree mst 1 priority 8192 //
switch(config)#interface vlan 10
switch(config-if)#vrrp 1 ip 192.168.10.1 //
switch(config)#interface vlan 20
switch(config-if)#vrrp 1 ip 192.168.20.1 //
switch(config)#interface vlan 30
switch(config-if)#vrrp 2 ip 192.168.30.1 //
switch(config)#interface vlan 40
switch(config-if)#vrrp 2 ip 192.168.40.1 //
6、VLAN的基本配置
(config)#vlan 10 //
(config-vlan)#name vlanname //
(config-if)#switchport access vlan 10 //
(config)#interface vlan 10 //
(config-if)# ip address 192.168.1.1 255.255.255.0 //
(config-if)# no shutdown //
7、端口安全
(config)# interface fastethernet 0/1 //
(config-if)# switchport port-security //
(config-if)# switchport port-secruity maxmum 1 //
(config-if)# switchport port-secruity violation shutdown //
(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx ip-address 172.16.1.1 //
8、三层路由功能(针对三层交换机)
(config)# ip routing //
(config)# interface fastethernet 0/1
(config-if)# no switchport //
(config-if)# ip address 192.168.1.1 255.255.255.0
(config-if)# no shutdown
9、三层交换机路由协议
(config)# ip route 172.16.1.0 255.255.255.0 172.16.2.1 //
注:172.16.1.0 255.255.255.0 //
(config)# router rip //
(config-router)# network 172.16.1.0 //
(config-router)# version 2 //
(config-router)# no auto-summary //
(config)# router ospf //
(config)# router ospf 1 //
(config-router)# network 192.168.1.0 0.0.0.255 area 0 //



声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)