《L019交换机基本配置课件》由会员分享,可在线阅读,更多相关《L019交换机基本配置课件(19页珍藏版)》请在金锄头文库上搜索。
1、 2002, Cisco Systems, Inc. All rights reserved., 2002, Cisco Systems, Inc. All rights reserved.,2,配置一台交换机,目标,当你完成本章,你将可以: 检测设备的默认配置,实现交换机的基本配置 配置交换机的管理地址和默认网关 根据不同的网络实现二层交换机的添加移动,IP address: 0.0.0.0 CDP: enabled 100baseT port: autonegotiate duplex mode Spanning tree: enabled Console password: none,2
2、950系列交换机的默认配置,wg_sw_2950#show run Building configuration. Current configuration: ! ! interface FastEthernet0/1 ! interface FastEthernet0/2,wg_sw_2950#show spantree Interface Fa0/1 (port 7) in Spanning tree 1 is FORWARDING Port path cost 19, Port priority 128 Designated root has priority 32768, addre
3、ss 0008.a445.c980 Designated bridge has priority 32768, address 0008.a445.c980 Designated port is 7, path cost 0 Timers: message age 0, forward delay 0, hold 0 BPDU: sent 8316, received 4,wg_sw_2950#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, Fa0/5, Fa0/6, F
4、a0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20, Fa0/21, Fa0/22, Fa0/23, Fa0/24,2950系列交换机的端口名称,配置交换机的管理地址,wg_sw_2950(config)#interface vlan 1 wg_sw_2950(config-if)#ip address 10.5.5.11 255.255.255.0,wg_sw_2950(config-if)#ip address ip_addres
5、s mask,在交换机上配置VLAN1接口的IP地址和子网掩码,Catalyst 2950,wg_sw_a(config)# ip default-gateway ip address,配置交换机2950的默认网关,配置交换机的默认网关,wg_sw_a(config)#ip default-gateway 10.5.5.3,显示交换机的IP地址,Catalyst 2950,wg_sw_2950#show interface vlan 1 Vlan1 is up, line protocol is up Hardware is Cat5k Virtual Ethernet, address is
6、 0010.f6a9.9800 (bia 0010.f6a9.9800) Internet address is 172.16.80.79/24 Broadcast address is 255.255.255.255 . . . wg_sw_2950#,双工介绍,半双工 Half Duplex (CSMA/CD) 单向数据流 高冲突发生率 用于连接集线器,全双工 Full Duplex 只支持点到点 要求双方都支持全双工 无冲突,设置全双工,Catalyst 2950,wg_sw_2950(config)#interface fe0/1 wg_sw_2950(config-if)#duple
7、x auto | full | half,显示全双工操作,Switch#show interfaces fastethernet0/3 FastEthernet0/3 is up, line protocol is down Hardware is Fast Ethernet, address is 0000.0000.0003 (bia 0000.0000.0003) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA,
8、 loopback not set Keepalive set (10 sec) Half-duplex, 10Mb/s input flow-control is off, output flow-control is off ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output never, output hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue 0/40, 0 drops;
9、 input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condit
10、ion detected 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out,管理MAC地址表,Catalyst 2950,wg_sw_2950#show mac-address-table Dynamic Address C
11、ount: 1 Secure Address Count: 0 Static Address (User-defined) Count: 0 System Self Address Count: 25 Total MAC addresses: 26 Maximum MAC addresses: 8192 Non-static Address Table: Destination Address Address Type VLAN Destination Port - - - - 0050.0f02.3372 Dynamic 1 FastEthernet0/2,设置一个永久的MAC地址,wg_s
12、w_2950(config)#mac-address-table staticmac_addr vlan vlan_id interface int1 int2 . int15,Catalyst 2950 only,配置端口安全,Catalyst 2950,wg_sw_2950(config-if)#port-security maximum 10 count,wg_sw_2950(config)#interface fa0/1 wg_sw_2950(config-if)# switchport mode access wg_sw_2950(config-if)# switchport por
13、t-security wg_sw_2950(config-if)# switchport port-security maximum 10,wg_sw_2950#show port-security,检测端口安全在2950上,wg_sw_2950(config-if)#switchport port-security violation shutdown | protect | restrict,管理配置文件,wg_sw_2950#copy startup-config tftp:/host/dst_file,Catalyst 2950,清除NVRAM,使交换机回到出厂设置,wg_sw_2950#erase startup-config,Catalyst 2950,复习,使用SHOW命令可以检查交换机是否在出厂默认设置状态 配置交换机IP地址的命令和默认网关的命令 半双工使用冲突检测,全双工不需要进行冲突检测 MAC地址包括动态,永久和静态地址,