0
点赞
收藏
分享

微信扫一扫

交换机的配置使用

1.交换机密码

Username:tbsa  
Password:hello123

百度交换机密码:Baidu@123

2.进入交换机端口

CNW-EC-CDN-G1-2.CN1989#con  
Enter configuration commands, one per line. End with CNTL/Z.
CNW-EC-CDN-G1-2.CN1989(config)#
CNW-EC-CDN-G1-2.CN1989(config)#int te
CNW-EC-CDN-G1-2.CN1989(config)#int te 0/38 #进入38端口
CNW-EC-CDN-G1-2.CN1989(config-if-TenGigabitEthernet 0/38)#exit #退出

CNW-EC-CDN-G1-2.CN1989(config)#exit

CNW-EC-CDN-G1-2.CN

3.抓取配置

CNW-EC-SELBPART-G1-1.cn317(config)#show  run

4

CNW-EC-SELBPART-G1-1.cn317(config)#en
CNW-EC-SELBPART-G1-1.cn317#show bgp all su
CNW-EC-SELBPART-G1-1.cn317#show bgp all summary

CNW-EC-SELBPART-G1-1.cn317#show ip int brief


Mgmt 0 10.120.8.253/24 no address up up
CNW-EC-SELBPART-G1-1.cn317#conf t
Enter configuration commands, one per line. End with CNTL/Z.
CNW-EC-SELBPART-G1-1.cn317(config)#int
CNW-EC-SELBPART-G1-1.cn317(config)#interface te
CNW-EC-SELBPART-G1-1.cn317(config)#interface tenGigabitEthernet 0/26
CNW-EC-SELBPART-G1-1.cn317(config-if-TenGigabitEthernet 0/26)#show run int te 0/1

Building configuration...
Current configuration : 185 bytes

interface TenGigabitEthernet 0/1
description connect-to-kunlun1
mtu 9000
switchport access vlan 2
spanning-tree bpduguard enable
spanning-tree portfast
mls qos trust dscp
CNW-EC-SELBPART-G1-1.cn317(config-if-TenGigabitEthernet 0/26)# switchport access vlan 2
CNW-EC-SELBPART-G1-1.cn317(config-if-TenGigabitEthernet 0/26)#en
CNW-EC-SELBPART-G1-1.cn317#show int de
CNW-EC-SELBPART-G1-1.cn317#show int description #查看端口信息
Interface Status Administrative Description
---------------------------------------- -------- -------------- -----------
TenGigabitEthernet 0/1 up up connect-to-kunlun1
TenGigabitEthernet 0/2 up up connect-to-kunlun2
TenGigabitEthernet 0/3 up up connect-to-kunlun3
TenGigabitEthernet 0/4 up up connect-to-kunlun4
TenGigabitEthernet 0/5 up up connect-to-kunlun5
TenGigabitEthernet 0/6 up up connect-to-kunlun6
TenGigabitEthernet 0/7 up up connect-to-kunlun7
TenGigabitEthernet 0/8 up up connect-to-kunlun8
TenGigabitEthernet 0/9 up up connect-to-kunlun9
TenGigabitEthernet 0/10 up up connect-to-kunlun10
TenGigabitEthernet 0/11 up up connect-to-lvs1-T0
TenGigabitEthernet 0/12 up up connect-to-lvs1-T1
TenGigabitEthernet 0/13 up up connect-to-lvs2-T0
TenGigabitEthernet 0/14 up up connect-to-lvs2-T1
TenGigabitEthernet 0/15 up up connect-to-merge1
TenGigabitEthernet 0/16 up up connect-to-merge2
TenGigabitEthernet 0/17 down up
TenGigabitEthernet 0/18 down up
TenGigabitEthernet 0/19 down up
TenGigabitEthernet 0/20 down up
TenGigabitEthernet 0/21 down up
TenGigabitEthernet 0/22 down up
TenGigabitEthernet 0/23 down up
TenGigabitEthernet 0/24 down up
TenGigabitEthernet 0/25 down up
TenGigabitEthernet 0/26 up up
TenGigabitEthernet 0/27 down up
TenGigabitEthernet 0/28 down up
TenGigabitEthernet 0/29 down up
TenGigabitEthernet 0/30 down up
TenGigabitEthernet 0/31 down up
TenGigabitEthernet 0/32 down up
TenGigabitEthernet 0/33 down up
TenGigabitEthernet 0/34 down up
TenGigabitEthernet 0/35 down up
TenGigabitEthernet 0/36 down up
TenGigabitEthernet 0/37 down up
TenGigabitEthernet 0/38 down up
TenGigabitEthernet 0/39 down up
TenGigabitEthernet 0/40 down up
TenGigabitEthernet 0/41 down up
TenGigabitEthernet 0/42 down up
TenGigabitEthernet 0/43 down up
TenGigabitEthernet 0/44 down down
TenGigabitEthernet 0/45 down down
TenGigabitEthernet 0/46 up up connect-to-ISP
TenGigabitEthernet 0/47 up up connect-to-ISP
TenGigabitEthernet 0/48 up up connect-to-ISP
FortyGigabitEthernet 0/49 down up
FortyGigabitEthernet 0/50 down up
FortyGigabitEthernet 0/51 down up
FortyGigabitEthernet 0/52 down up
FortyGigabitEthernet 0/53 down up
FortyGigabitEthernet 0/54 down up
VLAN 2 up up connect-to-server
Mgmt 0 up up IP management Console
CNW-EC-SELBPART-G1-1.cn317#
Press RETURN to get started

5.交换机命令

show bgp all summary 
show ip inter brief
show run | in route
show version
show int transceiver
show inter des | in ISP
show ip route
show interface description
show inter transceiver diagnosis
show inter status
show mls qos map dscp
show running-config | include ip access
show agg summary
show power
show running-config | include ip route
show run | include ipv6 route
show ipv6 int brief
show ipv6 route
show int usage up
show int br
show arp

6.让笔记本有网络

switchport mode trunk
switchport trunk native vlan 2
switchport trunk allowed vlan only 2

举报

相关推荐

0 条评论